java.lang.Object
io.qt.QtObject
io.qt.multimedia.QAudioFormat
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Stores audio stream parameter information
Java wrapper for Qt class QAudioFormat
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQAudioFormat::AudioChannelPosition
static enum
Java wrapper for Qt enumQAudioFormat::ChannelConfig
static enum
Java wrapper for Qt enumQAudioFormat::SampleFormat
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
SeeQAudioFormat::
NChannelPositions -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal int
bytesForDuration
(long microseconds) final int
bytesForFrames
(int frameCount) final int
final int
static QAudioFormat.ChannelConfig
channelConfig
(QAudioFormat.AudioChannelPosition ... channels) final int
final int
clone()
Creates and returns a copy of this object.static QAudioFormat.ChannelConfig
defaultChannelConfigForChannelCount
(int channelCount) final long
durationForBytes
(int byteCount) final long
durationForFrames
(int frameCount) final boolean
boolean
final int
framesForBytes
(int byteCount) final int
framesForDuration
(long microseconds) int
hashCode()
Returns the objects's hash code computed byqHash(QAudioFormat)
.final boolean
isValid()
final float
normalizedSampleValue
(Buffer sample) final int
final void
final void
setChannelCount
(int channelCount) final void
final void
setSampleRate
(int sampleRate) toString()
Seeoperator<<(QDebug,
QAudioFormat) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Field Details
-
NChannelPositions
public static final int NChannelPositionsSee
QAudioFormat::
NChannelPositions
-
-
Constructor Details
-
QAudioFormat
public QAudioFormat() -
QAudioFormat
- Parameters:
other
-
-
-
Method Details
-
bytesForDuration
- Parameters:
microseconds
-- Returns:
-
bytesForFrames
- Parameters:
frameCount
-- Returns:
-
bytesPerFrame
- Returns:
-
bytesPerSample
- Returns:
-
channelConfig
- Returns:
-
channelCount
- Returns:
-
channelOffset
- Parameters:
channel
-- Returns:
-
durationForBytes
- Parameters:
byteCount
-- Returns:
-
durationForFrames
- Parameters:
frameCount
-- Returns:
-
framesForBytes
- Parameters:
byteCount
-- Returns:
-
framesForDuration
- Parameters:
microseconds
-- Returns:
-
isValid
- Returns:
-
normalizedSampleValue
- Parameters:
sample
-- Returns:
-
equals
- Parameters:
b
-- Returns:
-
sampleFormat
- Returns:
-
sampleRate
- Returns:
-
setChannelConfig
- Parameters:
config
-
-
setChannelCount
- Parameters:
channelCount
-
-
setSampleFormat
- Parameters:
f
-
-
setSampleRate
- Parameters:
sampleRate
-
-
defaultChannelConfigForChannelCount
- Parameters:
channelCount
-- Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QAudioFormat)
. -
channelConfig
public static QAudioFormat.ChannelConfig channelConfig(QAudioFormat.AudioChannelPosition ... channels) -
toString
See
operator<<(QDebug,
QAudioFormat) -
clone
Creates and returns a copy of this object.
-