Package com.amazonaws.ivs.broadcast
Class CustomAudioSource
- java.lang.Object
-
- com.amazonaws.ivs.broadcast.Device
-
- com.amazonaws.ivs.broadcast.AudioDevice
-
- com.amazonaws.ivs.broadcast.AudioSource
-
- com.amazonaws.ivs.broadcast.CustomAudioSource
-
- All Implemented Interfaces:
Releasable
public class CustomAudioSource extends AudioSource implements Releasable
An extension ofAudioSourceto send app-generated audio to the SDK in LPCM format. See alsoDeviceDiscovery.createAudioInputSource(int, BroadcastConfiguration.AudioSampleRate, Format)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.amazonaws.ivs.broadcast.AudioDevice
AudioDevice.Format, AudioDevice.StatsCallback
-
Nested classes/interfaces inherited from class com.amazonaws.ivs.broadcast.Device
Device.Descriptor
-
-
Field Summary
-
Fields inherited from class com.amazonaws.ivs.broadcast.AudioSource
descriptor, handle, statsCallback, tag
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCustomAudioSource(java.lang.String tag, long handle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()voidrelease()Releases the custom audio source instance.-
Methods inherited from class com.amazonaws.ivs.broadcast.AudioSource
appendBuffer, appendBuffer, getDescriptor, getHandle, getTag, isValid, setConfiguration, setGain, setGain, setStatsCallback
-
-
-
-
Method Detail
-
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
release
public void release()
Releases the custom audio source instance. This method must be called when theCustomAudioSourceis no longer being used. The custom audio source cannot be used after this method is called.- Specified by:
releasein interfaceReleasable
-
-