mirror of
https://github.com/godotengine/godot.git
synced 2024-11-28 07:02:56 +00:00
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) {
|
||||
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_bytes = n_samples * sizeof(int16_t);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user