mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-04 18:27:25 +00:00
Fix downsampled rate accuracy
This commit is contained in:
parent
371c82338f
commit
9ae12241a4
1 changed files with 2 additions and 2 deletions
|
@ -1548,8 +1548,8 @@ void DivPlatformOPL::reset() {
|
|||
}
|
||||
*/
|
||||
if (downsample) {
|
||||
//const unsigned int downsampledRate=(unsigned int)((double)rate*rate/chipRateBase);
|
||||
OPL3_Reset(&fm,44100);
|
||||
const unsigned int downsampledRate=(unsigned int)((double)rate*49716.0/(double)chipRateBase);
|
||||
OPL3_Reset(&fm,downsampledRate);
|
||||
} else {
|
||||
OPL3_Reset(&fm,rate);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue