public class AudioPassThruCapabilities extends RPCStruct
Describes different audio type configurations for PerformAudioPassThru, e.g. {8kHz,8-bit,PCM} Specifies the capabilities of audio capturing: sampling rate, bits per sample, audio type.
Parameter List
| Name | Type | Description | SmartDeviceLink Ver. Available |
|---|---|---|---|
| samplingRate | SamplingRate | Describes the sampling rate for AudioPassThru | SmartDeviceLink 2.0 |
| bitsPerSample | BitsPerSample | Describes the sample depth in bit for AudioPassThru | SmartDeviceLink 2.0 |
| audioType | AudioType | Describes the audioType for AudioPassThru | SmartDeviceLink 2.0 |
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_AUDIO_TYPE |
static String |
KEY_BITS_PER_SAMPLE |
static String |
KEY_SAMPLING_RATE |
KEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
AudioPassThruCapabilities()
Constructs a newly allocated AudioPassThruCapabilities object
|
AudioPassThruCapabilities(Hashtable<String,Object> hash)
Constructs a newly allocated AudioPassThruCapabilities object indicated by the Hashtable parameter
|
AudioPassThruCapabilities(SamplingRate samplingRate,
BitsPerSample bitsPerSample,
AudioType audioType)
Constructs a newly allocated AudioPassThruCapabilities object
|
| Modifier and Type | Method and Description |
|---|---|
AudioType |
getAudioType()
get the audioType for AudioPassThru
|
BitsPerSample |
getBitsPerSample()
get the sample depth in bit for AudioPassThru
|
SamplingRate |
getSamplingRate()
get the sampling rate for AudioPassThru
|
AudioPassThruCapabilities |
setAudioType(AudioType audioType)
set the audioType for AudioPassThru
|
AudioPassThruCapabilities |
setBitsPerSample(BitsPerSample bitsPerSample)
set the sample depth in bit for AudioPassThru
|
AudioPassThruCapabilities |
setSamplingRate(SamplingRate samplingRate)
set the sampling rate for AudioPassThru
|
clone, deserializeJSON, equals, format, formatObject, getBoolean, getBulkData, getDouble, getFloat, getInteger, getLong, getMessageTypeName, getObject, getStore, getStoreValue, getString, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setBulkData, setPayloadProtected, setValuepublic static final String KEY_SAMPLING_RATE
public static final String KEY_AUDIO_TYPE
public static final String KEY_BITS_PER_SAMPLE
public AudioPassThruCapabilities()
public AudioPassThruCapabilities(Hashtable<String,Object> hash)
hash - The Hashtable to usepublic AudioPassThruCapabilities(@NonNull
SamplingRate samplingRate,
@NonNull
BitsPerSample bitsPerSample,
@NonNull
AudioType audioType)
samplingRate - the sampling rate for AudioPassThrubitsPerSample - the sample depth in bit for AudioPassThruaudioType - the audioType for AudioPassThrupublic AudioPassThruCapabilities setSamplingRate(@NonNull SamplingRate samplingRate)
samplingRate - the sampling rate for AudioPassThrupublic SamplingRate getSamplingRate()
public AudioPassThruCapabilities setBitsPerSample(@NonNull BitsPerSample bitsPerSample)
bitsPerSample - the sample depth in bit for AudioPassThrupublic BitsPerSample getBitsPerSample()
public AudioPassThruCapabilities setAudioType(@NonNull AudioType audioType)
audioType - the audioType for AudioPassThrupublic AudioType getAudioType()