int MDSound_Init(void) { MDSound_SetSoundRate(0); zebuf.clock_rate((long)(CLOCK_NTSC / 15)); FMUnit.set_rate(); RedoVolume(); zebuf.bass_freq(20); return(1); }
void SMS_SoundInit(uint32 clock, bool WantFM) { SoundClock = clock; SMS_SetSoundRate(0); zebuf.clock_rate((long)(SoundClock)); RedoVolume(); zebuf.bass_freq(20); if(WantFM) FMThing = EMU2413_new(3579545); }
bool SoundBox_SetSoundRate(uint32 rate) { SoundEnabled = (bool)rate; if(FXres) { delete FXres; FXres = NULL; } if(rate > 0) { FXres = new OwlResampler(PCFX_MASTER_CLOCK / 12, rate, MDFN_GetSettingF("pcfx.resamp_rate_error"), 20, MDFN_GetSettingUI("pcfx.resamp_quality")); for(unsigned i = 0; i < 2; i++) FXres->ResetBufResampState(FXsbuf[i]); } RedoVolume(); return(TRUE); }
bool SoundBox_SetSoundRate(uint32 rate) { SoundEnabled = (bool)rate; if (FXres) { delete FXres; FXres = NULL; } if (rate > 0) { FXres = new OwlResampler(PCFX_MASTER_CLOCK / 12, rate, Setting_ResampRateError, 20, Setting_ResampQuality); for (unsigned i = 0; i < 2; i++) FXres->ResetBufResampState(FXsbuf[i]); } RedoVolume(); return (TRUE); }