Data Fields


Field Documentation

Gets the data buffer containing the audio samples.

Parameters:
[in]bufferA PP_Resource corresponding to an audio buffer resource.
Returns:
A pointer to the beginning of the data buffer.

Gets the size of the data buffer in bytes.

Parameters:
[in]bufferA PP_Resource corresponding to an audio buffer resource.
Returns:
The size of the data buffer in bytes.

Gets the number of channels in the audio buffer.

Parameters:
[in]bufferA PP_Resource corresponding to an audio buffer resource.
Returns:
The number of channels in the audio buffer.

Gets the number of samples in the audio buffer.

Parameters:
[in]bufferA PP_Resource corresponding to an audio buffer resource.
Returns:
The number of samples in the audio buffer. For example, at a sampling rate of 44,100 Hz in stereo audio, a buffer containing 4410 * 2 samples would have a duration of 100 milliseconds.

Gets the sample rate of the audio buffer.

Parameters:
[in]bufferA PP_Resource corresponding to an audio buffer resource.
Returns:
The sample rate of the audio buffer.

Gets the sample size of the audio buffer.

Parameters:
[in]bufferA PP_Resource corresponding to an audio buffer resource.
Returns:
The sample size of the audio buffer.

Gets the timestamp of the audio buffer.

Parameters:
[in]bufferA PP_Resource corresponding to an audio buffer resource.
Returns:
A PP_TimeDelta containing the timestamp of the audio buffer. Given in seconds since the start of the containing audio stream.

Determines if a resource is an AudioBuffer resource.

Parameters:
[in]resourceThe PP_Resource to test.
Returns:
A PP_Bool with PP_TRUE if the given resource is an AudioBuffer resource or PP_FALSE otherwise.

Sets the timestamp of the audio buffer.

Parameters:
[in]bufferA PP_Resource corresponding to an audio buffer resource.
[in]timestampA PP_TimeDelta containing the timestamp of the audio buffer. Given in seconds since the start of the containing audio stream.

The documentation for this struct was generated from the following file:
This site uses cookies to deliver and enhance the quality of its services and to analyze traffic. If you agree, cookies are also used to serve advertising and to personalize the content and advertisements that you see. Learn more about our use of cookies.