/[svn]/linuxsampler/trunk/src/drivers/midi/VirtualMidiDevice.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/drivers/midi/VirtualMidiDevice.h

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

revision 3985 by schoenebeck, Wed Oct 19 17:22:28 2016 UTC revision 3986 by schoenebeck, Wed Aug 4 18:04:12 2021 UTC
# Line 1  Line 1 
1  /*  /*
2      Copyright (C) 2008 - 2016 Christian Schoenebeck      Copyright (C) 2008 - 2021 Christian Schoenebeck
3   */   */
4    
5  #ifndef LS_VIRTUALMIDIDEVICE_H  #ifndef LS_VIRTUALMIDIDEVICE_H
# Line 219  public: Line 219  public:
219      void SetMaxEvents(int n);      void SetMaxEvents(int n);
220    
221      /**      /**
222         * Intended to be called on "panic" / all notes off situations. Calling this
223         * method will reset all internal atomic flags, such that the state reflects
224         * that no note is currently active (its key pressed down).
225         *
226         * Only exception: this method currently does not reset the internal
227         * ring buffer which is used to transmit MIDI events to the sampler.
228         *
229         * Also note that this method is not fully concurrency safe. That means
230         * since only flags are reset, calling this method means no harm, but it
231         * might conflict with MIDI events etc and thus still cause hanging notes
232         * durcing such a specific concurrency conflict. Or in other words: the
233         * user might need to trigger the "panic" button multiple times.
234         */
235        void Reset();
236    
237        /**
238       * Constructor       * Constructor
239       */       */
240      VirtualMidiDevice();      VirtualMidiDevice();

Legend:
Removed from v.3985  
changed lines
  Added in v.3986

  ViewVC Help
Powered by ViewVC