Cast samples_in to samples_out with reinterpret_cast<int16_t*>
This commit is contained in:
parent
4a3e240732
commit
29be6da54a
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue