3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* Copyright (C) 2005 - 2011 Christian Schoenebeck * |
* Copyright (C) 2005 - 2012 Christian Schoenebeck * |
7 |
* * |
* * |
8 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
9 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
77 |
EngineChannel::~EngineChannel() { |
EngineChannel::~EngineChannel() { |
78 |
delete p; |
delete p; |
79 |
} |
} |
80 |
|
|
81 |
|
/** |
82 |
|
* Sometimes an instrument is splitted over several files. For example |
83 |
|
* the GigaStudio format may split an instrument over a certain amount |
84 |
|
* of files like: "Foo.gig", "Foo.gx01", "Foo.gx02", ... |
85 |
|
* This method allows to retrieve the whole list of files that is used |
86 |
|
* for the currently loaded instrument on this engine channel. |
87 |
|
* Calling this method with index 0 is equivalent as calling the equal |
88 |
|
* named method without any argument. |
89 |
|
* |
90 |
|
* @param index - index of sought file name (0, 1, 2, ...) |
91 |
|
* @returns file name or empty string if index out of bounds |
92 |
|
*/ |
93 |
|
String EngineChannel::InstrumentFileName(int index) { |
94 |
|
return (index == 0) ? InstrumentFileName() : ""; |
95 |
|
} |
96 |
|
|
97 |
void EngineChannel::SetMute(int state) throw (Exception) { |
void EngineChannel::SetMute(int state) throw (Exception) { |
98 |
if (p->iMute == state) return; |
if (p->iMute == state) return; |