~ubuntu-branches/ubuntu/wily/muse/wily-proposed

« back to all changes in this revision

Viewing changes to muse/midiseq.h

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2011-12-03 17:12:54 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20111203171254-28b1j4lpb46r5jtl
Tags: 2.0~rc1-1
* New upstream RC release.
* Refresh patches, remove those patches not needed anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
//  $Id: midiseq.h,v 1.6.2.11 2009/12/20 05:00:35 terminator356 Exp $
5
5
//
6
6
//  (C) Copyright 2003 Werner Schweer (ws@seh.de)
 
7
//
 
8
//  This program is free software; you can redistribute it and/or
 
9
//  modify it under the terms of the GNU General Public License
 
10
//  as published by the Free Software Foundation; version 2 of
 
11
//  the License, or (at your option) any later version.
 
12
//
 
13
//  This program is distributed in the hope that it will be useful,
 
14
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
//  GNU General Public License for more details.
 
17
//
 
18
//  You should have received a copy of the GNU General Public License
 
19
//  along with this program; if not, write to the Free Software
 
20
//  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
21
//
7
22
//=========================================================
8
23
 
9
24
#ifndef __MIDISEQ_H__
14
29
#include "driver/alsatimer.h"
15
30
#include "driver/rtctimer.h"
16
31
 
 
32
namespace MusECore {
 
33
 
 
34
class MidiDevice;
 
35
class MidiPort;
17
36
class MPEventList;
 
37
class MTC;
18
38
class SynthI;
19
 
class MTC;
20
 
class MidiPort;
21
 
class MidiDevice;
22
39
 
23
40
//---------------------------------------------------------
24
41
//   MidiSeq
76
93
      virtual void threadStop();
77
94
      virtual void threadStart(void*);
78
95
 
 
96
      bool externalPlayState() const { return playStateExt; }
 
97
      void setExternalPlayState(bool v) { playStateExt = v; }
79
98
      void realtimeSystemInput(int, int);
80
99
      void mtcInputQuarter(int, unsigned char);
81
100
      void setSongPosition(int, int);
86
105
      void nonRealtimeSystemSysex(int, const unsigned char*, int);
87
106
 
88
107
      void msgMsg(int id);
89
 
      void msgProcess();
90
 
      void msgSeek();
91
 
      void msgStop();
 
108
      //void msgProcess();
 
109
      //void msgSeek();
 
110
      //void msgStop();
92
111
      void msgSetRtc();
93
112
      void msgUpdatePollFd();
94
113
      void msgAddSynthI(SynthI* synth);
96
115
      void msgSetMidiDevice(MidiPort*, MidiDevice*);
97
116
      };
98
117
 
99
 
extern MidiSeq* midiSeq;
 
118
} //namespace MusECore
 
119
 
 
120
namespace MusEGlobal {
 
121
extern MusECore::MidiSeq* midiSeq;
100
122
extern volatile bool midiBusy;
 
123
} // namespace MusEGlobal
 
124
 
101
125
#endif
102
126