Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

Class AudioPassThruCapabilities

Hierarchy

java.lang.Object
     com.smartdevicelink.proxy.RPCStruct

Package
com.smartdevicelink.proxy.rpc

Overview

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

Fields

KEY_SAMPLING_RATE

public static final java.lang.String KEY_SAMPLING_RATE
Constant Value
"samplingRate"

KEY_AUDIO_TYPE

public static final java.lang.String KEY_AUDIO_TYPE
Constant Value
"audioType"

KEY_BITS_PER_SAMPLE

public static final java.lang.String KEY_BITS_PER_SAMPLE
Constant Value
"bitsPerSample"

Inherited Fields

From Class Fields
com.smartdevicelink.proxy.RPCStruct KEY_BULK_DATA, KEY_PROTECTED, store

Constructors

AudioPassThruCapabilities()

Constructs a newly allocated AudioPassThruCapabilities object

public AudioPassThruCapabilities()

AudioPassThruCapabilities( java.util.Hashtable<java.lang.String, java.lang.Object> hash )

Constructs a newly allocated AudioPassThruCapabilities object indicated by the Hashtable parameter

public AudioPassThruCapabilities(java.util.Hashtable<java.lang.String, java.lang.Object> hash)

Parameters

hash
The Hashtable to use

AudioPassThruCapabilities( SamplingRate samplingRate, BitsPerSample bitsPerSample, AudioType audioType )

Constructs a newly allocated AudioPassThruCapabilities object

public AudioPassThruCapabilities(SamplingRate samplingRate,BitsPerSample bitsPerSample,AudioType audioType)

Parameters

samplingRate
the sampling rate for AudioPassThru
bitsPerSample
the sample depth in bit for AudioPassThru
audioType
the audiotype for AudioPassThru

Methods

setSamplingRate( SamplingRate samplingRate )

set the sampling rate for AudioPassThru

public void setSamplingRate(SamplingRate samplingRate)

Parameters

samplingRate
the sampling rate for AudioPassThru

getSamplingRate()

get the sampling rate for AudioPassThru

public com.smartdevicelink.proxy.rpc.enums.SamplingRate getSamplingRate()

setBitsPerSample( BitsPerSample bitsPerSample )

set the sample depth in bit for AudioPassThru

public void setBitsPerSample(BitsPerSample bitsPerSample)

Parameters

bitsPerSample
the sample depth in bit for AudioPassThru

getBitsPerSample()

get the sample depth in bit for AudioPassThru

public com.smartdevicelink.proxy.rpc.enums.BitsPerSample getBitsPerSample()

setAudioType( AudioType audioType )

set the audiotype for AudioPassThru

public void setAudioType(AudioType audioType)

Parameters

audioType
the audiotype for AudioPassThru

getAudioType()

get the audiotype for AudioPassThru

public com.smartdevicelink.proxy.rpc.enums.AudioType getAudioType()

Inherited Methods

From Class Methods
com.smartdevicelink.proxy.RPCStruct getStoreValue, getStore, deserializeJSON, deserializeJSONObject, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section