diff options
author | bunnei <bunneidev@gmail.com> | 2018-07-28 19:35:22 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-07-31 00:58:40 +0200 |
commit | 0e8a2c7222b978507f62d7e0b83187b16532eae8 (patch) | |
tree | bfcc69cc41fc9cf9fe9a80c321f27ba50d17065f /src/audio_core/audio_out.cpp | |
parent | audio_core: Move to audout_u impl. (diff) | |
download | yuzu-0e8a2c7222b978507f62d7e0b83187b16532eae8.tar yuzu-0e8a2c7222b978507f62d7e0b83187b16532eae8.tar.gz yuzu-0e8a2c7222b978507f62d7e0b83187b16532eae8.tar.bz2 yuzu-0e8a2c7222b978507f62d7e0b83187b16532eae8.tar.lz yuzu-0e8a2c7222b978507f62d7e0b83187b16532eae8.tar.xz yuzu-0e8a2c7222b978507f62d7e0b83187b16532eae8.tar.zst yuzu-0e8a2c7222b978507f62d7e0b83187b16532eae8.zip |
Diffstat (limited to 'src/audio_core/audio_out.cpp')
-rw-r--r-- | src/audio_core/audio_out.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/audio_out.cpp b/src/audio_core/audio_out.cpp index 6d418a05b..43414f197 100644 --- a/src/audio_core/audio_out.cpp +++ b/src/audio_core/audio_out.cpp @@ -9,7 +9,7 @@ namespace AudioCore { /// Returns the stream format from the specified number of channels -static Stream::Format ChannelsToStreamFormat(int num_channels) { +static Stream::Format ChannelsToStreamFormat(u32 num_channels) { switch (num_channels) { case 1: return Stream::Format::Mono16; @@ -24,7 +24,7 @@ static Stream::Format ChannelsToStreamFormat(int num_channels) { return {}; } -StreamPtr AudioOut::OpenStream(int sample_rate, int num_channels, +StreamPtr AudioOut::OpenStream(u32 sample_rate, u32 num_channels, Stream::ReleaseCallback&& release_callback) { streams.push_back(std::make_shared<Stream>(sample_rate, ChannelsToStreamFormat(num_channels), std::move(release_callback))); |