
public interface MediaAudioConverter
MediaAudio to byte arrays that can be used
in Java's sound system and back.| Modifier and Type | Method and Description |
|---|---|
AudioFormat |
getJavaFormat() |
int |
getMediaChannels()
The number of channels this converter assumes input audio has.
|
AudioFormat.Type |
getMediaFormat()
The Humble
AudioFormat this converter converts from. |
AudioChannel.Layout |
getMediaLayout()
The Humble
AudioChannel.Layout this converter converts form. |
int |
getMediaSampleRate()
The sample rate this convert assumes input audio has.
|
ByteBuffer |
toJavaAudio(ByteBuffer output,
MediaAudio input)
Converts the given
MediaAudio into a byte array
that can be played back on Java's sound APIs |
ByteBuffer toJavaAudio(ByteBuffer output, MediaAudio input)
MediaAudio into a byte array
that can be played back on Java's sound APIsoutput - The array to write data to, or null if you want the converter to allocate a new array for output.input - The input media to convert.AudioFormat.Type getMediaFormat()
AudioFormat this converter converts from.AudioFormat.AudioChannel.Layout getMediaLayout()
AudioChannel.Layout this converter converts form.AudioChannel.Layout.int getMediaChannels()
int getMediaSampleRate()
AudioFormat getJavaFormat()
Copyright © 2018 Humble Software. All rights reserved.