summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/AudioCommon.h
blob: b404e2073171153746b0827e49317dad868aca44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2009 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.

#pragma once

#include "AudioCommon/SoundStream.h"
#include "Common/CommonTypes.h"


class CMixer;

extern SoundStream *g_sound_stream;

namespace AudioCommon
{
	SoundStream* InitSoundStream();
	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();
}