Data Fields
Field Documentation
Gets the data buffer containing the audio frame samples.
- Parameters:
-
[in] | frame | A PP_Resource corresponding to an audio frame resource. |
- Returns:
- A pointer to the beginning of the data buffer.
Gets the size of the data buffer in bytes.
- Parameters:
-
[in] | frame | A PP_Resource corresponding to an audio frame resource. |
- Returns:
- The size of the data buffer in bytes.
Gets the number of channels in the audio frame.
- Parameters:
-
[in] | frame | A PP_Resource corresponding to an audio frame resource. |
- Returns:
- The number of channels in the audio frame.
Gets the number of samples in the audio frame.
- Parameters:
-
[in] | frame | A PP_Resource corresponding to an audio frame resource. |
- Returns:
- The number of samples in the audio frame. For example, at a sampling rate of 44,100 Hz in stereo audio, a frame containing 4410 * 2 samples would have a duration of 100 milliseconds.
Gets the sample size of the audio frame.
- Parameters:
-
[in] | frame | A PP_Resource corresponding to an audio frame resource. |
- Returns:
- The sample size of the audio frame.
Gets the timestamp of the audio frame.
- Parameters:
-
[in] | frame | A PP_Resource corresponding to an audio frame resource. |
- Returns:
- A
PP_TimeDelta
containing the timestamp of the audio frame. Given in seconds since the start of the containing audio stream.
Determines if a resource is an AudioFrame resource.
- Parameters:
-
[in] | resource | The PP_Resource to test. |
- Returns:
- A
PP_Bool
with PP_TRUE
if the given resource is an AudioFrame resource or PP_FALSE
otherwise.
Sets the timestamp of the audio frame.
- Parameters:
-
[in] | frame | A PP_Resource corresponding to an audio frame resource. |
[in] | timestamp | A PP_TimeDelta containing the timestamp of the audio frame. Given in seconds since the start of the containing audio stream. |
The documentation for this struct was generated from the following file: