summaryrefslogtreecommitdiff
path: root/src/audio_core/audio_out.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2018-07-28 13:35:22 -0400
committerGravatar bunnei2018-07-30 18:58:40 -0400
commit0e8a2c7222b978507f62d7e0b83187b16532eae8 (patch)
treebfcc69cc41fc9cf9fe9a80c321f27ba50d17065f /src/audio_core/audio_out.cpp
parentaudio_core: Move to audout_u impl. (diff)
downloadyuzu-0e8a2c7222b978507f62d7e0b83187b16532eae8.tar.gz
yuzu-0e8a2c7222b978507f62d7e0b83187b16532eae8.tar.xz
yuzu-0e8a2c7222b978507f62d7e0b83187b16532eae8.zip
audio_core: Misc. improvements to stream/buffer/audio_out.
Diffstat (limited to 'src/audio_core/audio_out.cpp')
-rw-r--r--src/audio_core/audio_out.cpp4
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 @@
9namespace AudioCore { 9namespace AudioCore {
10 10
11/// Returns the stream format from the specified number of channels 11/// Returns the stream format from the specified number of channels
12static Stream::Format ChannelsToStreamFormat(int num_channels) { 12static Stream::Format ChannelsToStreamFormat(u32 num_channels) {
13 switch (num_channels) { 13 switch (num_channels) {
14 case 1: 14 case 1:
15 return Stream::Format::Mono16; 15 return Stream::Format::Mono16;
@@ -24,7 +24,7 @@ static Stream::Format ChannelsToStreamFormat(int num_channels) {
24 return {}; 24 return {};
25} 25}
26 26
27StreamPtr AudioOut::OpenStream(int sample_rate, int num_channels, 27StreamPtr AudioOut::OpenStream(u32 sample_rate, u32 num_channels,
28 Stream::ReleaseCallback&& release_callback) { 28 Stream::ReleaseCallback&& release_callback) {
29 streams.push_back(std::make_shared<Stream>(sample_rate, ChannelsToStreamFormat(num_channels), 29 streams.push_back(std::make_shared<Stream>(sample_rate, ChannelsToStreamFormat(num_channels),
30 std::move(release_callback))); 30 std::move(release_callback)));