26 |
#include <qfileinfo.h> |
#include <qfileinfo.h> |
27 |
#include <qlistbox.h> |
#include <qlistbox.h> |
28 |
|
|
|
#include "qsamplerOptions.h" |
|
|
#include "qsamplerChannelStrip.h" |
|
|
|
|
29 |
#include "config.h" |
#include "config.h" |
30 |
|
|
31 |
|
|
50 |
|
|
51 |
|
|
52 |
// Channel dialog setup formal initializer. |
// Channel dialog setup formal initializer. |
53 |
void qsamplerChannelForm::setup ( qsamplerChannelStrip *pChannel, bool bNew ) |
void qsamplerChannelForm::setup ( qsamplerChannel *pChannel, bool bNew ) |
54 |
{ |
{ |
55 |
m_pChannel = pChannel; |
m_pChannel = pChannel; |
56 |
|
|
60 |
if (m_pChannel == NULL) |
if (m_pChannel == NULL) |
61 |
return; |
return; |
62 |
|
|
63 |
setCaption(m_pChannel->caption()); |
setCaption(tr("Channel %1").arg(m_pChannel->channelID())); |
64 |
|
|
65 |
// Check if we're up and connected. |
// Check if we're up and connected. |
66 |
if (m_pChannel->client() == NULL) |
if (m_pChannel->client() == NULL) |
135 |
// MIDI input channel... |
// MIDI input channel... |
136 |
int iMidiChannel = pChannel->midiChannel(); |
int iMidiChannel = pChannel->midiChannel(); |
137 |
if (bNew) |
if (bNew) |
138 |
iMidiChannel = (pChannel->channelID() + 1) % 16; |
iMidiChannel = (pChannel->channelID() % 16); |
139 |
MidiChannelComboBox->setCurrentItem(iMidiChannel); |
MidiChannelComboBox->setCurrentItem(iMidiChannel); |
140 |
// Audio output driver... |
// Audio output driver... |
141 |
QString sAudioDriver = pChannel->audioDriver(); |
QString sAudioDriver = pChannel->audioDriver(); |