diff options
Diffstat (limited to 'audio/out')
-rw-r--r-- | audio/out/ao_coreaudio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/out/ao_coreaudio.c b/audio/out/ao_coreaudio.c index bb0c80b044..65e51bce7d 100644 --- a/audio/out/ao_coreaudio.c +++ b/audio/out/ao_coreaudio.c @@ -504,7 +504,7 @@ static int init_digital(struct ao *ao, AudioStreamBasicDescription asbd) d->stream_idx = i; for (int j = 0; j < formats_n; j++) - if (AudioFormatIsDigital(asbd)) { + if (AudioFormatIsDigital(formats[j].mFormat)) { // select the digital format that has exactly the same // samplerate. If an exact match cannot be found, select // the format with highest samplerate as backup. |