rpcsx/rpcsx/audio/AudioDevice.cpp
DH 0c16e294d4 merge rpcsx-gpu and rpcsx-os
initial watchdog implementation
implement gpu -> os events
implement main gfx queue
2024-10-12 05:24:58 +03:00

33 lines
698 B
C++

#include "AudioDevice.hpp"
#include "orbis/utils/Logs.hpp"
void AudioDevice::setFormat(AudioFormat format) {
if (mWorking)
return;
mFormat = format;
}
void AudioDevice::setFrequency(orbis::uint frequency) {
if (mWorking)
return;
mFrequency = frequency;
}
void AudioDevice::setChannels(orbis::ushort channels) {
if (mWorking)
return;
if (channels > 8) {
ORBIS_LOG_FATAL("Channels count is not supported", channels);
std::abort();
}
mChannels = channels;
}
void AudioDevice::setSampleSize(orbis::uint sampleSize,
orbis::uint sampleCount) {
if (mWorking)
return;
mSampleSize = sampleSize;
mSampleCount = sampleCount;
}