mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
more clean up, starting to add recording support to sound stream
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2762 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
542bd73ba8
commit
a0e9e53d0c
5 changed files with 82 additions and 92 deletions
|
@ -48,4 +48,34 @@ SoundStream *InitSoundStream(std::string backend, CMixer *mixer) {
|
|||
return soundStream;
|
||||
}
|
||||
|
||||
void ShutdownSoundStream() {
|
||||
NOTICE_LOG(DSPHLE, "Shutting down sound stream");
|
||||
|
||||
if (soundStream) {
|
||||
soundStream->Stop();
|
||||
soundStream->StopLogAudio();
|
||||
delete soundStream;
|
||||
soundStream = NULL;
|
||||
}
|
||||
|
||||
// Check that soundstream already is stopped.
|
||||
while (soundStream) {
|
||||
ERROR_LOG(DSPHLE, "Waiting for sound stream");
|
||||
Common::SleepCurrentThread(2000);
|
||||
}
|
||||
INFO_LOG(DSPHLE, "Done shutting down sound stream");
|
||||
}
|
||||
|
||||
std::vector<std::string> GetSoundBackends() {
|
||||
std::vector<std::string> backends;
|
||||
// Add avaliable output options
|
||||
if (DSound::isValid())
|
||||
backends.push_back("DSound");
|
||||
if (AOSound::isValid())
|
||||
backends.push_back("AOSound");
|
||||
backends.push_back("NullSound");
|
||||
|
||||
return backends;
|
||||
}
|
||||
|
||||
} // Namespace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue