A/V changes

This commit is contained in:
dborth 2010-05-27 21:08:02 +00:00
parent b5e907d219
commit 3319c8a084
2 changed files with 4 additions and 0 deletions

View File

@ -84,6 +84,7 @@ void InitialiseAudio()
{
#ifdef NO_SOUND
AUDIO_Init (NULL);
AUDIO_SetDSPSampleRate(AI_SAMPLERATE_48KHZ);
AUDIO_RegisterDMACallback(AudioSwitchBuffers);
#else
ASND_Init();

View File

@ -212,6 +212,9 @@ void setFrameTimer()
void SyncSpeed()
{
if((vmode_60hz && normaldiff == 16667) || (!vmode_60hz && normaldiff == 20000))
return; // same timing as game - no adjustment necessary
now = gettime();
u32 diff = diff_usec(prev, now);