diff options
-rw-r--r-- | src/audio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/audio.c b/src/audio.c index 30d9277e6..ca36cb126 100644 --- a/src/audio.c +++ b/src/audio.c @@ -84,7 +84,8 @@ void copyAudioFormat(AudioFormat * dest, AudioFormat * src) int cmpAudioFormat(AudioFormat * f1, AudioFormat * f2) { - if (f1 && f2 && (0 == memcmp(f1, f2, sizeof(AudioFormat)))) + if (f1 && f2 && (f1->sampleRate == f2->sampleRate) && + (f1->bits == f2->bits) && (f1->channels == f2->channels)) return 0; return 1; } |