Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
JavaSE Documentation
AudioPassThruCapabilities

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)

Constructor 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)

Constructor 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 com.smartdevicelink.proxy.rpc.AudioPassThruCapabilities setSamplingRate(SamplingRate samplingRate)

Method 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 com.smartdevicelink.proxy.rpc.AudioPassThruCapabilities setBitsPerSample(BitsPerSample bitsPerSample)

Method 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 com.smartdevicelink.proxy.rpc.AudioPassThruCapabilities setAudioType(AudioType audioType)

Method 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, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong, clone, equals, hashCode
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section