2 |
* * |
* * |
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, 2006 Christian Schoenebeck * |
* Copyright (C) 2005-2007 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 * |
90 |
uint SampleRate; ///< Sample rate of the engines output audio signal (in Hz) |
uint SampleRate; ///< Sample rate of the engines output audio signal (in Hz) |
91 |
uint MaxSamplesPerCycle; ///< Size of each audio output buffer |
uint MaxSamplesPerCycle; ///< Size of each audio output buffer |
92 |
DiskThread* pDiskThread; |
DiskThread* pDiskThread; |
93 |
RingBuffer<Event>* pEventQueue; ///< Input event queue for engine global events (e.g. SysEx messages). |
RingBuffer<Event,false>* pEventQueue; ///< Input event queue for engine global events (e.g. SysEx messages). |
94 |
Pool<Voice>* pVoicePool; ///< Contains all voices that can be activated. |
Pool<Voice>* pVoicePool; ///< Contains all voices that can be activated. |
95 |
EventGenerator* pEventGenerator; |
EventGenerator* pEventGenerator; |
96 |
RTList<Event>* pVoiceStealingQueue; ///< All voice-launching events which had to be postponed due to free voice shortage. |
RTList<Event>* pVoiceStealingQueue; ///< All voice-launching events which had to be postponed due to free voice shortage. |
97 |
RTList<Event>* pGlobalEvents; ///< All engine global events for the current audio fragment (usually only SysEx messages). |
RTList<Event>* pGlobalEvents; ///< All engine global events for the current audio fragment (usually only SysEx messages). |
98 |
Pool<Event>* pEventPool; ///< Contains all Event objects that can be used. |
Pool<Event>* pEventPool; ///< Contains all Event objects that can be used. |
99 |
RingBuffer<uint8_t>* pSysexBuffer; ///< Input buffer for MIDI system exclusive messages. |
RingBuffer<uint8_t,false>* pSysexBuffer; ///< Input buffer for MIDI system exclusive messages. |
100 |
int ActiveVoiceCount; ///< number of currently active voices (this value will be returned for public calls) |
int ActiveVoiceCount; ///< number of currently active voices (this value will be returned for public calls) |
101 |
int ActiveVoiceCountTemp; ///< number of currently active voices (for internal usage, will be used for incrementation) |
int ActiveVoiceCountTemp; ///< number of currently active voices (for internal usage, will be used for incrementation) |
102 |
int ActiveVoiceCountMax; ///< the maximum voice usage since application start |
int ActiveVoiceCountMax; ///< the maximum voice usage since application start |
116 |
void ProcessEvents(EngineChannel* pEngineChannel, uint Samples); |
void ProcessEvents(EngineChannel* pEngineChannel, uint Samples); |
117 |
void RenderActiveVoices(EngineChannel* pEngineChannel, uint Samples); |
void RenderActiveVoices(EngineChannel* pEngineChannel, uint Samples); |
118 |
void RenderStolenVoices(uint Samples); |
void RenderStolenVoices(uint Samples); |
119 |
|
void RouteAudio(EngineChannel* pEngineChannel, uint Samples); |
120 |
void PostProcess(EngineChannel* pEngineChannel); |
void PostProcess(EngineChannel* pEngineChannel); |
121 |
void ClearEventLists(); |
void ClearEventLists(); |
122 |
void ImportEvents(uint Samples); |
void ImportEvents(uint Samples); |
146 |
int SostenutoKeys[128]; |
int SostenutoKeys[128]; |
147 |
int SostenutoKeyCount; |
int SostenutoKeyCount; |
148 |
|
|
149 |
uint8_t GSCheckSum(const RingBuffer<uint8_t>::NonVolatileReader AddrReader, uint DataSize); |
uint8_t GSCheckSum(const RingBuffer<uint8_t,false>::NonVolatileReader AddrReader, uint DataSize); |
150 |
void AdjustScale(int8_t ScaleTunes[12]); |
void AdjustScale(int8_t ScaleTunes[12]); |
151 |
void ReleaseAllVoices(EngineChannel* pEngineChannel, Pool<Event>::Iterator& itReleaseEvent); |
void ReleaseAllVoices(EngineChannel* pEngineChannel, Pool<Event>::Iterator& itReleaseEvent); |
152 |
void KillAllVoices(EngineChannel* pEngineChannel, Pool<Event>::Iterator& itKillEvent); |
void KillAllVoices(EngineChannel* pEngineChannel, Pool<Event>::Iterator& itKillEvent); |