All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.multimedia.QAudioSink Maven / Gradle / Ivy

package io.qt.multimedia;

import io.qt.*;


/**
 * 

Interface for sending audio data to an audio output device

*

Java wrapper for Qt class QAudioSink

*/ public class QAudioSink extends io.qt.core.QObject { static { QtJambi_LibraryUtilities.initialize(); } /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QAudioSink.class); /** *

See QAudioSink::stateChanged(QAudio::State)

*/ public final @NonNull Signal1 stateChanged = new Signal1<>(); /** *

See QAudioSink::QAudioSink(QAudioDevice,QAudioFormat,QObject*)

* @param audioDeviceInfo * @param format * @param parent */ public QAudioSink(io.qt.multimedia.@NonNull QAudioDevice audioDeviceInfo, io.qt.multimedia.@NonNull QAudioFormat format, io.qt.core.@Nullable QObject parent){ super((QPrivateConstructor)null); initialize_native(this, audioDeviceInfo, format, parent); } private native static void initialize_native(QAudioSink instance, io.qt.multimedia.QAudioDevice audioDeviceInfo, io.qt.multimedia.QAudioFormat format, io.qt.core.QObject parent); /** *

See QAudioSink::QAudioSink(QAudioFormat,QObject*)

* @param format * @param parent */ public QAudioSink(io.qt.multimedia.@NonNull QAudioFormat format, io.qt.core.@Nullable QObject parent){ super((QPrivateConstructor)null); initialize_native(this, format, parent); } private native static void initialize_native(QAudioSink instance, io.qt.multimedia.QAudioFormat format, io.qt.core.QObject parent); /** *

See QAudioSink::bufferSize()const

* @return */ @QtUninvokable public final long bufferSize(){ return bufferSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native long bufferSize_native_constfct(long __this__nativeId); /** *

See QAudioSink::bytesFree()const

* @return */ @QtUninvokable public final long bytesFree(){ return bytesFree_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native long bytesFree_native_constfct(long __this__nativeId); /** *

See QAudioSink::elapsedUSecs()const

* @return */ @QtUninvokable public final long elapsedUSecs(){ return elapsedUSecs_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native long elapsedUSecs_native_constfct(long __this__nativeId); /** *

See QAudioSink::error()const

* @return */ @QtUninvokable public final io.qt.multimedia.QtAudio.@NonNull Error error(){ return io.qt.multimedia.QtAudio.Error.resolve(error_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int error_native_constfct(long __this__nativeId); /** *

See QAudioSink::format()const

* @return */ @QtUninvokable public final io.qt.multimedia.@NonNull QAudioFormat format(){ return format_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.multimedia.QAudioFormat format_native_constfct(long __this__nativeId); /** *

See QAudioSink::isNull()const

* @return */ @QtUninvokable public final boolean isNull(){ return isNull_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isNull_native_constfct(long __this__nativeId); /** *

See QAudioSink::processedUSecs()const

* @return */ @QtUninvokable public final long processedUSecs(){ return processedUSecs_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native long processedUSecs_native_constfct(long __this__nativeId); /** *

See QAudioSink::reset()

*/ @QtUninvokable public final void reset(){ reset_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void reset_native(long __this__nativeId); /** *

See QAudioSink::resume()

*/ @QtUninvokable public final void resume(){ resume_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void resume_native(long __this__nativeId); /** *

See QAudioSink::setBufferSize(qsizetype)

* @param bytes */ @QtUninvokable public final void setBufferSize(long bytes){ setBufferSize_native_qsizetype(QtJambi_LibraryUtilities.internal.nativeId(this), bytes); } @QtUninvokable private native void setBufferSize_native_qsizetype(long __this__nativeId, long bytes); /** *

See QAudioSink::setVolume(qreal)

* @param arg__1 */ @QtUninvokable public final void setVolume(double arg__1){ setVolume_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @QtUninvokable private native void setVolume_native_qreal(long __this__nativeId, double arg__1); /** *

See QAudioSink::start()

* @return */ @QtUninvokable public final io.qt.core.@Nullable QIODevice start(){ return start_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QIODevice start_native(long __this__nativeId); /** *

See QAudioSink::start(QIODevice*)

* @param device */ @QtUninvokable public final void start(io.qt.core.@Nullable QIODevice device){ start_native_QIODevice_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(device)); } @QtUninvokable private native void start_native_QIODevice_ptr(long __this__nativeId, long device); /** *

See QAudioSink::state()const

* @return */ @QtUninvokable public final io.qt.multimedia.QtAudio.@NonNull State state(){ return io.qt.multimedia.QtAudio.State.resolve(state_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int state_native_constfct(long __this__nativeId); /** *

See QAudioSink::stop()

*/ @QtUninvokable public final void stop(){ stop_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void stop_native(long __this__nativeId); /** *

See QAudioSink::suspend()

*/ @QtUninvokable public final void suspend(){ suspend_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void suspend_native(long __this__nativeId); /** *

See QAudioSink::volume()const

* @return */ @QtUninvokable public final double volume(){ return volume_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double volume_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QAudioSink(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QAudioSink(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QAudioSink instance, QDeclarativeConstructor constructor); /** *

Overloaded constructor for {@link #QAudioSink(io.qt.multimedia.QAudioDevice, io.qt.multimedia.QAudioFormat, io.qt.core.QObject)} * with parent = null.

*/ public QAudioSink(io.qt.multimedia.@NonNull QAudioDevice audioDeviceInfo, io.qt.multimedia.@NonNull QAudioFormat format) { this(audioDeviceInfo, format, (io.qt.core.QObject)null); } /** *

Overloaded constructor for {@link #QAudioSink(io.qt.multimedia.QAudioDevice, io.qt.multimedia.QAudioFormat, io.qt.core.QObject)}

*

with:

    *
  • format = new io.qt.multimedia.QAudioFormat()
  • *
  • parent = null
  • *
*/ public QAudioSink(io.qt.multimedia.@NonNull QAudioDevice audioDeviceInfo) { this(audioDeviceInfo, new io.qt.multimedia.QAudioFormat(), (io.qt.core.QObject)null); } /** *

Overloaded constructor for {@link #QAudioSink(io.qt.multimedia.QAudioFormat, io.qt.core.QObject)} * with parent = null.

*/ public QAudioSink(io.qt.multimedia.@NonNull QAudioFormat format) { this(format, (io.qt.core.QObject)null); } /** *

Overloaded constructor for {@link #QAudioSink(io.qt.multimedia.QAudioFormat, io.qt.core.QObject)}

*

with:

    *
  • format = new io.qt.multimedia.QAudioFormat()
  • *
  • parent = null
  • *
*/ public QAudioSink() { this(new io.qt.multimedia.QAudioFormat(), (io.qt.core.QObject)null); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy