#include "AudioDevice.h" AudioDevice::AudioDevice() : mName("plughw:1,0"), mSampleRate(44100), mNumChannels(2), mPeriod(2), mBufferSize() { } AudioDevice::~AudioDevice() { } std::shared_ptr AudioDevice::Create() { return std::make_shared(); } void AudioDevice::SetNumChannels(unsigned numChannels) { mNumChannels = numChannels; } void AudioDevice::SetPeriod(unsigned period) { mPeriod = period; } void AudioDevice::SetBufferSize(std::size_t bufferSize) { mBufferSize = bufferSize; } unsigned AudioDevice::GetNumChannels() { return mNumChannels; } unsigned AudioDevice::GetPeriod() { return mPeriod; } std::size_t AudioDevice::GetBufferSize() { return mBufferSize; } void AudioDevice::SetSampleRate(unsigned rate) { mSampleRate = rate; } unsigned AudioDevice::GetSampleRate() { return mSampleRate; } void AudioDevice::SetName(const std::string& name) { mName = name; } std::string AudioDevice::GetName() { return mName; }