Package com.pspdfkit.annotations.sound
Class WavWriter
-
- All Implemented Interfaces:
public final class WavWriter
Allows you to write wav files from audio data. Comes with a handy constructor for SoundAnnotations.
-
-
Method Summary
Modifier and Type Method Description final Unit
writeToStream(OutputStream outputStream)
Writes the WAV data to output stream. final static WavWriter
forAnnotation(SoundAnnotation annotation)
Creates WavWriter
for sound annotation's audio data.final static WavWriter
forAudioSource(EmbeddedAudioSource audioSource)
Creates WavWriter
for embedded audio source.final static Boolean
soundAnnotationSupportsWavExport(SoundAnnotation annotation)
Checks whether audio data in sound annotation is valid and is in supported format for exporting to WAVE file format. -
-
Method Detail
-
writeToStream
final Unit writeToStream(OutputStream outputStream)
Writes the WAV data to output stream.
-
forAnnotation
final static WavWriter forAnnotation(SoundAnnotation annotation)
Creates
WavWriter
for sound annotation's audio data. This could take a while and should be executed on background thread.
-
forAudioSource
final static WavWriter forAudioSource(EmbeddedAudioSource audioSource)
Creates
WavWriter
for embedded audio source. This could take a while and should be executed on background thread.
-
soundAnnotationSupportsWavExport
final static Boolean soundAnnotationSupportsWavExport(SoundAnnotation annotation)
Checks whether audio data in sound annotation is valid and is in supported format for exporting to WAVE file format.
-
-
-
-