Remove unused miniaudio resampler

This commit is contained in:
wheremyfoodat 2024-11-28 20:43:26 +02:00
parent d299081c40
commit 72b4194c95
2 changed files with 3 additions and 4 deletions

View file

@ -16,10 +16,9 @@ class MiniAudioDevice {
ma_device device;
ma_context context;
ma_device_config deviceConfig;
ma_resampler resampler;
Samples* samples = nullptr;
AudioDeviceConfig& audioSettings;
const AudioDeviceConfig& audioSettings;
bool initialized = false;
bool running = false;
@ -29,7 +28,7 @@ class MiniAudioDevice {
std::vector<std::string> audioDevices;
public:
MiniAudioDevice(AudioDeviceConfig& audioSettings);
MiniAudioDevice(const AudioDeviceConfig& audioSettings);
// If safe is on, we create a null audio device
void init(Samples& samples, bool safe = false);

View file

@ -7,7 +7,7 @@
#include "helpers.hpp"
MiniAudioDevice::MiniAudioDevice(AudioDeviceConfig& audioSettings)
MiniAudioDevice::MiniAudioDevice(const AudioDeviceConfig& audioSettings)
: initialized(false), running(false), samples(nullptr), audioSettings(audioSettings) {}
void MiniAudioDevice::init(Samples& samples, bool safe) {