Skip to content

Commit

Permalink
Remove unused miniaudio resampler
Browse files Browse the repository at this point in the history
  • Loading branch information
wheremyfoodat committed Nov 28, 2024
1 parent d299081 commit 72b4194
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions include/audio/miniaudio_device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/core/audio/miniaudio_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 72b4194

Please sign in to comment.