Attempt to remove mutex calls from instrumenttrack::processinevent

This commit is contained in:
Vesa
2014-07-09 12:38:09 +03:00
parent d4b0cc126d
commit 4eb486be1e
2 changed files with 12 additions and 13 deletions

View File

@@ -26,6 +26,9 @@
#ifndef INSTRUMENT_TRACK_H
#define INSTRUMENT_TRACK_H
#include <QtCore/QAtomicPointer>
#include <QtCore/QAtomicInt>
#include "AudioPort.h"
#include "InstrumentFunctions.h"
#include "InstrumentSoundShaping.h"
@@ -227,7 +230,7 @@ private:
AudioPort m_audioPort;
MidiPort m_midiPort;
NotePlayHandle* m_notes[NumKeys];
QAtomicPointer<NotePlayHandle> m_notes[NumKeys];
int m_runningMidiNotes[NumKeys];
bool m_sustainPedalPressed;