Remove unused miniaudio resampler
This commit is contained in:
@@ -16,10 +16,9 @@ class MiniAudioDevice {
|
|||||||
ma_device device;
|
ma_device device;
|
||||||
ma_context context;
|
ma_context context;
|
||||||
ma_device_config deviceConfig;
|
ma_device_config deviceConfig;
|
||||||
ma_resampler resampler;
|
|
||||||
Samples* samples = nullptr;
|
Samples* samples = nullptr;
|
||||||
|
|
||||||
AudioDeviceConfig& audioSettings;
|
const AudioDeviceConfig& audioSettings;
|
||||||
|
|
||||||
bool initialized = false;
|
bool initialized = false;
|
||||||
bool running = false;
|
bool running = false;
|
||||||
@@ -29,7 +28,7 @@ class MiniAudioDevice {
|
|||||||
std::vector<std::string> audioDevices;
|
std::vector<std::string> audioDevices;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MiniAudioDevice(AudioDeviceConfig& audioSettings);
|
MiniAudioDevice(const AudioDeviceConfig& audioSettings);
|
||||||
|
|
||||||
// If safe is on, we create a null audio device
|
// If safe is on, we create a null audio device
|
||||||
void init(Samples& samples, bool safe = false);
|
void init(Samples& samples, bool safe = false);
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
#include "helpers.hpp"
|
#include "helpers.hpp"
|
||||||
|
|
||||||
MiniAudioDevice::MiniAudioDevice(AudioDeviceConfig& audioSettings)
|
MiniAudioDevice::MiniAudioDevice(const AudioDeviceConfig& audioSettings)
|
||||||
: initialized(false), running(false), samples(nullptr), audioSettings(audioSettings) {}
|
: initialized(false), running(false), samples(nullptr), audioSettings(audioSettings) {}
|
||||||
|
|
||||||
void MiniAudioDevice::init(Samples& samples, bool safe) {
|
void MiniAudioDevice::init(Samples& samples, bool safe) {
|
||||||
|
|||||||
Reference in New Issue
Block a user