summaryrefslogtreecommitdiffstats
path: root/client/x11/playback.h
diff options
context:
space:
mode:
authorJeremy White <jwhite@codeweavers.com>2013-11-30 09:19:21 -0600
committerChristophe Fergeau <cfergeau@redhat.com>2014-01-02 12:36:59 +0100
commitce9b714137a767b81f2d3c40b5f3ce0d5cf70fc8 (patch)
treed0d0c87004994d5d037fb63a7c1d588bafe11226 /client/x11/playback.h
parent4c7c0ef3a70001b1bc9011ef824d3c6fcccd9ca0 (diff)
downloadspice-ce9b714137a767b81f2d3c40b5f3ce0d5cf70fc8.tar.gz
spice-ce9b714137a767b81f2d3c40b5f3ce0d5cf70fc8.tar.xz
spice-ce9b714137a767b81f2d3c40b5f3ce0d5cf70fc8.zip
Add support for the Opus codec
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Diffstat (limited to 'client/x11/playback.h')
-rw-r--r--client/x11/playback.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/x11/playback.h b/client/x11/playback.h
index 27ef9ed7..383f02d3 100644
--- a/client/x11/playback.h
+++ b/client/x11/playback.h
@@ -25,7 +25,7 @@
class WavePlayer: public WavePlaybackAbstract {
public:
- WavePlayer(uint32_t sampels_per_sec, uint32_t bits_per_sample, uint32_t channels);
+ WavePlayer(uint32_t sampels_per_sec, uint32_t bits_per_sample, uint32_t channels, uint32_t frame_size);
virtual ~WavePlayer();
virtual bool write(uint8_t* frame);
@@ -34,7 +34,7 @@ public:
virtual uint32_t get_delay_ms();
private:
- bool init(uint32_t sampels_per_sec, uint32_t bits_per_sample, uint32_t channel);
+ bool init(uint32_t sampels_per_sec, uint32_t bits_per_sample, uint32_t channel, uint32_t frame_size);
void cleanup();
private:
@@ -42,6 +42,7 @@ private:
snd_pcm_hw_params_t* _hw_params;
snd_pcm_sw_params_t* _sw_params;
uint32_t _sampels_per_ms;
+ uint32_t _frame_size;
};
#endif