1 |
756 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __gnu_javax_sound_midi_alsa_AlsaMidiSequencerDevice__
|
5 |
|
|
#define __gnu_javax_sound_midi_alsa_AlsaMidiSequencerDevice__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/lang/Object.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace gnu
|
15 |
|
|
{
|
16 |
|
|
namespace javax
|
17 |
|
|
{
|
18 |
|
|
namespace sound
|
19 |
|
|
{
|
20 |
|
|
namespace midi
|
21 |
|
|
{
|
22 |
|
|
namespace alsa
|
23 |
|
|
{
|
24 |
|
|
class AlsaMidiSequencerDevice;
|
25 |
|
|
}
|
26 |
|
|
}
|
27 |
|
|
}
|
28 |
|
|
}
|
29 |
|
|
}
|
30 |
|
|
namespace javax
|
31 |
|
|
{
|
32 |
|
|
namespace sound
|
33 |
|
|
{
|
34 |
|
|
namespace midi
|
35 |
|
|
{
|
36 |
|
|
class ControllerEventListener;
|
37 |
|
|
class MetaEventListener;
|
38 |
|
|
class MidiDevice$Info;
|
39 |
|
|
class Receiver;
|
40 |
|
|
class Sequence;
|
41 |
|
|
class Sequencer$SyncMode;
|
42 |
|
|
class Track;
|
43 |
|
|
class Transmitter;
|
44 |
|
|
}
|
45 |
|
|
}
|
46 |
|
|
}
|
47 |
|
|
}
|
48 |
|
|
|
49 |
|
|
class gnu::javax::sound::midi::alsa::AlsaMidiSequencerDevice : public ::java::lang::Object
|
50 |
|
|
{
|
51 |
|
|
|
52 |
|
|
AlsaMidiSequencerDevice();
|
53 |
|
|
public:
|
54 |
|
|
static ::gnu::javax::sound::midi::alsa::AlsaMidiSequencerDevice * getInstance();
|
55 |
|
|
virtual void setSequence(::javax::sound::midi::Sequence *);
|
56 |
|
|
virtual void setSequence(::java::io::InputStream *);
|
57 |
|
|
virtual ::javax::sound::midi::Sequence * getSequence();
|
58 |
|
|
virtual void start();
|
59 |
|
|
virtual void stop();
|
60 |
|
|
virtual jboolean isRunning();
|
61 |
|
|
virtual void startRecording();
|
62 |
|
|
virtual void stopRecording();
|
63 |
|
|
virtual jboolean isRecording();
|
64 |
|
|
virtual void recordEnable(::javax::sound::midi::Track *, jint);
|
65 |
|
|
virtual void recordDisable(::javax::sound::midi::Track *);
|
66 |
|
|
virtual jfloat getTempoInBPM();
|
67 |
|
|
virtual void setTempoInBPM(jfloat);
|
68 |
|
|
virtual jfloat getTempoInMPQ();
|
69 |
|
|
virtual void setTempoInMPQ(jfloat);
|
70 |
|
|
virtual void setTempoFactor(jfloat);
|
71 |
|
|
virtual jfloat getTempoFactor();
|
72 |
|
|
virtual jlong getTickLength();
|
73 |
|
|
virtual jlong getTickPosition();
|
74 |
|
|
virtual void setTickPosition(jlong);
|
75 |
|
|
virtual jlong getMicrosecondLength();
|
76 |
|
|
virtual jlong getMicrosecondPosition();
|
77 |
|
|
virtual void setMicrosecondPosition(jlong);
|
78 |
|
|
virtual void setMasterSyncMode(::javax::sound::midi::Sequencer$SyncMode *);
|
79 |
|
|
virtual ::javax::sound::midi::Sequencer$SyncMode * getMasterSyncMode();
|
80 |
|
|
virtual JArray< ::javax::sound::midi::Sequencer$SyncMode * > * getMasterSyncModes();
|
81 |
|
|
virtual void setSlaveSyncMode(::javax::sound::midi::Sequencer$SyncMode *);
|
82 |
|
|
virtual ::javax::sound::midi::Sequencer$SyncMode * getSlaveSyncMode();
|
83 |
|
|
virtual JArray< ::javax::sound::midi::Sequencer$SyncMode * > * getSlaveSyncModes();
|
84 |
|
|
virtual void setTrackMute(jint, jboolean);
|
85 |
|
|
virtual jboolean getTrackMute(jint);
|
86 |
|
|
virtual void setTrackSolo(jint, jboolean);
|
87 |
|
|
virtual jboolean getTrackSolo(jint);
|
88 |
|
|
virtual jboolean addMetaEventListener(::javax::sound::midi::MetaEventListener *);
|
89 |
|
|
virtual void removeMetaEventListener(::javax::sound::midi::MetaEventListener *);
|
90 |
|
|
virtual JArray< jint > * addControllerEventListener(::javax::sound::midi::ControllerEventListener *, JArray< jint > *);
|
91 |
|
|
virtual JArray< jint > * removeControllerEventListener(::javax::sound::midi::ControllerEventListener *, JArray< jint > *);
|
92 |
|
|
virtual ::javax::sound::midi::MidiDevice$Info * getDeviceInfo();
|
93 |
|
|
virtual void open();
|
94 |
|
|
private:
|
95 |
|
|
jlong open_();
|
96 |
|
|
void close_(jlong);
|
97 |
|
|
public:
|
98 |
|
|
virtual void close();
|
99 |
|
|
virtual jboolean isOpen();
|
100 |
|
|
virtual jint getMaxReceivers();
|
101 |
|
|
virtual jint getMaxTransmitters();
|
102 |
|
|
virtual ::javax::sound::midi::Receiver * getReceiver();
|
103 |
|
|
virtual ::javax::sound::midi::Transmitter * getTransmitter();
|
104 |
|
|
static ::gnu::javax::sound::midi::alsa::AlsaMidiSequencerDevice * instance;
|
105 |
|
|
private:
|
106 |
|
|
jlong __attribute__((aligned(__alignof__( ::java::lang::Object)))) nativeState;
|
107 |
|
|
::javax::sound::midi::Sequence * sequence;
|
108 |
|
|
public:
|
109 |
|
|
static ::java::lang::Class class$;
|
110 |
|
|
};
|
111 |
|
|
|
112 |
|
|
#endif // __gnu_javax_sound_midi_alsa_AlsaMidiSequencerDevice__
|