Whitespace and pointer cleanup.
This commit is contained in:
parent
6fc0b8dca8
commit
a03eb9599f
32 changed files with 441 additions and 468 deletions
|
@ -3,37 +3,39 @@
|
|||
#include <memory>
|
||||
#include <alsa/asoundlib.h>
|
||||
|
||||
#include "IAudioInterface.h"
|
||||
|
||||
#include "AudioDevice.h"
|
||||
|
||||
class AlsaInterface
|
||||
class AlsaInterface : public IAudioInterface
|
||||
{
|
||||
snd_pcm_t* mHandle;
|
||||
snd_pcm_hw_params_t* mHardwareParams;
|
||||
snd_pcm_uframes_t mPeriodSize;
|
||||
snd_pcm_t* mHandle;
|
||||
snd_pcm_hw_params_t* mHardwareParams;
|
||||
snd_pcm_uframes_t mPeriodSize;
|
||||
|
||||
public:
|
||||
|
||||
AlsaInterface();
|
||||
AlsaInterface();
|
||||
|
||||
~AlsaInterface();
|
||||
~AlsaInterface();
|
||||
|
||||
static std::shared_ptr<AlsaInterface> Create();
|
||||
static std::shared_ptr<AlsaInterface> Create();
|
||||
|
||||
void OpenDevice(AudioDevicePtr device);
|
||||
void OpenDevice(const AudioDevicePtr& device) override;
|
||||
|
||||
void SetAccessType(AudioDevicePtr device);
|
||||
void SetAccessType(AudioDevicePtr device);
|
||||
|
||||
void SetSampleFormat(AudioDevicePtr device);
|
||||
void SetSampleFormat(AudioDevicePtr device);
|
||||
|
||||
void SetSampleRate(AudioDevicePtr device);
|
||||
void SetSampleRate(AudioDevicePtr device);
|
||||
|
||||
void SetPeriod(AudioDevicePtr device);
|
||||
void SetPeriod(AudioDevicePtr device);
|
||||
|
||||
void SetBufferSize(AudioDevicePtr device);
|
||||
void SetBufferSize(AudioDevicePtr device);
|
||||
|
||||
void SetChannelNumber(AudioDevicePtr device);
|
||||
void SetChannelNumber(AudioDevicePtr device);
|
||||
|
||||
void Play(AudioDevicePtr device);
|
||||
void Play(const AudioDevicePtr& device) override;
|
||||
};
|
||||
|
||||
using AlsaInterfacePtr = std::shared_ptr<AlsaInterface>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue