Switched from std::list to QList

This commit is contained in:
Garrett
2014-10-23 07:24:06 -07:00
parent 0ae048b7a4
commit 74ded6b7ef
2 changed files with 5 additions and 5 deletions

View File

@@ -362,7 +362,7 @@ void gigInstrument::play( sampleFrame * _working_buffer )
m_synthMutex.lock();
for( std::list<gigNote>::iterator note = m_notes.begin(); note != m_notes.end(); ++note )
for( QList<gigNote>::iterator note = m_notes.begin(); note != m_notes.end(); ++note )
{
if( note->sample )
{
@@ -412,7 +412,7 @@ void gigInstrument::play( sampleFrame * _working_buffer )
}
// Fill with portions of the note samples
for( std::list<gigNote>::iterator note = m_notes.begin(); note != m_notes.end(); ++note )
for( QList<gigNote>::iterator note = m_notes.begin(); note != m_notes.end(); ++note )
{
if( note->sample )
{
@@ -541,7 +541,7 @@ void gigInstrument::deleteNotePluginData( NotePlayHandle * _n )
bool noteRelease = false;
// Fade out the note we want to end
for( std::list<gigNote>::iterator i = m_notes.begin(); i != m_notes.end(); ++i )
for( QList<gigNote>::iterator i = m_notes.begin(); i != m_notes.end(); ++i )
{
if( i->midiNote == pluginData->midiNote)
{

View File

@@ -27,9 +27,9 @@
#ifndef GIG_PLAYER_H
#define GIG_PLAYER_H
#include <QList>
#include <QMutex>
#include <QMutexLocker>
#include <list>
#include "Instrument.h"
#include "pixmap_button.h"
@@ -179,7 +179,7 @@ public slots:
private:
static QMutex s_instancesMutex;
static QMap<QString, gigInstance*> s_instances;
std::list<gigNote> m_notes;
QList<gigNote> m_notes;
SRC_STATE * m_srcState;