Package de.presti.ree6.utils.data
Class AudioUtil
java.lang.Object
de.presti.ree6.utils.data.AudioUtil
A utility class to work with Audio files.
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
convertPCMtoWAV
(ByteBuffer byteBuffer) Convert a PCM ByteBuffer into a WAV encoded byte array.
-
Method Details
-
convertPCMtoWAV
Convert a PCM ByteBuffer into a WAV encoded byte array.- Parameters:
byteBuffer
- The PCM ByteBuffer.- Returns:
- The WAV encoded byte array.
- Throws:
IOException
- If an error occurs.
-