Ok, I’ve found what’s going wrong :
I’m using the channel GetWaveData() method and not the system one.
With the system method it’s work ok, but with the channel one when the CREATESTREAM flag is on the getWaveData return always 0.
is it normal ?
[quote:52p2wuo0]Basically it already exists. I’m thinking of removing it, because all it would be is a wrapper to getWaveData with a numvalues = 1.[/quote:52p2wuo0]
Yes, but GetLevels return values between 0 and 1. I notice that getWavData return some negatives values. I’m trying to use FMOD since only 2 weeks and i don’t know how to “scale” getWavData Values so that they will be exactly the same that GetLevels return.
I also notice that when i open a file using CreateStrem or CreateSound with CREATESTREAM flag GetWavData does not work. If i use CreateSound without CREATESTREAM flag GetWavData work ok… I don’t know why because the dsppluginviewer example use this flag and GetWavData work ok with it …
(PS : I’m using c# for my project).
Could anyone help me ?
Thank you for your response.
After many tests, I confirm that i can’t use GetWavData with the CREATSTREAM Flag when working in c#. With the code below adding or removing the CREATSTREAM flag make the GetWavData Working or not.
[code:215uyb0b]result = FMOD.Factory.System_Create(ref system);
result = system.getVersion(ref version);
result = system.init(32, 32, FMOD.INITFLAG.NORMAL, (IntPtr)null);
result = system.createSound("../../examples/media/wave.mp3", (FMOD.MODE._2D | FMOD.MODE.SOFTWARE | FMOD.MODE.CREATESTREAM), ref sound);
Thank you for your testing.
Could you tell me the fmod version you are using ? is it the 4.00.28 ?
I have the same problem with vb, using the example “playstream” (with some adjustments in the init :
FMOD_System_Init(System, 32, 32, FMOD_INIT_NORMAL, 0)
and in the createsound :
FMOD_System_CreateSound(System, “wave.mp3”, (FMOD_2D Or FMOD_SOFTWARE Or FMOD_CREATESTREAM), exinfo, Sound)
I’ve tested this on 2 different computers and still have the GetWaveData returning 0 when CREATESTREAM Flag is used (in c# and vb6 …).
Is there something else special to do ?
Thank you for your help.
Yes, it was tested using the latest version.
How are you calling getWaveData? You should have something like this (in c#):
float wavedata = new float[NUMVALUES];
system.getWaveData(wavedata, NUMVALUES, 0);
Please login first to submit.