2013-04-17 21:09:55 -06:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2009-07-05 20:10:26 -06:00
|
|
|
|
2014-02-10 11:54:46 -07:00
|
|
|
#pragma once
|
2009-07-05 20:10:26 -06:00
|
|
|
|
2014-02-17 03:18:15 -07:00
|
|
|
#include "AudioCommon/SoundStream.h"
|
2014-09-07 19:06:58 -06:00
|
|
|
#include "Common/CommonTypes.h"
|
2009-07-05 20:10:26 -06:00
|
|
|
|
|
|
|
|
|
|
|
class CMixer;
|
|
|
|
|
2014-09-29 19:35:57 -06:00
|
|
|
extern SoundStream *g_sound_stream;
|
2009-07-05 20:10:26 -06:00
|
|
|
|
2013-10-28 23:23:17 -06:00
|
|
|
namespace AudioCommon
|
2009-07-05 20:10:26 -06:00
|
|
|
{
|
2014-08-30 21:36:00 -06:00
|
|
|
SoundStream* InitSoundStream();
|
2009-07-05 20:10:26 -06:00
|
|
|
void ShutdownSoundStream();
|
|
|
|
std::vector<std::string> GetSoundBackends();
|
2011-12-30 21:16:12 -07:00
|
|
|
void PauseAndLock(bool doLock, bool unpauseOnUnlock=true);
|
2013-01-16 18:16:56 -07:00
|
|
|
void UpdateSoundStream();
|
2014-03-27 18:56:05 -06:00
|
|
|
void ClearAudioBuffer(bool mute);
|
|
|
|
void SendAIBuffer(short* samples, unsigned int num_samples);
|
2014-10-15 18:03:31 -06:00
|
|
|
void StartAudioDump();
|
|
|
|
void StopAudioDump();
|
2009-07-05 20:10:26 -06:00
|
|
|
}
|