/[svn]/linuxsampler/trunk/src/Sampler.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/Sampler.h

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

revision 1130 by iliev, Sun Mar 25 18:59:14 2007 UTC revision 1695 by schoenebeck, Sat Feb 16 01:09:33 2008 UTC
# Line 3  Line 3 
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 - 2008 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  *
# Line 168  namespace LinuxSampler { Line 168  namespace LinuxSampler {
168              void RemoveAllEngineChangeListeners();              void RemoveAllEngineChangeListeners();
169    
170              /**              /**
171                 * Notifies listeners that the engine type of this sampler
172                 * channel is going to be changed soon.
173                 */
174                void fireEngineToBeChanged();
175    
176                /**
177               * Notifies listeners that the engine               * Notifies listeners that the engine
178               * type of this sampler channel is changed.               * type of this sampler channel is changed.
179               */               */
# Line 415  namespace LinuxSampler { Line 421  namespace LinuxSampler {
421               * @param NewCount The new number of active voices.               * @param NewCount The new number of active voices.
422               */               */
423              void fireTotalVoiceCountChanged(int NewCount);              void fireTotalVoiceCountChanged(int NewCount);
424                
425                void AddTotalStreamCountListener(TotalStreamCountListener* l);
426                void RemoveTotalStreamCountListener(TotalStreamCountListener* l);
427                void fireTotalStreamCountChanged(int NewCount);
428    
429              /**              /**
430               * Registers the specified listener to be notified when the number               * Registers the specified listener to be notified when the number
# Line 503  namespace LinuxSampler { Line 513  namespace LinuxSampler {
513               */               */
514              void DestroyMidiInputDevice(MidiInputDevice* pDevice) throw (Exception);              void DestroyMidiInputDevice(MidiInputDevice* pDevice) throw (Exception);
515    
516                 /**
517                 * Gets the current number of all active streams.
518                 * @returns The current number of all active streams.
519                 */
520                int GetDiskStreamCount();
521    
522              /**              /**
523               * Gets the current number of all active voices.               * Gets the current number of all active voices.
524               * @returns The current number of all active voices.               * @returns The current number of all active voices.
# Line 523  namespace LinuxSampler { Line 539  namespace LinuxSampler {
539              void fireChannelCountChanged(int NewCount);              void fireChannelCountChanged(int NewCount);
540    
541              /**              /**
542                 * Notifies listeners that the specified sampler channel has just
543                 * been added.
544                 * @param pChannel The new sampler channel.
545                 */
546                void fireChannelAdded(SamplerChannel* pChannel);
547    
548                /**
549                 * Notifies listeners that the specified sampler channel is
550                 * going to be removed soon.
551                 * @param pChannel sampler channel to be removed.
552                 */
553                void fireChannelToBeRemoved(SamplerChannel* pChannel);
554    
555                /**
556               * Notifies listeners that the number of audio output devices has been changed.               * Notifies listeners that the number of audio output devices has been changed.
557               * @param NewCount The new number of audio output devices.               * @param NewCount The new number of audio output devices.
558               */               */
# Line 535  namespace LinuxSampler { Line 565  namespace LinuxSampler {
565              void fireMidiDeviceCountChanged(int NewCount);              void fireMidiDeviceCountChanged(int NewCount);
566    
567              /**              /**
568                 * Notifies listeners that the supplied MIDI input device is
569                 * going to be destroyed soon.
570                 * @param pDevice MIDI input device to be destroyed
571                 */
572                void fireMidiDeviceToBeDestroyed(MidiInputDevice* pDevice);
573    
574                /**
575                 * Notifies listeners that the supplied MIDI input device was
576                 * just created.
577                 * @param pDevice new MIDI input device
578                 */
579                void fireMidiDeviceCreated(MidiInputDevice* pDevice);
580    
581                /**
582               * Notifies listeners that the number of effect sends               * Notifies listeners that the number of effect sends
583               * on a particular sampler channel is changed.               * on a particular sampler channel is changed.
584               * @param ChannelId The numerical ID of the sampler channel.               * @param ChannelId The numerical ID of the sampler channel.
# Line 559  namespace LinuxSampler { Line 603  namespace LinuxSampler {
603              ListenerList<VoiceCountListener*> llVoiceCountListeners;              ListenerList<VoiceCountListener*> llVoiceCountListeners;
604              ListenerList<StreamCountListener*> llStreamCountListeners;              ListenerList<StreamCountListener*> llStreamCountListeners;
605              ListenerList<BufferFillListener*> llBufferFillListeners;              ListenerList<BufferFillListener*> llBufferFillListeners;
606                ListenerList<TotalStreamCountListener*> llTotalStreamCountListeners;
607              ListenerList<TotalVoiceCountListener*> llTotalVoiceCountListeners;              ListenerList<TotalVoiceCountListener*> llTotalVoiceCountListeners;
608              ListenerList<FxSendCountListener*> llFxSendCountListeners;              ListenerList<FxSendCountListener*> llFxSendCountListeners;
609    
# Line 567  namespace LinuxSampler { Line 612  namespace LinuxSampler {
612                      void SetSampler(Sampler* pSampler) { this->pSampler = pSampler; }                      void SetSampler(Sampler* pSampler) { this->pSampler = pSampler; }
613    
614                      /**                      /**
615                         * Invoked when the engine type of the specified sampler
616                         * channel is going to be changed soon.
617                         * @param ChannelId The numerical ID of the sampler channel
618                         */
619                        virtual void EngineToBeChanged(int ChannelId);
620    
621                        /**
622                       * Invoked when the engine type of the                       * Invoked when the engine type of the
623                       * specified sampler channel is changed.                       * specified sampler channel is changed.
624                       * @param ChannelId The numerical ID of the sampler                       * @param ChannelId The numerical ID of the sampler

Legend:
Removed from v.1130  
changed lines
  Added in v.1695

  ViewVC Help
Powered by ViewVC