Minor code formatting fixes in ao driver
This commit is contained in:
parent
2f92e2a67a
commit
3c2e35ada9
@ -66,7 +66,6 @@ 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;
|
||||||
|
|
||||||
uint64_t usdelay = (ad->buffer_size / float(ad->mix_rate)) * 1000000;
|
uint64_t usdelay = (ad->buffer_size / float(ad->mix_rate)) * 1000000;
|
||||||
@ -78,7 +77,6 @@ void AudioDriverAO::thread_func(void* p_udata) {
|
|||||||
ad->lock();
|
ad->lock();
|
||||||
ad->audio_server_process(ad->buffer_size, ad->samples_in);
|
ad->audio_server_process(ad->buffer_size, ad->samples_in);
|
||||||
ad->unlock();
|
ad->unlock();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
OS::get_singleton()->delay_usec(usdelay);
|
OS::get_singleton()->delay_usec(usdelay);
|
||||||
|
Loading…
Reference in New Issue
Block a user