soundBufferTotalLen is in DirectSound.cpp now
Added correct sound device selection in OpenAL git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@170 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
parent
028e88e0de
commit
2dabc9c2d9
|
@ -51,7 +51,7 @@ int soundTicks = SOUND_CLOCK_TICKS_;
|
|||
|
||||
u16 soundFinalWave [1470];
|
||||
int soundBufferLen = 1470;
|
||||
int soundBufferTotalLen = 14700;
|
||||
|
||||
|
||||
int soundDebug = 0;
|
||||
u32 soundNextPosition = 0;
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#pragma comment( lib, "Dsound" )
|
||||
#pragma comment( lib, "Dxguid" )
|
||||
|
||||
int soundBufferTotalLen = 14700;
|
||||
extern bool soundBufferLow;
|
||||
extern void setsystemSoundOn(bool value);
|
||||
|
||||
|
@ -47,6 +48,7 @@ private:
|
|||
LPDIRECTSOUNDNOTIFY8 dsbNotify;
|
||||
HANDLE dsbEvent;
|
||||
WAVEFORMATEX wfx; // Primary buffer wave format
|
||||
|
||||
|
||||
public:
|
||||
DirectSound();
|
||||
|
@ -69,6 +71,7 @@ DirectSound::DirectSound()
|
|||
dsbSecondary = NULL;
|
||||
dsbNotify = NULL;
|
||||
dsbEvent = NULL;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -160,11 +160,7 @@ bool OpenAL::init()
|
|||
winlog( "OpenAL::init\n" );
|
||||
assert( initialized == false );
|
||||
|
||||
if (theApp.OpenALAudiomixing)
|
||||
{
|
||||
device = alcOpenDevice( "Generic Software" );
|
||||
}
|
||||
device = alcOpenDevice( NULL );
|
||||
device = alcOpenDevice( theApp.OpenALAudiomixing ? "Generic Software" : NULL );
|
||||
assert( device != NULL );
|
||||
|
||||
context = alcCreateContext( device, NULL );
|
||||
|
|
Loading…
Reference in New Issue