mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 22:09:19 -07:00
87f2a74c08
Now AudioCommon code won't need to be recompiled if the TAS movie header is ever modified.
34 lines
862 B
C++
34 lines
862 B
C++
// Copyright 2009 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "AudioCommon/SoundStream.h"
|
|
|
|
class CMixer;
|
|
|
|
extern std::unique_ptr<SoundStream> g_sound_stream;
|
|
|
|
namespace AudioCommon
|
|
{
|
|
void InitSoundStream();
|
|
void ShutdownSoundStream();
|
|
std::vector<std::string> GetSoundBackends();
|
|
bool SupportsDPL2Decoder(const std::string& backend);
|
|
bool SupportsLatencyControl(const std::string& backend);
|
|
bool SupportsVolumeChanges(const std::string& backend);
|
|
void UpdateSoundStream();
|
|
void ClearAudioBuffer(bool mute);
|
|
void SendAIBuffer(const short* samples, unsigned int num_samples);
|
|
void StartAudioDump();
|
|
void StopAudioDump();
|
|
void IncreaseVolume(unsigned short offset);
|
|
void DecreaseVolume(unsigned short offset);
|
|
void ToggleMuteVolume();
|
|
}
|