diff --git a/src/audio_core/cubeb_sink.cpp b/src/audio_core/cubeb_sink.cpp index ec09f7030f..16f25f9da4 100644 --- a/src/audio_core/cubeb_sink.cpp +++ b/src/audio_core/cubeb_sink.cpp @@ -117,8 +117,8 @@ void CubebSink::SetCallback(std::function cb) { long CubebSink::Impl::DataCallback(cubeb_stream* stream, void* user_data, const void* input_buffer, void* output_buffer, long num_frames) { - Impl* impl = static_cast(user_data); - s16* buffer = reinterpret_cast(output_buffer); + auto* impl = static_cast(user_data); + auto* buffer = static_cast(output_buffer); if (!impl || !impl->cb) { LOG_DEBUG(Audio_Sink, "Emitting zeros");