Changed some code found by Clang Tidy and Coverity
This commit is contained in:
parent
2e065d8ad0
commit
50be65bf43
25 changed files with 142 additions and 155 deletions
|
|
@ -171,14 +171,14 @@ void AudioDriverALSA::thread_func(void *p_udata) {
|
|||
ad->start_counting_ticks();
|
||||
|
||||
if (!ad->active) {
|
||||
for (unsigned int i = 0; i < ad->period_size * ad->channels; i++) {
|
||||
for (uint64_t i = 0; i < ad->period_size * ad->channels; i++) {
|
||||
ad->samples_out.write[i] = 0;
|
||||
}
|
||||
|
||||
} else {
|
||||
ad->audio_server_process(ad->period_size, ad->samples_in.ptrw());
|
||||
|
||||
for (unsigned int i = 0; i < ad->period_size * ad->channels; i++) {
|
||||
for (uint64_t i = 0; i < ad->period_size * ad->channels; i++) {
|
||||
ad->samples_out.write[i] = ad->samples_in[i] >> 16;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue