summaryrefslogtreecommitdiffstats
path: root/webkit/glue/plugins/pepper_audio.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/plugins/pepper_audio.h')
-rw-r--r--webkit/glue/plugins/pepper_audio.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/webkit/glue/plugins/pepper_audio.h b/webkit/glue/plugins/pepper_audio.h
index d9a9e86..196eac4 100644
--- a/webkit/glue/plugins/pepper_audio.h
+++ b/webkit/glue/plugins/pepper_audio.h
@@ -25,20 +25,21 @@ class PluginModule;
class AudioConfig : public Resource {
public:
- AudioConfig(PluginModule* module, int32_t sample_rate,
- int32_t sample_frame_count);
-
+ AudioConfig(PluginModule* module,
+ PP_AudioSampleRate_Dev sample_rate,
+ uint32_t sample_frame_count);
+ size_t BufferSize();
static const PPB_AudioConfig_Dev* GetInterface();
- uint32_t sample_rate() { return sample_rate_; }
+ PP_AudioSampleRate_Dev sample_rate() { return sample_rate_; }
uint32_t sample_frame_count() { return sample_frame_count_; }
private:
// Resource override.
virtual AudioConfig* AsAudioConfig();
- int sample_rate_;
- int sample_frame_count_;
+ PP_AudioSampleRate_Dev sample_rate_;
+ uint32_t sample_frame_count_;
};
class Audio : public Resource,