diff options
Diffstat (limited to 'libjava/gnu/javax/sound/sampled/gstreamer/lines')
6 files changed, 407 insertions, 0 deletions
diff --git a/libjava/gnu/javax/sound/sampled/gstreamer/lines/GstDataLine.h b/libjava/gnu/javax/sound/sampled/gstreamer/lines/GstDataLine.h new file mode 100644 index 000000000..20ef7deb8 --- /dev/null +++ b/libjava/gnu/javax/sound/sampled/gstreamer/lines/GstDataLine.h @@ -0,0 +1,92 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_sound_sampled_gstreamer_lines_GstDataLine__ +#define __gnu_javax_sound_sampled_gstreamer_lines_GstDataLine__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace javax + { + namespace sound + { + namespace sampled + { + namespace gstreamer + { + namespace lines + { + class GstDataLine; + } + } + } + } + } + } + namespace javax + { + namespace sound + { + namespace sampled + { + class AudioFormat; + class Control; + class Control$Type; + class Line$Info; + class LineListener; + } + } + } +} + +class gnu::javax::sound::sampled::gstreamer::lines::GstDataLine : public ::java::lang::Object +{ + +public: + GstDataLine(::javax::sound::sampled::AudioFormat *); + GstDataLine(::javax::sound::sampled::AudioFormat *, jint); + virtual jint getBufferSize(); + virtual ::javax::sound::sampled::AudioFormat * getFormat(); + virtual jfloat getLevel(); + virtual void addLineListener(::javax::sound::sampled::LineListener *); + virtual ::javax::sound::sampled::Control * getControl(::javax::sound::sampled::Control$Type *); + virtual JArray< ::javax::sound::sampled::Control * > * getControls(); + virtual ::javax::sound::sampled::Line$Info * getLineInfo(); + virtual jboolean isControlSupported(::javax::sound::sampled::Control$Type *); + virtual jboolean isOpen(); + virtual void removeLineListener(::javax::sound::sampled::LineListener *); +public: // actually protected + virtual void setOpen(::java::lang::Boolean *); + virtual void setBufferSize(jint); + virtual void setFormat(::javax::sound::sampled::AudioFormat *); +public: + virtual jint available() = 0; + virtual void drain() = 0; + virtual void flush() = 0; + virtual jint getFramePosition() = 0; + virtual jlong getLongFramePosition() = 0; + virtual jlong getMicrosecondPosition() = 0; + virtual jboolean isActive() = 0; + virtual jboolean isRunning() = 0; + virtual void start() = 0; + virtual void stop() = 0; + virtual void close() = 0; + virtual void open() = 0; + static const jint DEFAULT_BUFFER_SIZE = 1024; +public: // actually protected + ::java::lang::Boolean * __attribute__((aligned(__alignof__( ::java::lang::Object)))) open; +private: + ::javax::sound::sampled::AudioFormat * format; + jint bufferSize; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_javax_sound_sampled_gstreamer_lines_GstDataLine__ diff --git a/libjava/gnu/javax/sound/sampled/gstreamer/lines/GstNativeDataLine.h b/libjava/gnu/javax/sound/sampled/gstreamer/lines/GstNativeDataLine.h new file mode 100644 index 000000000..e382f3ea4 --- /dev/null +++ b/libjava/gnu/javax/sound/sampled/gstreamer/lines/GstNativeDataLine.h @@ -0,0 +1,51 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_sound_sampled_gstreamer_lines_GstNativeDataLine__ +#define __gnu_javax_sound_sampled_gstreamer_lines_GstNativeDataLine__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace classpath + { + class Pointer; + } + namespace javax + { + namespace sound + { + namespace sampled + { + namespace gstreamer + { + namespace lines + { + class GstNativeDataLine; + class GstPipeline; + } + } + } + } + } + } +} + +class gnu::javax::sound::sampled::gstreamer::lines::GstNativeDataLine : public ::java::lang::Object +{ + +public: + GstNativeDataLine(); + static ::gnu::javax::sound::sampled::gstreamer::lines::GstPipeline * createSourcePipeline(jint); +private: + static void init_id_cache(); + static jboolean setup_sink_pipeline(::gnu::classpath::Pointer *); +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_javax_sound_sampled_gstreamer_lines_GstNativeDataLine__ diff --git a/libjava/gnu/javax/sound/sampled/gstreamer/lines/GstPipeline$CleanPipeline.h b/libjava/gnu/javax/sound/sampled/gstreamer/lines/GstPipeline$CleanPipeline.h new file mode 100644 index 000000000..a0de53f38 --- /dev/null +++ b/libjava/gnu/javax/sound/sampled/gstreamer/lines/GstPipeline$CleanPipeline.h @@ -0,0 +1,47 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_sound_sampled_gstreamer_lines_GstPipeline$CleanPipeline__ +#define __gnu_javax_sound_sampled_gstreamer_lines_GstPipeline$CleanPipeline__ + +#pragma interface + +#include <java/lang/Thread.h> +extern "Java" +{ + namespace gnu + { + namespace javax + { + namespace sound + { + namespace sampled + { + namespace gstreamer + { + namespace lines + { + class GstPipeline; + class GstPipeline$CleanPipeline; + } + } + } + } + } + } +} + +class gnu::javax::sound::sampled::gstreamer::lines::GstPipeline$CleanPipeline : public ::java::lang::Thread +{ + + GstPipeline$CleanPipeline(::gnu::javax::sound::sampled::gstreamer::lines::GstPipeline *); +public: + virtual void run(); +public: // actually package-private + GstPipeline$CleanPipeline(::gnu::javax::sound::sampled::gstreamer::lines::GstPipeline *, ::gnu::javax::sound::sampled::gstreamer::lines::GstPipeline$CleanPipeline *); + ::gnu::javax::sound::sampled::gstreamer::lines::GstPipeline * __attribute__((aligned(__alignof__( ::java::lang::Thread)))) this$0; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_javax_sound_sampled_gstreamer_lines_GstPipeline$CleanPipeline__ diff --git a/libjava/gnu/javax/sound/sampled/gstreamer/lines/GstPipeline$State.h b/libjava/gnu/javax/sound/sampled/gstreamer/lines/GstPipeline$State.h new file mode 100644 index 000000000..596608428 --- /dev/null +++ b/libjava/gnu/javax/sound/sampled/gstreamer/lines/GstPipeline$State.h @@ -0,0 +1,52 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_sound_sampled_gstreamer_lines_GstPipeline$State__ +#define __gnu_javax_sound_sampled_gstreamer_lines_GstPipeline$State__ + +#pragma interface + +#include <java/lang/Enum.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace javax + { + namespace sound + { + namespace sampled + { + namespace gstreamer + { + namespace lines + { + class GstPipeline$State; + } + } + } + } + } + } +} + +class gnu::javax::sound::sampled::gstreamer::lines::GstPipeline$State : public ::java::lang::Enum +{ + + GstPipeline$State(::java::lang::String *, jint); +public: + static JArray< ::gnu::javax::sound::sampled::gstreamer::lines::GstPipeline$State * > * values(); + static ::gnu::javax::sound::sampled::gstreamer::lines::GstPipeline$State * valueOf(::java::lang::String *); + static ::gnu::javax::sound::sampled::gstreamer::lines::GstPipeline$State * PLAY; + static ::gnu::javax::sound::sampled::gstreamer::lines::GstPipeline$State * PAUSE; + static ::gnu::javax::sound::sampled::gstreamer::lines::GstPipeline$State * STOP; + static ::gnu::javax::sound::sampled::gstreamer::lines::GstPipeline$State * CLOSE; +private: + static JArray< ::gnu::javax::sound::sampled::gstreamer::lines::GstPipeline$State * > * ENUM$VALUES; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_javax_sound_sampled_gstreamer_lines_GstPipeline$State__ diff --git a/libjava/gnu/javax/sound/sampled/gstreamer/lines/GstPipeline.h b/libjava/gnu/javax/sound/sampled/gstreamer/lines/GstPipeline.h new file mode 100644 index 000000000..56afb46ba --- /dev/null +++ b/libjava/gnu/javax/sound/sampled/gstreamer/lines/GstPipeline.h @@ -0,0 +1,92 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_sound_sampled_gstreamer_lines_GstPipeline__ +#define __gnu_javax_sound_sampled_gstreamer_lines_GstPipeline__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace classpath + { + class Pointer; + } + namespace javax + { + namespace sound + { + namespace sampled + { + namespace gstreamer + { + namespace lines + { + class GstPipeline; + class GstPipeline$State; + } + } + } + } + } + } +} + +class gnu::javax::sound::sampled::gstreamer::lines::GstPipeline : public ::java::lang::Object +{ + +public: + GstPipeline(); + GstPipeline(jint); + virtual void createForWrite(); + virtual ::gnu::javax::sound::sampled::gstreamer::lines::GstPipeline$State * getState(); + virtual void close(); + virtual void setState(::gnu::javax::sound::sampled::gstreamer::lines::GstPipeline$State *); + virtual ::gnu::classpath::Pointer * getNativeClass(); + virtual jint write(JArray< jbyte > *, jint, jint); + virtual jint read(JArray< jbyte > *, jint, jint); + virtual jint available(); + virtual void drain(); + virtual void flush(); +private: + void closePipe(); + void prepareWrite(); + static void init_id_cache(); + static jboolean set_state(::gnu::classpath::Pointer *, jint); + static jint available(::gnu::classpath::Pointer *, jint); + static void open_native_pipe(::gnu::classpath::Pointer *, jint); + static void close_native_pipe(::gnu::classpath::Pointer *); + void init_instance(); + jboolean create_named_pipe(::gnu::classpath::Pointer *); + jlong detect_pipe_size(); +public: // actually package-private + static ::gnu::classpath::Pointer * access$0(::gnu::javax::sound::sampled::gstreamer::lines::GstPipeline *); + static void access$1(::gnu::classpath::Pointer *); + static JArray< jint > * $SWITCH_TABLE$gnu$javax$sound$sampled$gstreamer$lines$GstPipeline$State(); +private: + static const jint READ = 0; + static const jint WRITE = 1; + static const jint QUEUED = 1; + static ::java::lang::String * CAPACITY_KEY; + static JArray< ::java::lang::Object * > * lock; +public: // actually protected + ::java::util::prefs::Preferences * __attribute__((aligned(__alignof__( ::java::lang::Object)))) prefs; +private: + jlong capacity; + ::gnu::javax::sound::sampled::gstreamer::lines::GstPipeline$State * state; + ::java::lang::String * name; + ::java::io::FileOutputStream * output; + jboolean source; + jboolean ready; + ::gnu::classpath::Pointer * pipeline; + static JArray< jint > * $SWITCH_TABLE$gnu$javax$sound$sampled$gstreamer$lines$GstPipeline$State__; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_javax_sound_sampled_gstreamer_lines_GstPipeline__ diff --git a/libjava/gnu/javax/sound/sampled/gstreamer/lines/GstSourceDataLine.h b/libjava/gnu/javax/sound/sampled/gstreamer/lines/GstSourceDataLine.h new file mode 100644 index 000000000..4120a2b2d --- /dev/null +++ b/libjava/gnu/javax/sound/sampled/gstreamer/lines/GstSourceDataLine.h @@ -0,0 +1,73 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_sound_sampled_gstreamer_lines_GstSourceDataLine__ +#define __gnu_javax_sound_sampled_gstreamer_lines_GstSourceDataLine__ + +#pragma interface + +#include <gnu/javax/sound/sampled/gstreamer/lines/GstDataLine.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace javax + { + namespace sound + { + namespace sampled + { + namespace gstreamer + { + namespace lines + { + class GstPipeline; + class GstSourceDataLine; + } + } + } + } + } + } + namespace javax + { + namespace sound + { + namespace sampled + { + class AudioFormat; + } + } + } +} + +class gnu::javax::sound::sampled::gstreamer::lines::GstSourceDataLine : public ::gnu::javax::sound::sampled::gstreamer::lines::GstDataLine +{ + +public: + GstSourceDataLine(::javax::sound::sampled::AudioFormat *); + virtual void open(); + virtual void open(::javax::sound::sampled::AudioFormat *); + virtual void open(::javax::sound::sampled::AudioFormat *, jint); + virtual jint write(JArray< jbyte > *, jint, jint); + virtual jint available(); + virtual void drain(); + virtual void flush(); + virtual jint getFramePosition(); + virtual jlong getLongFramePosition(); + virtual jlong getMicrosecondPosition(); + virtual jboolean isActive(); + virtual void start(); + virtual void stop(); + virtual void close(); + virtual jboolean isRunning(); +private: + ::gnu::javax::sound::sampled::gstreamer::lines::GstPipeline * __attribute__((aligned(__alignof__( ::gnu::javax::sound::sampled::gstreamer::lines::GstDataLine)))) pipeline; + jboolean open__; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_javax_sound_sampled_gstreamer_lines_GstSourceDataLine__ |