summaryrefslogtreecommitdiff
path: root/libjava/gnu/javax/sound/midi/alsa/AlsaMidiSequencerDevice.h
blob: 5317a997063c4016ef28467024f271083831477a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_javax_sound_midi_alsa_AlsaMidiSequencerDevice__
#define __gnu_javax_sound_midi_alsa_AlsaMidiSequencerDevice__

#pragma interface

#include <java/lang/Object.h>
#include <gcj/array.h>

extern "Java"
{
  namespace gnu
  {
    namespace javax
    {
      namespace sound
      {
        namespace midi
        {
          namespace alsa
          {
              class AlsaMidiSequencerDevice;
          }
        }
      }
    }
  }
  namespace javax
  {
    namespace sound
    {
      namespace midi
      {
          class ControllerEventListener;
          class MetaEventListener;
          class MidiDevice$Info;
          class Receiver;
          class Sequence;
          class Sequencer$SyncMode;
          class Track;
          class Transmitter;
      }
    }
  }
}

class gnu::javax::sound::midi::alsa::AlsaMidiSequencerDevice : public ::java::lang::Object
{

  AlsaMidiSequencerDevice();
public:
  static ::gnu::javax::sound::midi::alsa::AlsaMidiSequencerDevice * getInstance();
  virtual void setSequence(::javax::sound::midi::Sequence *);
  virtual void setSequence(::java::io::InputStream *);
  virtual ::javax::sound::midi::Sequence * getSequence();
  virtual void start();
  virtual void stop();
  virtual jboolean isRunning();
  virtual void startRecording();
  virtual void stopRecording();
  virtual jboolean isRecording();
  virtual void recordEnable(::javax::sound::midi::Track *, jint);
  virtual void recordDisable(::javax::sound::midi::Track *);
  virtual jfloat getTempoInBPM();
  virtual void setTempoInBPM(jfloat);
  virtual jfloat getTempoInMPQ();
  virtual void setTempoInMPQ(jfloat);
  virtual void setTempoFactor(jfloat);
  virtual jfloat getTempoFactor();
  virtual jlong getTickLength();
  virtual jlong getTickPosition();
  virtual void setTickPosition(jlong);
  virtual jlong getMicrosecondLength();
  virtual jlong getMicrosecondPosition();
  virtual void setMicrosecondPosition(jlong);
  virtual void setMasterSyncMode(::javax::sound::midi::Sequencer$SyncMode *);
  virtual ::javax::sound::midi::Sequencer$SyncMode * getMasterSyncMode();
  virtual JArray< ::javax::sound::midi::Sequencer$SyncMode * > * getMasterSyncModes();
  virtual void setSlaveSyncMode(::javax::sound::midi::Sequencer$SyncMode *);
  virtual ::javax::sound::midi::Sequencer$SyncMode * getSlaveSyncMode();
  virtual JArray< ::javax::sound::midi::Sequencer$SyncMode * > * getSlaveSyncModes();
  virtual void setTrackMute(jint, jboolean);
  virtual jboolean getTrackMute(jint);
  virtual void setTrackSolo(jint, jboolean);
  virtual jboolean getTrackSolo(jint);
  virtual jboolean addMetaEventListener(::javax::sound::midi::MetaEventListener *);
  virtual void removeMetaEventListener(::javax::sound::midi::MetaEventListener *);
  virtual JArray< jint > * addControllerEventListener(::javax::sound::midi::ControllerEventListener *, JArray< jint > *);
  virtual JArray< jint > * removeControllerEventListener(::javax::sound::midi::ControllerEventListener *, JArray< jint > *);
  virtual ::javax::sound::midi::MidiDevice$Info * getDeviceInfo();
  virtual void open();
private:
  jlong open_();
  void close_(jlong);
public:
  virtual void close();
  virtual jboolean isOpen();
  virtual jint getMaxReceivers();
  virtual jint getMaxTransmitters();
  virtual ::javax::sound::midi::Receiver * getReceiver();
  virtual ::javax::sound::midi::Transmitter * getTransmitter();
  static ::gnu::javax::sound::midi::alsa::AlsaMidiSequencerDevice * instance;
private:
  jlong __attribute__((aligned(__alignof__( ::java::lang::Object)))) nativeState;
  ::javax::sound::midi::Sequence * sequence;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_javax_sound_midi_alsa_AlsaMidiSequencerDevice__