public final class NSoundFormat extends NSampleFormat
| Modifier and Type | Field and Description |
|---|---|
static NSoundFormat |
MONO_16S
Mono 16 bit signed per sample sound format.
|
static NSoundFormat |
MONO_16U
Mono 16 bit unsigned per sample sound format.
|
static NSoundFormat |
MONO_32F
Mono 32 bit float per sample sound format.Mono 64 bit signed per sample sound format.
|
static NSoundFormat |
MONO_32S
Mono 32 bit signed per sample sound format.
|
static NSoundFormat |
MONO_32U
Mono 32 bit unsigned per sample sound format.
|
static NSoundFormat |
MONO_64F
Mono 64 bit float per sample sound format.
|
static NSoundFormat |
MONO_64S
Mono 64 bit signed per sample sound format.
|
static NSoundFormat |
MONO_64U
Mono 64 bit unsigned per sample sound format.
|
static NSoundFormat |
MONO_8S
Mono 8 bit signed per sample sound format.
|
static NSoundFormat |
MONO_8U
Mono 8 bit unsigned per sample sound format.
|
static NSoundFormat |
STEREO_16S
Stereo 16 bit signed per sample sound format.
|
static NSoundFormat |
STEREO_16U
Stereo 16 bit unsigned per sample sound format.
|
static NSoundFormat |
STEREO_32F
Stereo 32 bit float per sample sound format.
|
static NSoundFormat |
STEREO_32S
Stereo 32 bit signed per sample sound format.
|
static NSoundFormat |
STEREO_32U
Stereo 32 bit unsigned per sample sound format.
|
static NSoundFormat |
STEREO_64F
Stereo 64 bit float per sample sound format.
|
static NSoundFormat |
STEREO_64S
Stereo 64 bit signed per sample sound format.
|
static NSoundFormat |
STEREO_64U
Stereo 64 bit unsigned per sample sound format.
|
static NSoundFormat |
STEREO_8S
Stereo 8 bit signed per sample sound format.
|
static NSoundFormat |
STEREO_8U
Stereo 8 bit unsigned per sample sound format.
|
static NSoundFormat |
UNDEFINED
Undefined sound format.
|
MAX_CHANNEL_COUNT, value| Constructor and Description |
|---|
NSoundFormat(int value)
Constructs sound format object.
|
NSoundFormat(NSoundType soundType,
int channelCount,
NChannelFormat channelFormat,
int bitsPerChannel)
Constructs sound format object.
|
| Modifier and Type | Method and Description |
|---|---|
static long |
calcBlockLongSize(int bitsPerSample,
int length)
Calculates memory block size by given bits per sample and sample count.
|
static int |
calcBlockSize(int bitsPerSample,
int length)
Calculates memory block size by given bits per sample and sample count.
|
long |
getBlockLongSize(int length)
Returns memory block size for current sound format by given sound sample count.
|
int |
getBlockSize(int length)
Returns memory block size for current sound format by given sound sample count.
|
NSoundType |
getSoundType()
Gets sound type of current sound format.
|
boolean |
isValid()
Checks whether current NSoundFormat value is valid.
|
static com.neurotec.lang.NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
String |
toString()
Retrieves string representation of NSoundFormat object.
|
String |
toString(String format)
Gets the string representation of the current object.
|
equals, getBitsPerChannel, getBitsPerIndex, getBitsPerPaletteEntry, getBitsPerSample, getBitsPerValue, getBytesPerChannel, getBytesPerPaletteEntry, getBytesPerSample, getBytesPerValue, getChannelCount, getChannelFormat, getChannelType, getExtraChannel, getMaxPaletteLength, getPlaneCount, getValue, hashCode, isIndexed, isSeparatedpublic static final NSoundFormat UNDEFINED
public static final NSoundFormat MONO_8U
public static final NSoundFormat MONO_8S
public static final NSoundFormat MONO_16U
public static final NSoundFormat MONO_16S
public static final NSoundFormat MONO_32U
public static final NSoundFormat MONO_32S
public static final NSoundFormat MONO_64U
public static final NSoundFormat MONO_64S
public static final NSoundFormat MONO_32F
public static final NSoundFormat MONO_64F
public static final NSoundFormat STEREO_8U
public static final NSoundFormat STEREO_8S
public static final NSoundFormat STEREO_16U
public static final NSoundFormat STEREO_16S
public static final NSoundFormat STEREO_32U
public static final NSoundFormat STEREO_32S
public static final NSoundFormat STEREO_64U
public static final NSoundFormat STEREO_64S
public static final NSoundFormat STEREO_32F
public static final NSoundFormat STEREO_64F
public NSoundFormat(int value)
value - Sound format value.public NSoundFormat(NSoundType soundType, int channelCount, NChannelFormat channelFormat, int bitsPerChannel)
soundType - Sound type.channelCount - Channel count.channelFormat - Channel format.bitsPerChannel - Bits count per sample per channel.public static com.neurotec.lang.NType nativeTypeOf()
public static int calcBlockSize(int bitsPerSample,
int length)
bitsPerSample - Bits per sound sample.length - Sound sample count.public static long calcBlockLongSize(int bitsPerSample,
int length)
bitsPerSample - Bits per sound sample.length - Sound sample count.public int getBlockSize(int length)
length - Sound sample count.public long getBlockLongSize(int length)
length - Sound sample count.public NSoundType getSoundType()
public boolean isValid()
public final String toString()
Copyright © 2016 Neurotechnology. All rights reserved.