Define audiostream.cpp's time_diff at global scope

There's no need to do this inside the InitAudio() function.
This commit is contained in:
Jan Holthuis 2015-04-14 15:31:32 +02:00
parent 574e90d1fc
commit 4c5682ac89
1 changed files with 3 additions and 2 deletions

View File

@ -16,7 +16,8 @@ volatile u32 ReadPtr; //next sample to read
u32 gen_samples=0;
double time_diff, time_last;
double time_diff = 128/44100.0;
double time_last;
#ifdef LOG_SOUND
WaveWriter rawout("d:\\aica_out.wav");
#endif
@ -97,7 +98,7 @@ void WriteSample(s16 r, s16 l)
void InitAudio()
{
time_diff=128/44100.0;
}
void TermAudio()