Home | History | Annotate | Download | only in api

Lines Matching refs:buffer

55    * Gets the timestamp of the audio buffer.
57 * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
58 * buffer resource.
61 * buffer. Given in seconds since the start of the containing audio stream.
64 PP_TimeDelta GetTimestamp([in] PP_Resource buffer);
67 * Sets the timestamp of the audio buffer.
69 * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
70 * buffer resource.
72 * of the audio buffer. Given in seconds since the start of the containing
75 void SetTimestamp([in] PP_Resource buffer, [in] PP_TimeDelta timestamp);
78 * Gets the sample rate of the audio buffer.
80 * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
81 * buffer resource.
83 * @return The sample rate of the audio buffer.
86 PP_AudioBuffer_SampleRate GetSampleRate([in] PP_Resource buffer);
89 * Gets the sample size of the audio buffer.
91 * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
92 * buffer resource.
94 * @return The sample size of the audio buffer.
97 PP_AudioBuffer_SampleSize GetSampleSize([in] PP_Resource buffer);
100 * Gets the number of channels in the audio buffer.
102 * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
103 * buffer resource.
105 * @return The number of channels in the audio buffer.
107 uint32_t GetNumberOfChannels([in] PP_Resource buffer);
110 * Gets the number of samples in the audio buffer.
112 * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
113 * buffer resource.
115 * @return The number of samples in the audio buffer.
116 * For example, at a sampling rate of 44,100 Hz in stereo audio, a buffer
119 uint32_t GetNumberOfSamples([in] PP_Resource buffer);
122 * Gets the data buffer containing the audio samples.
124 * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
125 * buffer resource.
127 * @return A pointer to the beginning of the data buffer.
129 mem_t GetDataBuffer([in] PP_Resource buffer);
132 * Gets the size of the data buffer in bytes.
134 * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
135 * buffer resource.
137 * @return The size of the data buffer in bytes.
139 uint32_t GetDataBufferSize([in] PP_Resource buffer);