From ce9b714137a767b81f2d3c40b5f3ce0d5cf70fc8 Mon Sep 17 00:00:00 2001 From: Jeremy White Date: Sat, 30 Nov 2013 09:19:21 -0600 Subject: Add support for the Opus codec Signed-off-by: Jeremy White --- client/x11/record.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'client/x11/record.h') diff --git a/client/x11/record.h b/client/x11/record.h index 91410962..9470791f 100644 --- a/client/x11/record.h +++ b/client/x11/record.h @@ -29,7 +29,8 @@ public: WaveRecorder(Platform::RecordClient& client, uint32_t sampels_per_sec, uint32_t bits_per_sample, - uint32_t channels); + uint32_t channels, + uint32_t frame_size); virtual ~WaveRecorder(); virtual void start(); @@ -39,7 +40,8 @@ public: private: bool init(uint32_t sampels_per_sec, uint32_t bits_per_sample, - uint32_t channels); + uint32_t channels, + uint32_t frame_size); void cleanup(); void on_event(); @@ -49,6 +51,7 @@ private: snd_pcm_hw_params_t* _hw_params; snd_pcm_sw_params_t* _sw_params; uint32_t _sample_bytes; + uint32_t _frame_size; uint8_t* _frame; uint8_t* _frame_pos; uint8_t* _frame_end; -- cgit