Audio
Ring
Buffer
Class
constructor
parent_
class
name
acquire
activate
clear_
all
close_
device
commit
delay
open_
device
pause
release
resume
start
stop
GJS API Reference
GstAudio-1.0
GstAudio
AudioRingBufferClass
Class AudioRingBufferClass
The vmethods that subclasses can override to implement the ringbuffer.
record
Hierarchy
AudioRingBufferClass
Index
Constructors
constructor
Properties
parent_
class
name
Methods
acquire
activate
clear_
all
close_
device
commit
delay
open_
device
pause
release
resume
start
stop
Constructors
constructor
new
Audio
Ring
Buffer
Class
(
)
:
AudioRingBufferClass
Returns
AudioRingBufferClass
Properties
parent_
class
parent_
class
:
Gst
.
ObjectClass
parent class
field
Static
name
name
:
string
Methods
acquire
acquire
(
buf
:
AudioRingBuffer
, spec
:
AudioRingBufferSpec
)
:
boolean
Parameters
buf:
AudioRingBuffer
spec:
AudioRingBufferSpec
Returns
boolean
activate
activate
(
buf
:
AudioRingBuffer
, active
:
boolean
)
:
boolean
Parameters
buf:
AudioRingBuffer
active:
boolean
Returns
boolean
clear_
all
clear_
all
(
buf
:
AudioRingBuffer
)
:
void
Parameters
buf:
AudioRingBuffer
Returns
void
close_
device
close_
device
(
buf
:
AudioRingBuffer
)
:
boolean
Parameters
buf:
AudioRingBuffer
Returns
boolean
commit
commit
(
buf
:
AudioRingBuffer
, sample
:
number
, data
:
Uint8Array
, out_samples
:
number
, accum
:
number
)
:
[
number
,
number
,
number
]
Parameters
buf:
AudioRingBuffer
sample:
number
data:
Uint8Array
out_samples:
number
accum:
number
Returns
[
number
,
number
,
number
]
delay
delay
(
buf
:
AudioRingBuffer
)
:
number
Parameters
buf:
AudioRingBuffer
Returns
number
open_
device
open_
device
(
buf
:
AudioRingBuffer
)
:
boolean
Parameters
buf:
AudioRingBuffer
Returns
boolean
pause
pause
(
buf
:
AudioRingBuffer
)
:
boolean
Parameters
buf:
AudioRingBuffer
Returns
boolean
release
release
(
buf
:
AudioRingBuffer
)
:
boolean
Parameters
buf:
AudioRingBuffer
Returns
boolean
resume
resume
(
buf
:
AudioRingBuffer
)
:
boolean
Parameters
buf:
AudioRingBuffer
Returns
boolean
start
start
(
buf
:
AudioRingBuffer
)
:
boolean
Parameters
buf:
AudioRingBuffer
Returns
boolean
stop
stop
(
buf
:
AudioRingBuffer
)
:
boolean
Parameters
buf:
AudioRingBuffer
Returns
boolean
Audio
Ring
Buffer
Class
constructor
parent_
class
name
acquire
activate
clear_
all
close_
device
commit
delay
open_
device
pause
release
resume
start
stop
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHc3RBdWRpb18xXzAuR3N0QXVkaW8uQXVkaW9SaW5nQnVmZmVyQ2xhc3MuaHRtbCNjb25zdHJ1Y3RvciIsIm5hbWUiOiJjb25zdHJ1Y3RvciIsImNoaWxkcmVuIjpbXSwiaXNFeHRlcm4iOmZhbHNlLCJpc0ludGVybiI6dHJ1ZX0seyJjbGFzc05hbWVzIjoidHNkLWtpbmQtcHJvcGVydHkgdHNkLXBhcmVudC1raW5kLWNsYXNzIiwiaHJlZiI6IkdzdEF1ZGlvXzFfMC5Hc3RBdWRpby5BdWRpb1JpbmdCdWZmZXJDbGFzcy5odG1sI3BhcmVudF9jbGFzcyIsIm5hbWUiOiJwYXJlbnRfY2xhc3MiLCJjaGlsZHJlbiI6W10sImlzRXh0ZXJuIjpmYWxzZSwiaXNJbnRlcm4iOnRydWV9LHsiY2xhc3NOYW1lcyI6InRzZC1raW5kLXByb3BlcnR5IHRzZC1wYXJlbnQta2luZC1jbGFzcyB0c2QtaXMtc3RhdGljIiwiaHJlZiI6IkdzdEF1ZGlvXzFfMC5Hc3RBdWRpby5BdWRpb1JpbmdCdWZmZXJDbGFzcy5odG1sI25hbWUiLCJuYW1lIjoibmFtZSIsImNoaWxkcmVuIjpbXSwiaXNFeHRlcm4iOmZhbHNlLCJpc0ludGVybiI6dHJ1ZX0seyJjbGFzc05hb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