summaryrefslogtreecommitdiff
path: root/drivers/ao/audio_driver_ao.cpp
diff options
context:
space:
mode:
authorAnton Yabchinskiy <arn@bestmx.ru>2014-11-22 17:54:00 +0300
committerAnton Yabchinskiy <arn@bestmx.ru>2014-11-22 17:54:00 +0300
commit29be6da54a54448539486a367305018ee7330801 (patch)
treee71921dc31f4df798bec76dd15fa83f22c83734c /drivers/ao/audio_driver_ao.cpp
parent4a3e24073247d39981fe1984e9a02bb766f35a55 (diff)
Cast samples_in to samples_out with reinterpret_cast<int16_t*>
Diffstat (limited to 'drivers/ao/audio_driver_ao.cpp')
-rw-r--r--drivers/ao/audio_driver_ao.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ao/audio_driver_ao.cpp b/drivers/ao/audio_driver_ao.cpp
index 1b9847c829..9acc22febe 100644
--- a/drivers/ao/audio_driver_ao.cpp
+++ b/drivers/ao/audio_driver_ao.cpp
@@ -68,7 +68,8 @@ Error AudioDriverAO::init() {
void AudioDriverAO::thread_func(void* p_udata) {
AudioDriverAO* ad = (AudioDriverAO*)p_udata;
- int16_t* samples_out = ad->samples_in; // Overwrite samples on conversion
+ // Overwrite samples on conversion
+ int16_t* samples_out = reinterpret_cast<int16_t*>(ad->samples_in);
unsigned int n_samples = ad->buffer_size * ad->channels;
unsigned int n_bytes = n_samples * sizeof(int16_t);