diff options
author | bunnei <bunneidev@gmail.com> | 2020-09-30 00:09:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-30 00:09:12 +0200 |
commit | 2a82f1b08bb0f3f03830bde9afa866f8116775ee (patch) | |
tree | 203bb4ca2c565f2b3d639cf8fef1d5daf8046eaf /src/audio_core | |
parent | Merge pull request #1703 from DarkLordZach/nvdec-ioctl (diff) | |
parent | cubeb_sink: Use static_cast instead of reinterpret_cast in DataCallback() (diff) | |
download | yuzu-2a82f1b08bb0f3f03830bde9afa866f8116775ee.tar yuzu-2a82f1b08bb0f3f03830bde9afa866f8116775ee.tar.gz yuzu-2a82f1b08bb0f3f03830bde9afa866f8116775ee.tar.bz2 yuzu-2a82f1b08bb0f3f03830bde9afa866f8116775ee.tar.lz yuzu-2a82f1b08bb0f3f03830bde9afa866f8116775ee.tar.xz yuzu-2a82f1b08bb0f3f03830bde9afa866f8116775ee.tar.zst yuzu-2a82f1b08bb0f3f03830bde9afa866f8116775ee.zip |
Diffstat (limited to 'src/audio_core')
-rw-r--r-- | src/audio_core/cubeb_sink.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/cubeb_sink.cpp b/src/audio_core/cubeb_sink.cpp index 83c06c0ed..eb82791f6 100644 --- a/src/audio_core/cubeb_sink.cpp +++ b/src/audio_core/cubeb_sink.cpp @@ -192,8 +192,8 @@ SinkStream& CubebSink::AcquireSinkStream(u32 sample_rate, u32 num_channels, long CubebSinkStream::DataCallback(cubeb_stream* stream, void* user_data, const void* input_buffer, void* output_buffer, long num_frames) { - CubebSinkStream* impl = static_cast<CubebSinkStream*>(user_data); - u8* buffer = reinterpret_cast<u8*>(output_buffer); + auto* impl = static_cast<CubebSinkStream*>(user_data); + auto* buffer = static_cast<u8*>(output_buffer); if (!impl) { return {}; |