28 lines
808 B
C++
28 lines
808 B
C++
#pragma once
|
|
|
|
#include "miniaudio.h"
|
|
|
|
class PlayerEngine {
|
|
private:
|
|
ma_engine engine_;
|
|
ma_engine_config engineConfig_;
|
|
ma_device device_;
|
|
ma_device_config deviceConfig_;
|
|
unsigned int sampleRate_;
|
|
unsigned int channels_ = 2;
|
|
ma_format format_ = ma_format_unknown;
|
|
|
|
public:
|
|
PlayerEngine();
|
|
PlayerEngine( unsigned int sampleRate, unsigned int channels, ma_format format );
|
|
ma_device getDevice() const;
|
|
unsigned int getChannels() const;
|
|
unsigned int getSampleRate() const;
|
|
ma_format getFormat() const;
|
|
|
|
void setDevice( ma_device device );
|
|
void setSampleRate( unsigned int sampleRate );
|
|
void setChannels( unsigned int channels );
|
|
void setFormat( ma_format format );
|
|
};
|