Skip to content

Commit

Permalink
miniaudio: Ensure context is used consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
ideoforms committed Feb 6, 2025
1 parent 4fa0a17 commit d3fbbdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/src/node/io/output/miniaudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ void AudioOut::init()
// On Core Audio, let the application select a preferred sample rate.
config.coreaudio.allowNominalSampleRateChange = 1;

rv = ma_device_init(NULL, &config, &device);
rv = ma_device_init(&this->context, &config, &device);
if (rv != MA_SUCCESS)
{
throw audio_io_exception("miniaudio: Error initialising output device");
Expand Down

0 comments on commit d3fbbdf

Please sign in to comment.