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

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

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

revision 946 by schoenebeck, Wed Jun 22 22:09:28 2005 UTC revision 947 by schoenebeck, Mon Nov 27 21:34:55 2006 UTC
# Line 1  Line 1 
1  /***************************************************************************  /***************************************************************************
2   *                                                                         *   *                                                                         *
3   *   Copyright (C) 2005 Christian Schoenebeck                              *   *   Copyright (C) 2005, 2006 Christian Schoenebeck                        *
4   *                                                                         *   *                                                                         *
5   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
6   *   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 21  Line 21 
21  #ifndef __LS_MIDI_H__  #ifndef __LS_MIDI_H__
22  #define __LS_MIDI_H__  #define __LS_MIDI_H__
23    
24    #include <string.h>
25    
26  namespace LinuxSampler {  namespace LinuxSampler {
27    
28      /////////////////////////////////////////////////////////////////      /////////////////////////////////////////////////////////////////
# Line 49  namespace LinuxSampler { Line 51  namespace LinuxSampler {
51          midi_chan_all = 16          midi_chan_all = 16
52      };      };
53    
54        /**
55         * MIDI program index
56         */
57        struct midi_prog_index_t {
58            uint8_t midi_bank_msb; ///< coarse MIDI bank index
59            uint8_t midi_bank_lsb; ///< fine MIDI bank index
60            uint8_t midi_prog;     ///< MIDI program index
61    
62            bool operator< (const midi_prog_index_t& other) const {
63                return memcmp(this, &other, sizeof(midi_prog_index_t)) < 0;
64            }
65        };
66    
67  } // namsepace LinuxSampler  } // namsepace LinuxSampler
68    
69  #endif // __LS_MIDI_H__  #endif // __LS_MIDI_H__

Legend:
Removed from v.946  
changed lines
  Added in v.947

  ViewVC Help
Powered by ViewVC