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

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

The newest version!
package io.qt.multimedia;

import io.qt.*;


/**
 * 

Java wrapper for Qt header file QAudio

*/ public final class QtAudio { static { QtJambi_LibraryUtilities.initialize(); } private QtAudio() throws java.lang.InstantiationError { throw new java.lang.InstantiationError("Cannot instantiate namespace QtAudio."); } /** *

Java wrapper for Qt enum QAudio::Error

*/ public enum Error implements QtEnumerator { /** *

Representing QAudio::NoError

*/ NoError(0), /** *

Representing QAudio::OpenError

*/ OpenError(1), /** *

Representing QAudio::IOError

*/ IOError(2), /** *

Representing QAudio::UnderrunError

*/ UnderrunError(3), /** *

Representing QAudio::FatalError

*/ FatalError(4); static { QtJambi_LibraryUtilities.initialize(); } private Error(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull Error resolve(int value) { switch (value) { case 0: return NoError; case 1: return OpenError; case 2: return IOError; case 3: return UnderrunError; case 4: return FatalError; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QAudio::State

*/ public enum State implements QtEnumerator { /** *

Representing QAudio::ActiveState

*/ ActiveState(0), /** *

Representing QAudio::SuspendedState

*/ SuspendedState(1), /** *

Representing QAudio::StoppedState

*/ StoppedState(2), /** *

Representing QAudio::IdleState

*/ IdleState(3); static { QtJambi_LibraryUtilities.initialize(); } private State(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull State resolve(int value) { switch (value) { case 0: return ActiveState; case 1: return SuspendedState; case 2: return StoppedState; case 3: return IdleState; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QAudio::VolumeScale

*/ public enum VolumeScale implements QtEnumerator { /** *

Representing QAudio::LinearVolumeScale

*/ LinearVolumeScale(0), /** *

Representing QAudio::CubicVolumeScale

*/ CubicVolumeScale(1), /** *

Representing QAudio::LogarithmicVolumeScale

*/ LogarithmicVolumeScale(2), /** *

Representing QAudio::DecibelVolumeScale

*/ DecibelVolumeScale(3); static { QtJambi_LibraryUtilities.initialize(); } private VolumeScale(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull VolumeScale resolve(int value) { switch (value) { case 0: return LinearVolumeScale; case 1: return CubicVolumeScale; case 2: return LogarithmicVolumeScale; case 3: return DecibelVolumeScale; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QAudio::convertVolume(float,QAudio::VolumeScale,QAudio::VolumeScale)

* @param volume * @param from * @param to * @return */ public static float convertVolume(float volume, io.qt.multimedia.QtAudio.@NonNull VolumeScale from, io.qt.multimedia.QtAudio.@NonNull VolumeScale to){ return convertVolume_native_float_QAudio_VolumeScale_QAudio_VolumeScale(volume, from.value(), to.value()); } private native static float convertVolume_native_float_QAudio_VolumeScale_QAudio_VolumeScale(float volume, int from, int to); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy