Merge "Unhide getAudioHandle"
This commit is contained in:
committed by
Android (Google) Code Review
commit
e36db53ade
@@ -5053,6 +5053,7 @@ package android.media.tv.tuner.filter {
|
||||
}
|
||||
|
||||
public class MediaEvent extends android.media.tv.tuner.filter.FilterEvent {
|
||||
method public long getAudioHandle();
|
||||
method public long getAvDataId();
|
||||
method public long getDataLength();
|
||||
method @Nullable public android.media.tv.tuner.filter.AudioDescriptor getExtraMetaData();
|
||||
|
||||
@@ -124,15 +124,16 @@ public class MediaEvent extends FilterEvent{
|
||||
}
|
||||
|
||||
/**
|
||||
* Reserves the ID which is used by HAL to provide additional information for AV data.
|
||||
* Gets the audio handle.
|
||||
*
|
||||
* <p>The corresponding data is used and released by {@link android.media.AudioTrack}.
|
||||
* <p>The data is also released when the {@link Filter} instance is closed.
|
||||
* <p>Client gets audio handle from {@link MediaEvent}, and queues it to
|
||||
* {@link android.media.AudioTrack} in
|
||||
* {@link android.media.AudioTrack#ENCAPSULATION_MODE_HANDLE} format.
|
||||
*
|
||||
* @return the reserved AV data ID.
|
||||
* @hide
|
||||
* @return the audio handle.
|
||||
* @see android.media.AudioTrack#ENCAPSULATION_MODE_HANDLE
|
||||
*/
|
||||
public long reserveAvDataId() {
|
||||
public long getAudioHandle() {
|
||||
// TODO: implement
|
||||
return mDataId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user