Methods Summary |
---|
public int | describeContents()
return 0;
|
public boolean | equals(java.lang.Object o)
if (o instanceof BluetoothAudioConfig) {
BluetoothAudioConfig bac = (BluetoothAudioConfig)o;
return (bac.mSampleRate == mSampleRate &&
bac.mChannelConfig == mChannelConfig &&
bac.mAudioFormat == mAudioFormat);
}
return false;
|
public int | getAudioFormat()Returns the channel audio format (either {@link android.media.AudioFormat#ENCODING_PCM_16BIT}
or {@link android.media.AudioFormat#ENCODING_PCM_8BIT}
return mAudioFormat;
|
public int | getChannelConfig()Returns the channel configuration (either {@link android.media.AudioFormat#CHANNEL_IN_MONO}
or {@link android.media.AudioFormat#CHANNEL_IN_STEREO})
return mChannelConfig;
|
public int | getSampleRate()Returns the sample rate in samples per second
return mSampleRate;
|
public int | hashCode()
return mSampleRate | (mChannelConfig << 24) | (mAudioFormat << 28);
|
public java.lang.String | toString()
return "{mSampleRate:" + mSampleRate + ",mChannelConfig:" + mChannelConfig
+ ",mAudioFormat:" + mAudioFormat + "}";
|
public void | writeToParcel(android.os.Parcel out, int flags)
out.writeInt(mSampleRate);
out.writeInt(mChannelConfig);
out.writeInt(mAudioFormat);
|