[Spice-devel] [PATCH 3/7] snd_desired_audio_mode: change arguments to bool
Jonathon Jongsma
jjongsma at redhat.com
Fri Apr 7 15:23:57 UTC 2017
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
More information about the Spice-devel
mailing list