public final class NAudioFormat extends NMediaFormat
| Modifier and Type | Field and Description |
|---|---|
static int |
AAC
Advanced Audio Coding (AAC).
|
static int |
ADTS
Audio Data Transport Stream (ADTS) stream.
|
static int |
DOLBY_AC3_SPDIF
Dolby AC-3 audio over Sony/Philips Digital Interface (S/PDIF).
|
static int |
DRM
Encrypted audio data used with secure audio path.
|
static int |
DTS
Digital Theater Systems (DTS) audio.
|
static int |
FLOAT
Uncompressed IEEE floating-point audio.
|
static int |
MP3
MPEG Audio Layer-3 (MP3).
|
static int |
MPEG
MPEG-1 audio.
|
static int |
MSP1
MSP1 audio format.
|
static int |
PCM
Uncompressed PCM audio.
|
static int |
RAW_AAC1
Advanced Audio Coding (AAC) (Raw audio data).
|
static int |
UNKNOWN
Unknown audio format.
|
static int |
WM_AUDIO_LOSSLESS
Windows Media Audio 9 Lossless codec or Windows Media Audio 9.1 codec.
|
static int |
WM_AUDIO_V8
Windows Media Audio 8 codec, Windows Media Audio 9 codec, or Windows Media Audio 9.1 codec.
|
static int |
WM_AUDIO_V9
Windows Media Audio 9 Professional codec or Windows Media Audio 9.1 Professional codec.
|
static int |
WMA_SPDIF
Windows Media Audio 9 Professional codec over S/PDIF.
|
| Constructor and Description |
|---|
NAudioFormat()
Creates new instance of NAudioFormat.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBitsPerChannel()
Gets bits per channel value for NAudioFormat.
|
int |
getChannelCount()
Gets audio channel count set in NAudioFormat.
|
int |
getSampleRate()
Gets digital audio sample rate supported by NAudioFormat.
|
String |
mediaSubtypeToString(int value)
Converts media subtype to string.
|
static String |
mediaSubtypeToString(int value,
String format)
Converts media subtype to string.
|
static com.neurotec.lang.NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
void |
setBitsPerChannel(int value)
Gets bits per channel value for NAudioFormat.
|
void |
setChannelCount(int value)
Sets audio channel count set in NAudioFormat.
|
void |
setSampleRate(int value)
Sets digital audio sample rate supported by NAudioFormat.
|
getMediaSubtype, getMediaType, isCompatibleWith, setMediaSubtypeaddListener, addPropertyChangeListener, captureProperties, claimHandle, clone, compareTo, copyProperties, dispose, disposeArray, equals, fromHandle, fromHandle, fromObject, getFlags, getHandle, getNativeType, getOwner, getProperty, getProperty, getSize, getSize, getSizeMany, getSizeMany, hashCode, invoke, invoke, invoke, isDisposed, nObjectCallbackNativeTypeOf, nObjectPropertyChangedCallbackNativeTypeOf, ref, removeListener, removePropertyChangeListener, reset, resetProperty, save, save, save, save, save, save, save, save, save, save, save, save, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, setFlags, setProperty, setProperty, toHandle, toObject, toString, toString, unref, unrefArray, unrefElementspublic static final int UNKNOWN
public static final int PCM
public static final int FLOAT
public static final int DTS
public static final int DRM
public static final int MSP1
public static final int MPEG
public static final int MP3
public static final int DOLBY_AC3_SPDIF
public static final int RAW_AAC1
public static final int WM_AUDIO_V8
public static final int WM_AUDIO_V9
public static final int WM_AUDIO_LOSSLESS
public static final int WMA_SPDIF
public static final int ADTS
public static final int AAC
public static com.neurotec.lang.NType nativeTypeOf()
public String mediaSubtypeToString(int value)
value - Subtype value (int).public static String mediaSubtypeToString(int value, String format)
value - Subtype value (int).format - Reserved.public int getChannelCount()
public void setChannelCount(int value)
value - Audio channel count.public int getSampleRate()
public void setSampleRate(int value)
value - Sample rate supported by NAudioFormat. The value is sample rate in hertz (Hz).public int getBitsPerChannel()
public void setBitsPerChannel(int value)
value - Bits per channel.Copyright © 2016 Neurotechnology. All rights reserved.