samples_in is an instance variable, prefix it with ad->
This commit is contained in:
parent
e60c41be9f
commit
4a3e240732
|
@ -68,7 +68,7 @@ Error AudioDriverAO::init() {
|
||||||
void AudioDriverAO::thread_func(void* p_udata) {
|
void AudioDriverAO::thread_func(void* p_udata) {
|
||||||
AudioDriverAO* ad = (AudioDriverAO*)p_udata;
|
AudioDriverAO* ad = (AudioDriverAO*)p_udata;
|
||||||
|
|
||||||
int16_t* samples_out = samples_in; // Overwrite samples on conversion
|
int16_t* samples_out = ad->samples_in; // Overwrite samples on conversion
|
||||||
unsigned int n_samples = ad->buffer_size * ad->channels;
|
unsigned int n_samples = ad->buffer_size * ad->channels;
|
||||||
unsigned int n_bytes = n_samples * sizeof(int16_t);
|
unsigned int n_bytes = n_samples * sizeof(int16_t);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue