output/osx: implement 32 bit playback

This commit is contained in:
Max Kellermann 2011-12-24 18:18:42 +01:00
parent 9179d9592d
commit 1ebadf8620
2 changed files with 7 additions and 2 deletions

1
NEWS
View File

@ -19,6 +19,7 @@ ver 0.17 (2011/??/??)
- httpd: support for streaming to a DLNA client
- openal: improve buffer cancellation
- osx: allow user to specify other audio devices
- osx: implement 32 bit playback
- raop: new output plugin
- shout: add possibility to set url
- roar: new output plugin for RoarAudio

View File

@ -345,9 +345,13 @@ osx_output_open(struct audio_output *ao, struct audio_format *audio_format, GErr
stream_description.mBitsPerChannel = 16;
break;
case SAMPLE_FORMAT_S32:
stream_description.mBitsPerChannel = 32;
break;
default:
audio_format->format = SAMPLE_FORMAT_S16;
stream_description.mBitsPerChannel = 16;
audio_format->format = SAMPLE_FORMAT_S32;
stream_description.mBitsPerChannel = 32;
break;
}