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
|
|
|
|
2016-07-31 10:35:08 -06:00
|
|
|
#include <memory>
|
|
|
|
|
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;
|
|
|
|
|
2016-07-31 10:35:08 -06:00
|
|
|
extern std::unique_ptr<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
|
|
|
{
|
2016-07-31 10:35:08 -06:00
|
|
|
void InitSoundStream();
|
2016-06-24 02:43:46 -06:00
|
|
|
void ShutdownSoundStream();
|
|
|
|
std::vector<std::string> GetSoundBackends();
|
|
|
|
void UpdateSoundStream();
|
|
|
|
void ClearAudioBuffer(bool mute);
|
|
|
|
void SendAIBuffer(short* samples, unsigned int num_samples);
|
|
|
|
void StartAudioDump();
|
|
|
|
void StopAudioDump();
|
|
|
|
void IncreaseVolume(unsigned short offset);
|
|
|
|
void DecreaseVolume(unsigned short offset);
|
|
|
|
void ToggleMuteVolume();
|
2009-07-05 20:10:26 -06:00
|
|
|
}
|