0
0

Can anybody help me with an example of the possible effects. I would like to use some effects in my player, but I have no clue on how to do it. I looked at the C++ example but I’m afraid that’s Chinees for me. Does anybody have a VB.NET example about lowpass, echo, reverb, … that he wants to share? I would be very grateful!!!

Thanks
Eagle

  • You must to post comments
0
0

Maybe a little examle makes the things more clear. I want to put an echo on my sound, i used the following code for that.

FSOUND_DSP_SetActive(FSOUND_DSP_GetSFXUnit, True)
FSOUND_FX_SetEcho(FSOUND_FX_Enable(song, Fmod.FSOUND_FX_MODES.FSOUND_FX_ECHO), 50, 0, 333, 333, False)

Can anybody say what’s wrong with this? What is short?

Thanks

  • You must to post comments
0
0

sorry, I looked it through again, and it just doesn’t work.

if i try start my song like this:
song = FSOUND_Stream_Open(ofdlPad.FileName, Fmod.FSOUND_MODES.FSOUND_HW2D, 0, 0)
FSOUND_FX_Enable(0, Fmod.FSOUND_FX_MODES.FSOUND_FX_ECHO)
FSOUND_Stream_Play(0, song)

my song doesn’t even start enymore.
Also the part where i try to use the effect give errors:
Dim channel, echoid, echoid2 As Integer

    channel = FSOUND_PlaySoundEx(0, 5, 0, True)

    echoid = FSOUND_FX_Enable(channel, Fmod.FSOUND_FX_MODES.FSOUND_FX_ECHO)
    echoid2 = FSOUND_FX_Enable(channel, Fmod.FSOUND_FX_MODES.FSOUND_FX_ECHO)
    FSOUND_FX_Enable(channel, Fmod.FSOUND_FX_MODES.FSOUND_FX_FLANGER)

    FSOUND_SetPaused(channel, False)

    FSOUND_FX_SetEcho(echoid, 80.0f, 70.0f, 100.0f, 100.0f, TRUE)

Can anybody give me some advice or sample code? This is a school project that has to be finished next week, if I can’t get the effects working I’m in troubles i guess … 😳

  • You must to post comments
0
0

I’m really sorry that i have to bother you like this, but I have 5 days left to get this working, and it doesn’t work 😕

I managed to use the FSOUND_FREE like you said, but because I use Visual Basic .NET 2003 everything is a little bit different.

my code now is the following:
song = FSOUND_Stream_Open(ofdlPad.FileName, Fmod.FSOUND_MODES.FSOUND_HW2D, 0, 0)
FSOUND_Stream_Play(FSOUND_CHANNELSAMPLEMODE.FSOUND_FREE, song)
FSOUND_FX_Enable(song, Fmod.FSOUND_FX_MODES.FSOUND_FX_ECHO)
this is to start playing

if i want to start the effect i go to the following code
Dim channel, echoid, echoid2 As Integer
channel = FSOUND_PlaySoundEx(FSOUND_CHANNELSAMPLEMODE.FSOUND_FREE, song, 0, True)

    echoid = FSOUND_FX_Enable(channel, Fmod.FSOUND_FX_MODES.FSOUND_FX_ECHO)
    echoid2 = FSOUND_FX_Enable(channel, Fmod.FSOUND_FX_MODES.FSOUND_FX_ECHO)
    FSOUND_FX_Enable(channel, Fmod.FSOUND_FX_MODES.FSOUND_FX_FLANGER)

    FSOUND_SetPaused(channel, False)

    FSOUND_FX_SetEcho(echoid, 80.0f, 70.0f, 100.0f, 100.0f, TRUE)

And i think that there is a problem with FSOUND_PlaySoundEx, i don’t think my properties are right, but i really don’t know which properties i have to use there.

Hope you can help me some more.
If i finish my project, I will post it so everybody can use it!!!

  • You must to post comments
0
0

sorry, i forgot to login.

  • You must to post comments
0
0

I understand that i have to use the FSOUND_ENABLEFX , but where???
Do I have to use it when i open my stream?
song = FSOUND_Stream_Open(ofdlPad.FileName, Fmod.FSOUND_MODES.FSOUND_HW2D, 0, 0)
But there i already have to use Fmod.FSOUND_MODES.FSOUND_HW2D

Isn’t there any example available in VB6 or .NET? That would be very usefull. 😳

Thanks a lot for you help, I really appreciate it!!

  • You must to post comments
0
0

We are coming closer i guess, but it still doesn’t work 😳

code to start song:
song = FSOUND_Stream_Open(ofdlPad.FileName, Fmod.FSOUND_MODES.FSOUND_HW2D Or Fmod.FSOUND_MODES.FSOUND_ENABLEFX, 0, 0)
FSOUND_Stream_Play(FSOUND_CHANNELSAMPLEMODE.FSOUND_FREE, song)
FSOUND_FX_Enable(song, Fmod.FSOUND_FX_MODES.FSOUND_FX_ECHO)

code to add effect:
Dim channel, echoid, echoid2 As Integer
channel = FSOUND_PlaySoundEx(FSOUND_CHANNELSAMPLEMODE.FSOUND_FREE, song, 0, True)

    echoid = FSOUND_FX_Enable(channel, Fmod.FSOUND_FX_MODES.FSOUND_FX_ECHO)
    echoid2 = FSOUND_FX_Enable(channel, Fmod.FSOUND_FX_MODES.FSOUND_FX_ECHO)
    FSOUND_FX_Enable(channel, Fmod.FSOUND_FX_MODES.FSOUND_FX_FLANGER)

    FSOUND_SetPaused(channel, False)

    FSOUND_FX_SetEcho(echoid, 80.0F, 70.0F, 100.0F, 100.0F, True)

I have the feeling that there is something wrong when i initialize the variable channel, but i don’t know what.

Thanks again!!!!

  • You must to post comments
Showing 6 results
Your Answer

Please first to submit.