Skip to content

Commit

Permalink
Tsan: Worked around a false positive flagged by Tsan
Browse files Browse the repository at this point in the history
  • Loading branch information
drowaudio committed Dec 16, 2024
1 parent 6fc74a8 commit 6211518
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions modules/tracktion_engine/model/tracks/tracktion_AudioTrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,19 +118,19 @@ AudioTrack::AudioTrack (Edit& ed, const juce::ValueTree& v)

updateMidiNoteMapCache();

WaveDeviceDescription desc;
desc.name = itemID.toString();
desc.channels = { ChannelIndex (0, juce::AudioChannelSet::left),
ChannelIndex (1, juce::AudioChannelSet::right) };

callBlocking ([this, desc]
callBlocking ([this, itemIDString = itemID.toString()]
{
WaveDeviceDescription desc;
desc.name = itemIDString;
desc.channels = { ChannelIndex (0, juce::AudioChannelSet::left),
ChannelIndex (1, juce::AudioChannelSet::right) };

waveInputDevice = std::make_unique<WaveInputDevice> (edit.engine, TRANS("Track Wave Input"),
desc, InputDevice::trackWaveDevice);

midiInputDevice = std::make_unique<VirtualMidiInputDevice> (edit.engine, itemID.toString(),
midiInputDevice = std::make_unique<VirtualMidiInputDevice> (edit.engine, itemIDString,
InputDevice::trackMidiDevice,
"TrkMIDI_" + itemID.toString(),
"TrkMIDI_" + itemIDString,
false);

auto& eid = edit.getEditInputDevices();
Expand Down

0 comments on commit 6211518

Please sign in to comment.