digital-sound-antiques / emu8950

A Y8950/YM3526/YM3812 emulator written in C.
MIT License
59 stars 7 forks source link

How to change the output to 44KHz #4

Open FreddyVRetro opened 3 weeks ago

FreddyVRetro commented 3 weeks ago

Hi,

I try to play adlib at 44KHz, but I it play at a lower pitch (normal)

But whatever I put here as parameter, nothing change... emu8950_opl = OPL_new(OPL_CLOCK, PICO_SOUND_SAMPLE_FREQ);

Do you know what we should do ?

okaxaki commented 3 weeks ago

Is OPL_CLOCK 3579545Hz and PICO_SOUND_SAMPLE_FREQ 44100Hz? If so, please make sure the playback audio rate is 44100Hz in your environment.