ReadonlysampleThe shared buffer (based on SharedArrayBuffer) for audio data frames,
enabling thread-safe data sharing across different threads.
ReadonlysamplesThe number of samples per frame, representing the channel count.
ReadonlytotalA counter for the total number of frames read from the buffer.
ReadonlytotalA counter for the total number of frames written to the buffer.
ReadonlyusedA counter that tracks the usage count of the frames in the buffer.
Context for an FrameBuffer. This context is returned by the
createAudioFrameBufferContextfunction and is designed to be shared between threads, allowing safe and efficient audio data processing in multithreaded environments. It leverages aSharedArrayBufferto enable thread-safe data access.