Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Unified Diff: ppapi/api/ppb_audio_buffer.idl

Issue 156863005: [PPAPI][MediaStream] Rename AudioFrame to AudioBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@frame_to_buffer
Patch Set: Update Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/api/ppb_audio_buffer.idl
diff --git a/ppapi/api/ppb_audio_frame.idl b/ppapi/api/ppb_audio_buffer.idl
similarity index 28%
rename from ppapi/api/ppb_audio_frame.idl
rename to ppapi/api/ppb_audio_buffer.idl
index bb4d4b897fac2b813681d089de0888b38b0bf4b2..6d8fa6389f69fd82c37bf1e8ac14cb3f25328795 100644
--- a/ppapi/api/ppb_audio_frame.idl
+++ b/ppapi/api/ppb_audio_buffer.idl
@@ -4,7 +4,7 @@
*/
/**
- * Defines the <code>PPB_AudioFrame</code> interface.
+ * Defines the <code>PPB_AudioBuffer</code> interface.
*/
[generate_thunk]
@@ -14,119 +14,119 @@ label Chrome {
};
/**
- * PP_AudioFrame_SampleRate is an enumeration of the different audio sample
+ * PP_AudioBuffer_SampleRate is an enumeration of the different audio sample
* rates.
*/
-enum PP_AudioFrame_SampleRate {
- PP_AUDIOFRAME_SAMPLERATE_UNKNOWN = 0,
- PP_AUDIOFRAME_SAMPLERATE_8000 = 8000,
- PP_AUDIOFRAME_SAMPLERATE_44100 = 44100
+enum PP_AudioBuffer_SampleRate {
+ PP_AUDIOBUFFER_SAMPLERATE_UNKNOWN = 0,
+ PP_AUDIOBUFFER_SAMPLERATE_8000 = 8000,
+ PP_AUDIOBUFFER_SAMPLERATE_44100 = 44100
};
/**
- * PP_AudioFrame_SampleSize is an enumeration of the different audio sample
+ * PP_AudioBuffer_SampleSize is an enumeration of the different audio sample
* sizes.
*/
-enum PP_AudioFrame_SampleSize {
- PP_AUDIOFRAME_SAMPLESIZE_UNKNOWN = 0,
- PP_AUDIOFRAME_SAMPLESIZE_16_BITS = 2
+enum PP_AudioBuffer_SampleSize {
+ PP_AUDIOBUFFER_SAMPLESIZE_UNKNOWN = 0,
+ PP_AUDIOBUFFER_SAMPLESIZE_16_BITS = 2
};
-interface PPB_AudioFrame {
+interface PPB_AudioBuffer {
/**
- * Determines if a resource is an AudioFrame resource.
+ * Determines if a resource is an AudioBuffer resource.
*
* @param[in] resource The <code>PP_Resource</code> to test.
*
* @return A <code>PP_Bool</code> with <code>PP_TRUE</code> if the given
- * resource is an AudioFrame resource or <code>PP_FALSE</code> otherwise.
+ * resource is an AudioBuffer resource or <code>PP_FALSE</code> otherwise.
*/
- PP_Bool IsAudioFrame([in] PP_Resource resource);
+ PP_Bool IsAudioBuffer([in] PP_Resource resource);
/**
- * Gets the timestamp of the audio frame.
+ * Gets the timestamp of the audio buffer.
*
- * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame
- * resource.
+ * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
+ * buffer resource.
*
* @return A <code>PP_TimeDelta</code> containing the timestamp of the audio
- * frame. Given in seconds since the start of the containing audio stream.
+ * buffer. Given in seconds since the start of the containing audio stream.
*/
[on_failure=0.0]
- PP_TimeDelta GetTimestamp([in] PP_Resource frame);
+ PP_TimeDelta GetTimestamp([in] PP_Resource buffer);
/**
- * Sets the timestamp of the audio frame.
+ * Sets the timestamp of the audio buffer.
*
- * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame
- * resource.
+ * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
+ * buffer resource.
* @param[in] timestamp A <code>PP_TimeDelta</code> containing the timestamp
- * of the audio frame. Given in seconds since the start of the containing
+ * of the audio buffer. Given in seconds since the start of the containing
* audio stream.
*/
- void SetTimestamp([in] PP_Resource frame, [in] PP_TimeDelta timestamp);
+ void SetTimestamp([in] PP_Resource buffer, [in] PP_TimeDelta timestamp);
/**
- * Gets the sample rate of the audio frame.
+ * Gets the sample rate of the audio buffer.
*
- * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame
- * resource.
+ * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
+ * buffer resource.
*
- * @return The sample rate of the audio frame.
+ * @return The sample rate of the audio buffer.
*/
- [on_failure=PP_AUDIOFRAME_SAMPLERATE_UNKNOWN]
- PP_AudioFrame_SampleRate GetSampleRate([in] PP_Resource frame);
+ [on_failure=PP_AUDIOBUFFER_SAMPLERATE_UNKNOWN]
+ PP_AudioBuffer_SampleRate GetSampleRate([in] PP_Resource buffer);
/**
- * Gets the sample size of the audio frame.
+ * Gets the sample size of the audio buffer.
*
- * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame
- * resource.
+ * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
+ * buffer resource.
*
- * @return The sample size of the audio frame.
+ * @return The sample size of the audio buffer.
*/
- [on_failure=PP_AUDIOFRAME_SAMPLESIZE_UNKNOWN]
- PP_AudioFrame_SampleSize GetSampleSize([in] PP_Resource frame);
+ [on_failure=PP_AUDIOBUFFER_SAMPLESIZE_UNKNOWN]
+ PP_AudioBuffer_SampleSize GetSampleSize([in] PP_Resource buffer);
/**
- * Gets the number of channels in the audio frame.
+ * Gets the number of channels in the audio buffer.
*
- * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame
- * resource.
+ * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
+ * buffer resource.
*
- * @return The number of channels in the audio frame.
+ * @return The number of channels in the audio buffer.
*/
- uint32_t GetNumberOfChannels([in] PP_Resource frame);
+ uint32_t GetNumberOfChannels([in] PP_Resource buffer);
/**
- * Gets the number of samples in the audio frame.
+ * Gets the number of samples in the audio buffer.
*
- * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame
- * resource.
+ * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
+ * buffer resource.
*
- * @return The number of samples in the audio frame.
- * For example, at a sampling rate of 44,100 Hz in stereo audio, a frame
+ * @return 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.
*/
- uint32_t GetNumberOfSamples([in] PP_Resource frame);
+ uint32_t GetNumberOfSamples([in] PP_Resource buffer);
/**
- * Gets the data buffer containing the audio frame samples.
+ * Gets the data buffer containing the audio samples.
*
- * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame
- * resource.
+ * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
+ * buffer resource.
*
* @return A pointer to the beginning of the data buffer.
*/
- mem_t GetDataBuffer([in] PP_Resource frame);
+ mem_t GetDataBuffer([in] PP_Resource buffer);
/**
* Gets the size of the data buffer in bytes.
*
- * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame
- * resource.
+ * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
+ * buffer resource.
*
* @return The size of the data buffer in bytes.
*/
- uint32_t GetDataBufferSize([in] PP_Resource frame);
+ uint32_t GetDataBufferSize([in] PP_Resource buffer);
};

Powered by Google App Engine
This is Rietveld 408576698