/[svn]/linuxsampler/trunk/src/engines/EngineChannel.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/EngineChannel.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1761 by iliev, Fri Aug 29 15:42:06 2008 UTC revision 1789 by iliev, Sat Nov 1 19:01:27 2008 UTC
# Line 42  namespace LinuxSampler { Line 42  namespace LinuxSampler {
42          uiMidiProgram = 0;          uiMidiProgram = 0;
43          bProgramChangeReceived = bMidiBankMsbReceived = bMidiBankLsbReceived = false;          bProgramChangeReceived = bMidiBankMsbReceived = bMidiBankLsbReceived = false;
44          iMidiInstrumentMap = NO_MIDI_INSTRUMENT_MAP;          iMidiInstrumentMap = NO_MIDI_INSTRUMENT_MAP;
45          uiVoiceCount = 0;          SetVoiceCount(0);
46          uiDiskStreamCount = 0;          SetDiskStreamCount(0);
47          pSamplerChannel = NULL;          pSamplerChannel = NULL;
48          ResetMidiRpnController();          ResetMidiRpnController();
49      }      }
# Line 191  namespace LinuxSampler { Line 191  namespace LinuxSampler {
191      }      }
192    
193      uint EngineChannel::GetVoiceCount() {      uint EngineChannel::GetVoiceCount() {
194          return uiVoiceCount;          return atomic_read(&voiceCount);
195      }      }
196            
197      void EngineChannel::SetVoiceCount(uint Voices) {      void EngineChannel::SetVoiceCount(uint Voices) {
198          uiVoiceCount = Voices;          atomic_set(&voiceCount, Voices);
199      }      }
200    
201      uint EngineChannel::GetDiskStreamCount() {      uint EngineChannel::GetDiskStreamCount() {
202          return uiDiskStreamCount;          return atomic_read(&diskStreamCount);
203      }      }
204            
205      void EngineChannel::SetDiskStreamCount(uint Streams) {      void EngineChannel::SetDiskStreamCount(uint Streams) {
206          uiDiskStreamCount = Streams;          atomic_set(&diskStreamCount, Streams);
207      }      }
208            
209      SamplerChannel* EngineChannel::GetSamplerChannel() {      SamplerChannel* EngineChannel::GetSamplerChannel() {

Legend:
Removed from v.1761  
changed lines
  Added in v.1789

  ViewVC Help
Powered by ViewVC