summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-09-30 00:09:12 +0200
committerGitHub <noreply@github.com>2020-09-30 00:09:12 +0200
commit2a82f1b08bb0f3f03830bde9afa866f8116775ee (patch)
tree203bb4ca2c565f2b3d639cf8fef1d5daf8046eaf /src
parentMerge pull request #1703 from DarkLordZach/nvdec-ioctl (diff)
parentcubeb_sink: Use static_cast instead of reinterpret_cast in DataCallback() (diff)
downloadyuzu-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')
-rw-r--r--src/audio_core/cubeb_sink.cpp4
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 {};