Mesen-SX/Core/SoundMixer.h
Sour bdc57286e7 SPC: Integrate blargg's SPC emulation library
Sound still doesn't work, however.
2019-02-16 11:23:01 -05:00

19 lines
346 B
C++

#pragma once
#include "stdafx.h"
#include "IAudioDevice.h"
class SoundMixer
{
private:
IAudioDevice* _audioDevice;
uint32_t _sampleRate;
public:
SoundMixer();
~SoundMixer();
void PlayAudioBuffer(int16_t *samples, uint32_t sampleCount);
void StopAudio(bool clearBuffer = false);
void RegisterAudioDevice(IAudioDevice *audioDevice);
};