Skip to content

Commit 5682a22

Browse files
committed
0.1.4
1 parent 27b30c2 commit 5682a22

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

buildspec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"name": "atkaudio-pluginforobs",
4040
"displayName": "atkAudio Plugin",
41-
"version": "0.1.3",
41+
"version": "0.1.4",
4242
"author": "atkAudio",
4343
"website": "https://www.atkaudio.com",
4444
"email": "pluginforobs@atkaudio.com",

src/SourceMixer.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@ static void asmd_capture(void* param, obs_source_t* sourceIn, const struct audio
202202
{
203203
auto* sourcePtr = (float*)audio_data->data[i];
204204
for (size_t j = 0; j < frames; j++)
205-
source->tempBuffer[j] = sourcePtr[j] * source->gain;
205+
sourcePtr[j] *= source->gain;
206206

207-
source->fifoBuffer.write(source->tempBuffer.data(), i, frames, i == numChannels - 1);
207+
source->fifoBuffer.write(sourcePtr, i, frames, i == numChannels - 1);
208208
}
209209
}
210210

@@ -233,17 +233,19 @@ static void asmd_capture(void* param, obs_source_t* sourceIn, const struct audio
233233
}
234234
}
235235

236+
// TODO
237+
doThisCallback = false;
236238
if (!doThisCallback)
237239
{
238240
asmd->doRawCallback = true;
239241
return;
240242
}
241243
asmd->doRawCallback = false;
242244

243-
std::scoped_lock lock(asmd->captureCallbackMutex);
244-
245245
auto sampleRate = audio_output_get_sample_rate(obs_get_audio());
246246

247+
std::scoped_lock lock(asmd->captureCallbackMutex);
248+
247249
for (auto& source : *asmd->sources)
248250
{
249251
asmd->sidechain_update_mutex.lock();

0 commit comments

Comments
 (0)