mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-16 13:08:04 -04:00
Switched from std::list to QList
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user