Data Fields
PP_Bool(* | IsAudioBuffer )(PP_Resource resource) |
PP_TimeDelta(* | GetTimestamp )(PP_Resource buffer) |
void(* | SetTimestamp )(PP_Resource buffer, PP_TimeDelta timestamp) |
PP_AudioBuffer_SampleRate(* | GetSampleRate )(PP_Resource buffer) |
PP_AudioBuffer_SampleSize(* | GetSampleSize )(PP_Resource buffer) |
uint32_t(* | GetNumberOfChannels )(PP_Resource buffer) |
uint32_t(* | GetNumberOfSamples )(PP_Resource buffer) |
void *(* | GetDataBuffer )(PP_Resource buffer) |
uint32_t(* | GetDataBufferSize )(PP_Resource buffer) |
Field Documentation
void*(* PPB_AudioBuffer::GetDataBuffer)(PP_Resource buffer) |
Gets the data buffer containing the audio samples.
- Parameters:
[in] buffer A PP_Resource
corresponding to an audio buffer resource.
- Returns:
- A pointer to the beginning of the data buffer.
uint32_t(* PPB_AudioBuffer::GetDataBufferSize)(PP_Resource buffer) |
Gets the size of the data buffer in bytes.
- Parameters:
[in] buffer A PP_Resource
corresponding to an audio buffer resource.
- Returns:
- The size of the data buffer in bytes.
uint32_t(* PPB_AudioBuffer::GetNumberOfChannels)(PP_Resource buffer) |
Gets the number of channels in the audio buffer.
- Parameters:
[in] buffer A PP_Resource
corresponding to an audio buffer resource.
- Returns:
- The number of channels in the audio buffer.
uint32_t(* PPB_AudioBuffer::GetNumberOfSamples)(PP_Resource buffer) |
Gets the number of samples in the audio buffer.
- Parameters:
[in] buffer A 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] buffer A 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] buffer A PP_Resource
corresponding to an audio buffer resource.
- Returns:
- The sample size of the audio buffer.
PP_TimeDelta(* PPB_AudioBuffer::GetTimestamp)(PP_Resource buffer) |
Gets the timestamp of the audio buffer.
- Parameters:
[in] buffer A 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.
PP_Bool(* PPB_AudioBuffer::IsAudioBuffer)(PP_Resource resource) |
Determines if a resource is an AudioBuffer resource.
- Parameters:
[in] resource The PP_Resource
to test.
- Returns:
- A
PP_Bool
withPP_TRUE
if the given resource is an AudioBuffer resource orPP_FALSE
otherwise.
void(* PPB_AudioBuffer::SetTimestamp)(PP_Resource buffer, PP_TimeDelta timestamp) |
Sets the timestamp of the audio buffer.
- Parameters:
[in] buffer A PP_Resource
corresponding to an audio buffer resource.[in] timestamp A 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: