make sound & AVI recording independent from sound output
This commit is contained in:
parent
8104f63c77
commit
d1032f568b
|
@ -77,20 +77,6 @@ DirectSound::DirectSound()
|
|||
|
||||
DirectSound::~DirectSound()
|
||||
{
|
||||
if(theApp.aviRecorder) {
|
||||
delete theApp.aviRecorder;
|
||||
theApp.aviRecorder = NULL;
|
||||
theApp.aviFrameNumber = 0;
|
||||
}
|
||||
|
||||
if(theApp.soundRecording) {
|
||||
if(theApp.soundRecorder) {
|
||||
delete theApp.soundRecorder;
|
||||
theApp.soundRecorder = NULL;
|
||||
}
|
||||
theApp.soundRecording = false;
|
||||
}
|
||||
|
||||
if(dsbNotify) {
|
||||
dsbNotify->Release();
|
||||
dsbNotify = NULL;
|
||||
|
|
|
@ -391,16 +391,6 @@ VBA::~VBA()
|
|||
movieLastJoypad = 0;
|
||||
}
|
||||
|
||||
if(aviRecorder) {
|
||||
delete aviRecorder;
|
||||
aviRecording = false;
|
||||
}
|
||||
|
||||
if(soundRecorder) {
|
||||
delete soundRecorder;
|
||||
soundRecorder = NULL;
|
||||
}
|
||||
soundRecording = false;
|
||||
soundPause();
|
||||
soundShutdown();
|
||||
|
||||
|
@ -1204,10 +1194,10 @@ int systemGetSensorY()
|
|||
return theApp.sensorY;
|
||||
}
|
||||
|
||||
|
||||
bool systemSoundInit()
|
||||
{
|
||||
if(theApp.sound)
|
||||
delete theApp.sound;
|
||||
systemSoundShutdown();
|
||||
|
||||
switch( theApp.audioAPI )
|
||||
{
|
||||
|
@ -1227,11 +1217,27 @@ bool systemSoundInit()
|
|||
|
||||
void systemSoundShutdown()
|
||||
{
|
||||
if(theApp.sound)
|
||||
if( theApp.aviRecorder ) {
|
||||
delete theApp.aviRecorder;
|
||||
theApp.aviRecorder = NULL;
|
||||
theApp.aviFrameNumber = 0;
|
||||
}
|
||||
|
||||
if( theApp.soundRecording ) {
|
||||
if( theApp.soundRecorder ) {
|
||||
delete theApp.soundRecorder;
|
||||
theApp.soundRecorder = NULL;
|
||||
}
|
||||
theApp.soundRecording = false;
|
||||
}
|
||||
|
||||
if( theApp.sound ) {
|
||||
delete theApp.sound;
|
||||
theApp.sound = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void systemSoundPause()
|
||||
{
|
||||
if(theApp.sound)
|
||||
|
|
Loading…
Reference in New Issue