Class ReSampler
java.lang.Object
games.stendhal.client.sound.system.SignalProcessor
games.stendhal.client.sound.system.processors.ReSampler
Sound processor stage to re-sample audio signals using another sample rate.
- Author:
- silvio
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
modify(float[] data, int frames, int channels, int rate)
Modify the PCM audio stream.Methods inherited from class games.stendhal.client.sound.system.SignalProcessor
connectTo, createChain, disconnect, finished, generate, insert, propagate, quit, replace, request, split
-
Method Details
-
modify
protected void modify(float[] data, int frames, int channels, int rate)Modify the PCM audio stream. The audio data is uniform and interleaved.- Overrides:
modify
in classSignalProcessor
- Parameters:
data
- the audio dataframes
- the number of sample frames contained in "data"channels
- number of channelsrate
- the sample rate
-