aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/pulseaudio.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-28 16:13:28 -0800
committerChris Robinson <[email protected]>2018-12-28 16:13:28 -0800
commit67b874328d60062558eeb5068a3f79dab2b6f7e3 (patch)
tree39a560044c569a5b53c910241ef1917333a107cd /Alc/backends/pulseaudio.cpp
parent01ed98c99bc66f4df589d73c3ec9e97c9387d4f7 (diff)
Use static_cast instead of reinterpret_cast where possible
Diffstat (limited to 'Alc/backends/pulseaudio.cpp')
-rw-r--r--Alc/backends/pulseaudio.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/backends/pulseaudio.cpp b/Alc/backends/pulseaudio.cpp
index 60307e94..a99503e1 100644
--- a/Alc/backends/pulseaudio.cpp
+++ b/Alc/backends/pulseaudio.cpp
@@ -371,7 +371,7 @@ pa_proplist *prop_filter;
/* PulseAudio Event Callbacks */
void context_state_callback(pa_context *context, void *pdata)
{
- auto loop = reinterpret_cast<pa_threaded_mainloop*>(pdata);
+ auto loop = static_cast<pa_threaded_mainloop*>(pdata);
pa_context_state_t state{pa_context_get_state(context)};
if(state == PA_CONTEXT_READY || !PA_CONTEXT_IS_GOOD(state))
pa_threaded_mainloop_signal(loop, 0);
@@ -379,7 +379,7 @@ void context_state_callback(pa_context *context, void *pdata)
void stream_state_callback(pa_stream *stream, void *pdata)
{
- auto loop = reinterpret_cast<pa_threaded_mainloop*>(pdata);
+ auto loop = static_cast<pa_threaded_mainloop*>(pdata);
pa_stream_state_t state{pa_stream_get_state(stream)};
if(state == PA_STREAM_READY || !PA_STREAM_IS_GOOD(state))
pa_threaded_mainloop_signal(loop, 0);
@@ -387,7 +387,7 @@ void stream_state_callback(pa_stream *stream, void *pdata)
void stream_success_callback(pa_stream *UNUSED(stream), int UNUSED(success), void *pdata)
{
- auto loop = reinterpret_cast<pa_threaded_mainloop*>(pdata);
+ auto loop = static_cast<pa_threaded_mainloop*>(pdata);
pa_threaded_mainloop_signal(loop, 0);
}