Fix downsampled rate accuracy
This commit is contained in:
parent
371c82338f
commit
9ae12241a4
|
|
@ -1548,8 +1548,8 @@ void DivPlatformOPL::reset() {
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
if (downsample) {
|
if (downsample) {
|
||||||
//const unsigned int downsampledRate=(unsigned int)((double)rate*rate/chipRateBase);
|
const unsigned int downsampledRate=(unsigned int)((double)rate*49716.0/(double)chipRateBase);
|
||||||
OPL3_Reset(&fm,44100);
|
OPL3_Reset(&fm,downsampledRate);
|
||||||
} else {
|
} else {
|
||||||
OPL3_Reset(&fm,rate);
|
OPL3_Reset(&fm,rate);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue