0
0

someone can tell me whats the differents parameters of this function ?
in fmodex documentation, i dont undertstand it. there are not enough details!
pliz help me, thank you

  • You must to post comments
0
0

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 ?

cylt.

  • You must to post comments
0
0

Hi,

unfortunately getLevels isn’t implemented yet :( I am waiting for that, too 😉

best regrads
Matthias

  • You must to post comments
0
0

[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.

Yann.

  • You must to post comments
0
0

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);
[/code:215uyb0b]

  • You must to post comments
0
0

I just tested this out in c# and getWaveData works properly with the CREATESTREAM flag set so its not a problem with the wrapper.

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

Yes, it was tested using the latest version.

How are you calling getWaveData? You should have something like this (in c#):
[code:2ly342ao]

float[] wavedata = new float[NUMVALUES];

system.getWaveData(wavedata, NUMVALUES, 0);

[/code:2ly342ao]

  • You must to post comments
0
0

That’s exactly the code I use to call getWaveData.
I can’t understand what’s going wrong with this function in my code.

Could you send me the code you are using for your test ?

Thank you for your help.

cylt.

  • You must to post comments
0
0

I just put the above code in the main loop of the playstream example. (and changed it to a software sound)

  • You must to post comments
Showing 9 results
Your Answer

Please first to submit.