6546 |
__notify_progress(pProgress, 1.0); // notify done |
__notify_progress(pProgress, 1.0); // notify done |
6547 |
} |
} |
6548 |
|
|
6549 |
|
/** |
6550 |
|
* Returns a pointer to the first <i>Instrument</i> object of the file, |
6551 |
|
* <i>NULL</i> otherwise. |
6552 |
|
* |
6553 |
|
* @deprecated This method is not reentrant-safe, use GetInstrument() |
6554 |
|
* instead. |
6555 |
|
*/ |
6556 |
Instrument* File::GetFirstInstrument() { |
Instrument* File::GetFirstInstrument() { |
6557 |
if (!pInstruments) LoadInstruments(); |
if (!pInstruments) LoadInstruments(); |
6558 |
if (!pInstruments) return NULL; |
if (!pInstruments) return NULL; |
6560 |
return static_cast<gig::Instrument*>( (InstrumentsIterator != pInstruments->end()) ? *InstrumentsIterator : NULL ); |
return static_cast<gig::Instrument*>( (InstrumentsIterator != pInstruments->end()) ? *InstrumentsIterator : NULL ); |
6561 |
} |
} |
6562 |
|
|
6563 |
|
/** |
6564 |
|
* Returns a pointer to the next <i>Instrument</i> object of the file, |
6565 |
|
* <i>NULL</i> otherwise. |
6566 |
|
* |
6567 |
|
* @deprecated This method is not reentrant-safe, use GetInstrument() |
6568 |
|
* instead. |
6569 |
|
*/ |
6570 |
Instrument* File::GetNextInstrument() { |
Instrument* File::GetNextInstrument() { |
6571 |
if (!pInstruments) return NULL; |
if (!pInstruments) return NULL; |
6572 |
InstrumentsIterator++; |
InstrumentsIterator++; |