2015-05-23 22:55:12 -06:00
|
|
|
// Copyright 2009 Dolphin Emulator Project
|
2015-05-17 17:08:10 -06:00
|
|
|
// Licensed under GPLv2+
|
2013-04-17 21:09:55 -06:00
|
|
|
// 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();
|
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();
|
2014-12-28 14:03:21 -07:00
|
|
|
void IncreaseVolume(unsigned short offset);
|
|
|
|
void DecreaseVolume(unsigned short offset);
|
|
|
|
void ToggleMuteVolume();
|
2009-07-05 20:10:26 -06:00
|
|
|
}
|