Package org.luwrain.util
Class SoundUtils
java.lang.Object
org.luwrain.util.SoundUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AudioFormat
createAudioFormat
(String params) static byte[]
createWaveHeader
(int sampleRate, int bitsPerSample, int numChannels, int dataLen) static byte[]
createWaveHeader
(AudioFormat audioFormat, int dataLen) static boolean
setLineMasterGanePercent
(SourceDataLine line, int percent)
-
Constructor Details
-
SoundUtils
public SoundUtils()
-
-
Method Details
-
createWaveHeader
public static byte[] createWaveHeader(int sampleRate, int bitsPerSample, int numChannels, int dataLen) -
createWaveHeader
-
createAudioFormat
-
setLineMasterGanePercent
-