aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/audio.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/audio.c b/src/audio.c
index 243f65863..9e80c6762 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -210,12 +210,7 @@ int isCurrentAudioFormat(AudioFormat * audioFormat) {
#ifdef HAVE_AUDIO
if(!audio_device || !audioFormat) return 0;
- if(audio_format.bits!=audioFormat->bits ||
- audio_format.sampleRate!=audioFormat->sampleRate ||
- audio_format.channels!=audioFormat->channels)
- {
- return 0;
- }
+ if(memcmp(audioFormat,&audio_format,sizeof(AudioFormat)) != 0) return 0;
#endif
return 1;
}