Prevent output of fraction of sample (#193)

Fixes #134.
This commit is contained in:
Vort 2023-12-25 12:00:31 +02:00 committed by GitHub
parent 7c9bab8182
commit aed0c5e954
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ int bx_soundlow_waveout_win_c::set_pcm_params(bx_pcm_param_t *param)
int bx_soundlow_waveout_win_c::get_packetsize()
{
return (real_pcm_param.samplerate * 4 / SOUNDWIN_PACKETS_PER_SEC);
return (real_pcm_param.samplerate / SOUNDWIN_PACKETS_PER_SEC * 4);
}
int bx_soundlow_waveout_win_c::output(int length, Bit8u data[])