mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-25 06:51:10 +01:00
A/V changes
This commit is contained in:
parent
b5e907d219
commit
3319c8a084
@ -84,6 +84,7 @@ void InitialiseAudio()
|
|||||||
{
|
{
|
||||||
#ifdef NO_SOUND
|
#ifdef NO_SOUND
|
||||||
AUDIO_Init (NULL);
|
AUDIO_Init (NULL);
|
||||||
|
AUDIO_SetDSPSampleRate(AI_SAMPLERATE_48KHZ);
|
||||||
AUDIO_RegisterDMACallback(AudioSwitchBuffers);
|
AUDIO_RegisterDMACallback(AudioSwitchBuffers);
|
||||||
#else
|
#else
|
||||||
ASND_Init();
|
ASND_Init();
|
||||||
|
@ -212,6 +212,9 @@ void setFrameTimer()
|
|||||||
|
|
||||||
void SyncSpeed()
|
void SyncSpeed()
|
||||||
{
|
{
|
||||||
|
if((vmode_60hz && normaldiff == 16667) || (!vmode_60hz && normaldiff == 20000))
|
||||||
|
return; // same timing as game - no adjustment necessary
|
||||||
|
|
||||||
now = gettime();
|
now = gettime();
|
||||||
u32 diff = diff_usec(prev, now);
|
u32 diff = diff_usec(prev, now);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user