diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-03 00:27:22 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-08-04 20:34:12 +0200 |
commit | 9f846d3aa42d7ad269d3d5d0cd1ad68c43b37bb7 (patch) | |
tree | 92d92a14528997d5b1cd2baab50a1045f702b9dc /src/audio_core/audio_out.cpp | |
parent | Merge pull request #849 from DarkLordZach/xci (diff) | |
download | yuzu-9f846d3aa42d7ad269d3d5d0cd1ad68c43b37bb7.tar yuzu-9f846d3aa42d7ad269d3d5d0cd1ad68c43b37bb7.tar.gz yuzu-9f846d3aa42d7ad269d3d5d0cd1ad68c43b37bb7.tar.bz2 yuzu-9f846d3aa42d7ad269d3d5d0cd1ad68c43b37bb7.tar.lz yuzu-9f846d3aa42d7ad269d3d5d0cd1ad68c43b37bb7.tar.xz yuzu-9f846d3aa42d7ad269d3d5d0cd1ad68c43b37bb7.tar.zst yuzu-9f846d3aa42d7ad269d3d5d0cd1ad68c43b37bb7.zip |
Diffstat (limited to 'src/audio_core/audio_out.cpp')
-rw-r--r-- | src/audio_core/audio_out.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/audio_core/audio_out.cpp b/src/audio_core/audio_out.cpp index 3dfdf61f9..5cf665c22 100644 --- a/src/audio_core/audio_out.cpp +++ b/src/audio_core/audio_out.cpp @@ -27,16 +27,16 @@ static Stream::Format ChannelsToStreamFormat(u32 num_channels) { return {}; } -StreamPtr AudioOut::OpenStream(u32 sample_rate, u32 num_channels, +StreamPtr AudioOut::OpenStream(u32 sample_rate, u32 num_channels, std::string&& name, Stream::ReleaseCallback&& release_callback) { if (!sink) { const SinkDetails& sink_details = GetSinkDetails(Settings::values.sink_id); sink = sink_details.factory(Settings::values.audio_device_id); } - return std::make_shared<Stream>(sample_rate, ChannelsToStreamFormat(num_channels), - std::move(release_callback), - sink->AcquireSinkStream(sample_rate, num_channels)); + return std::make_shared<Stream>( + sample_rate, ChannelsToStreamFormat(num_channels), std::move(release_callback), + sink->AcquireSinkStream(sample_rate, num_channels), std::move(name)); } std::vector<Buffer::Tag> AudioOut::GetTagsAndReleaseBuffers(StreamPtr stream, size_t max_count) { |