~ubuntu-branches/ubuntu/oneiric/muse/oneiric

« back to all changes in this revision

Viewing changes to muse/midiport.h

  • Committer: Bazaar Package Importer
  • Author(s): Fabrice Coutadeur
  • Date: 2010-11-17 21:43:38 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20101117214338-1hvfl7oo2dsqnvrb
Tags: 1.1-0ubuntu1
* New upstream release (LP: #668631)
* Switch to dpkg-source 3.0 (quilt) format
* Switch to dh7 short form
* debian/rules:
  - added --enable-dssi and --enable-osc to conf flags for dssi support
  - added -ljackserver to LDFLAGS to fix a FTBFS because of --as-needed
* debian/control:
  - added build build dependency on liblo-dev and dssi-dev for dssi support
  - bump Standards-version to 3.9.1. No changes required.
* debian/muse.desktop, debian/muse.xpm: dropped as desktop file and icon is
  now shipped upstream.
* fix-desktop-categories.patch: fix Categories tag in upstream desktop file
* 10_es_locale_fix.dpatch: refreshed and converted to quilt as
  fix_es_locale.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
#include "globaldefs.h"
13
13
#include "sync.h"
 
14
#include "route.h"
14
15
 
15
16
class MidiDevice;
16
17
class MidiInstrument;
33
34
      AutomationType _automationType[MIDI_CHANNELS];
34
35
      // Holds sync settings and detection monitors.
35
36
      MidiSyncInfo _syncInfo;
36
 
 
 
37
      // p3.3.50 Just a flag to say the port was found in the song file, even if it has no device right now.
 
38
      bool _foundInSongFile;
 
39
      
 
40
      RouteList _inRoutes, _outRoutes;
 
41
      
37
42
      void clearDevice();
38
43
 
39
44
   public:
60
65
      bool hasGui() const;
61
66
 
62
67
      int portno() const;
 
68
      bool foundInSongFile() const              { return _foundInSongFile; }
 
69
      void setFoundInSongFile(bool b)           { _foundInSongFile = b; }
63
70
 
64
71
      MidiDevice* device() const                { return _device; }
65
72
      const QString& state() const              { return _state; }
77
84
      int nullSendValue();
78
85
      void setNullSendValue(int v);
79
86
 
 
87
      RouteList* inRoutes()    { return &_inRoutes; }
 
88
      RouteList* outRoutes()   { return &_outRoutes; }
 
89
      bool noInRoute() const   { return _inRoutes.empty();  }
 
90
      bool noOutRoute() const  { return _outRoutes.empty(); }
 
91
      void writeRouting(int, Xml&) const;
 
92
      
80
93
      // send events to midi device and keep track of
81
94
      // device state:
82
95
      void sendGmOn();
91
104
      void sendSongpos(int);
92
105
      void sendClock();
93
106
      void sendSysex(const unsigned char* p, int n);
 
107
      void sendMMCLocate(unsigned char ht, unsigned char m,
 
108
                         unsigned char s, unsigned char f, unsigned char sf, int devid = -1);
 
109
      void sendMMCStop(int devid = -1);
 
110
      void sendMMCDeferredPlay(int devid = -1);
 
111
      
94
112
      bool sendEvent(const MidiPlayEvent&);
95
113
      AutomationType automationType(int channel) { return _automationType[channel]; }
96
114
      void setAutomationType(int channel, AutomationType t) {