Home | History | Annotate | Download | only in c

Lines Matching refs:buffer

73    * Gets the timestamp of the audio buffer.
75 * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
76 * buffer resource.
79 * buffer. Given in seconds since the start of the containing audio stream.
81 PP_TimeDelta (*GetTimestamp)(PP_Resource buffer);
83 * Sets the timestamp of the audio buffer.
85 * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
86 * buffer resource.
88 * of the audio buffer. Given in seconds since the start of the containing
91 void (*SetTimestamp)(PP_Resource buffer, PP_TimeDelta timestamp);
93 * Gets the sample rate of the audio buffer.
95 * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
96 * buffer resource.
98 * @return The sample rate of the audio buffer.
100 PP_AudioBuffer_SampleRate (*GetSampleRate)(PP_Resource buffer);
102 * Gets the sample size of the audio buffer.
104 * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
105 * buffer resource.
107 * @return The sample size of the audio buffer.
109 PP_AudioBuffer_SampleSize (*GetSampleSize)(PP_Resource buffer);
111 * Gets the number of channels in the audio buffer.
113 * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
114 * buffer resource.
116 * @return The number of channels in the audio buffer.
118 uint32_t (*GetNumberOfChannels)(PP_Resource buffer);
120 * Gets the number of samples in the audio buffer.
122 * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
123 * buffer resource.
125 * @return The number of samples in the audio buffer.
126 * For example, at a sampling rate of 44,100 Hz in stereo audio, a buffer
129 uint32_t (*GetNumberOfSamples)(PP_Resource buffer);
131 * Gets the data buffer containing the audio samples.
133 * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
134 * buffer resource.
136 * @return A pointer to the beginning of the data buffer.
138 void* (*GetDataBuffer)(PP_Resource buffer);
140 * Gets the size of the data buffer in bytes.
142 * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
143 * buffer resource.
145 * @return The size of the data buffer in bytes.
147 uint32_t (*GetDataBufferSize)(PP_Resource buffer);