Package com.avpkit.mediatool.event
Interface IAudioSamplesEvent
-
- All Superinterfaces:
IEvent,IRawMediaEvent,IStreamEvent
- All Known Implementing Classes:
AudioSamplesEvent
public interface IAudioSamplesEvent extends IRawMediaEvent
Dispatched byIMediaListener.onAudioSamples(IAudioSamplesEvent).- Author:
- aclarke
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IAudioSamplesgetAudioSamples()Forwards togetMediaData().IAudioSamplesgetMediaData()TheIMediaDatafor this object.-
Methods inherited from interface com.avpkit.mediatool.event.IRawMediaEvent
getJavaData, getTimeStamp, getTimeStamp, getTimeUnit
-
Methods inherited from interface com.avpkit.mediatool.event.IStreamEvent
getStreamIndex
-
-
-
-
Method Detail
-
getMediaData
IAudioSamples getMediaData()
TheIMediaDatafor this object. May be null ifIRawMediaEvent.getJavaData()is not null.The returned
IMediaDatawill only be valid for the duration of theIMediaListenermethod call it was dispatched on and implementations must not access it after that call returns. If you need to keep a copy of this data either copy the data into your own object, or useIMediaData.copyReference()to create a reference that will outlive your call.- Specified by:
getMediaDatain interfaceIRawMediaEvent- Returns:
- the media data, or null if unavailable
-
getAudioSamples
IAudioSamples getAudioSamples()
Forwards togetMediaData().- See Also:
getMediaData()
-
-