List of all members.
Public Member Functions
Constructor & Destructor Documentation
Constructs an AudioFrame
from a Resource
.
- Parameters:
-
[in] | resource | A PPB_AudioFrame resource. |
A constructor used when you have received a PP_Resource
as a return value that has had 1 ref added for you.
- Parameters:
-
[in] | resource | A PPB_AudioFrame resource. |
Member Function Documentation
Gets the data buffer containing the audio frame samples.
- Returns:
- A pointer to the beginning of the data buffer.
Gets the size of data buffer in bytes.
- Returns:
- The size of the data buffer in bytes.
Gets the number of channels in the audio frame.
- Returns:
- The number of channels in the audio frame.
Gets the number of samples in the audio frame.
- 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 4,410 * 2 samples would have a duration of 100 milliseconds.
Gets the sample size of the audio frame in bytes.
- Returns:
- The sample size of the audio frame in bytes.
Gets the timestamp of the audio frame.
- Returns:
- A
PP_TimeDelta
containing the timestamp of the audio frame. Given in seconds since the start of the containing audio stream.
Sets the timestamp of the audio frame.
- Parameters:
-
[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 class was generated from the following file: