client_can_celt and client_can_opus are true/false values, so use 'bool' type instead of 'int. --- server/sound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sound.c b/server/sound.c index ff9a37a..ff78c08 100644 --- a/server/sound.c +++ b/server/sound.c @@ -974,7 +974,7 @@ void snd_set_playback_latency(RedClient *client, uint32_t latency) } static int snd_desired_audio_mode(bool playback_compression, int frequency, - int client_can_celt, int client_can_opus) + bool client_can_celt, bool client_can_opus) { if (! playback_compression) return SPICE_AUDIO_DATA_MODE_RAW; -- 2.9.3 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel