Skip to content

Commit

Permalink
Fix oversight
Browse files Browse the repository at this point in the history
  • Loading branch information
NeRdTheNed committed Apr 13, 2023
1 parent 4ff123f commit 7255406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oswrapper_audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ OSWRAPPER_AUDIO_DEF size_t oswrapper_audio_get_samples(OSWrapper_audio_spec* aud
oswrapper_audio__get_new_samples(audio, frames_to_do * frame_size);
}

if (internal_data->internal_buffer_remaining < (frames_to_do * frame_size)) {
if (internal_data->internal_buffer_remaining < (frames_to_do * frame_size / sizeof(short))) {
frames_to_do = internal_data->internal_buffer_remaining * sizeof(short) / frame_size;
}

Expand Down

0 comments on commit 7255406

Please sign in to comment.