fix spectrum to return a float buffer
This commit is contained in:
parent
4c631207c5
commit
e0d47377c8
|
@ -3137,12 +3137,9 @@ public class FSound {
|
||||||
* @return FloatBuffer containing 512 floats
|
* @return FloatBuffer containing 512 floats
|
||||||
*/
|
*/
|
||||||
public static FloatBuffer FSOUND_DSP_GetSpectrum() {
|
public static FloatBuffer FSOUND_DSP_GetSpectrum() {
|
||||||
if(FMOD.fmodFFTBuffer == null) {
|
return nFSOUND_DSP_GetSpectrum().asFloatBuffer();
|
||||||
FMOD.fmodFFTBuffer = nFSOUND_DSP_GetSpectrum();
|
|
||||||
}
|
}
|
||||||
return FMOD.fmodFFTBuffer;
|
private static native ByteBuffer nFSOUND_DSP_GetSpectrum();
|
||||||
}
|
|
||||||
private static native FloatBuffer nFSOUND_DSP_GetSpectrum();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allows the user to mix their own data from one buffer to another, using FSOUNDs optimized
|
* Allows the user to mix their own data from one buffer to another, using FSOUNDs optimized
|
||||||
|
|
Loading…
Reference in New Issue