0
0

how to use fx and spectrum simultaneously?
If to do as in tutorial:

SOUND_SetBufferSize (200);
FSOUND_Init (44100,64, FSOUND_INIT_ENABLESYSTEMCHANNELFX + FSOUND_INIT_GLOBALFOCUS);
….
FSOUND_SetPaused (FSOUND_SYSTEMCHANNEL, TRUE);

FSOUND_SetPaused (FSOUND_SYSTEMCHANNEL, FALSE);

That turns out the following:
FSOUND_SYSTEMCHANNEL-Undeclared identifier

  • You must to post comments
0
0

[code:xd2ip4bv]
FSOUND_SetPaused (fsound_systemchannel, TRUE);
ID: = Fsound_FX_Enable (fsound_system_channel, FSOUND_FX_PARAMEQ);
FSOUND_Setpaused (fsound_systemchannel, False)
FSOUND_Setpaused (CHANNEL, False)
[/code:xd2ip4bv]

  • You must to post comments
0
0

Chris, big to you thank!!!:lol:
It works well! 😀

  • You must to post comments
0
0

It looks like delphi. I checked the fmodtypes.pas and it seems to me that there is a little bug in it. Try FSOUND_SYSTEM_CHANNEL instead.

Chris

  • You must to post comments
0
0

Chris you’re right,
In fmod.h and fmod.bas it says
FSOUND_SYSTEMCHANNEL
but in fmodtypes.pas it says
FSOUND_SYSTEM_CHANNEL
(line 396)

wcraft,
when a identifier is unknown and you are using Delphi go to the identifier and delete its name. Then hit [ctrl] + [space] to see all possibilities, by typing FSOUND_ will give you all possibilities beginning with FSOUND_ in that list you can see FSOUND_SYSTEM_CHANNEL.

  • You must to post comments
0
0

Thank, really a mistake in delphi,

I can not understand:

In result the sound does not play.

FSOUND_SetBufferSize (100);
FSOUND_Init (44100,64, FSOUND_INIT_ENABLESYSTEMCHANNELFX);
sample: = FSOUND_Sample_Alloc (FSOUND_FREE, RECORDLEN, FSOUND_16BITS, 44100, 255, 128, 255);
channel: = FSOUND_PlaySoundex (FSOUND_FREE, sample, nil, true);

FSOUND_SetPaused (FSOUND_SYSTEM_CHANNEL, TRUE);
reverb: = Fsound_FX_Enable (FSOUND_SYSTEM_CHANNEL, FSOUND_FX_WAVES_REVERB);

FSOUND_SetPaused (FSOUND_SYSTEM_CHANNEL, false);

In this example the sound – play, spektrum – work, fx – does not work.

FSOUND_SetPaused (CHANNEL, TRUE);
reverb: = Fsound_FX_Enable (CHANNEL, FSOUND_FX_WAVES_REVERB);

FSOUND_SetPaused (CHANNEL, false);

  • You must to post comments
0
0

I did FSOUND_INIT and FSOUND_SAMPLE_ALLOC with various flags, but at use
FSOUND_SetPaused (FSOUND_SYSTEM_CHANNEL, TRUE) the sound does not play.
If I make not so, please write an example how correctly to make INIT and FSOUND_SAMPLE_ALLOC. :roll:

…….
Excuse me for bad English, I from Russia. 😳

  • You must to post comments
0
0

I make record and playing of a sound in real time, by a principle described at you in examples to FMOD.
But problem not in it, even on an example of simple playing to use SOFTWARE MIXER it is impossible.

I followed your instructions ” FSOUND_FX +Spectrum and DSP “:

Example :
FSOUND_SetOutput (FSOUND_OUTPUT_DSOUND); //DirectX sound
FSOUND_SetDriver (0); //sound card (0 = default)
FSOUND_SetMixer (FSOUND_MIXER_QUALITY_FPU); //Float point CPU
FSOUND_SetBufferSize (100); //Buffer size
FSOUND_Init (44100,64, FSOUND_INIT_GLOBALFOCUS+FSOUND_INIT_ENA BLESYSTEMCHANNELFX);
stream: = Fsound_stream_open (PChar (‘c:\mix.mp3’), FSOUND_MPEGACCURATE + FSOUND_NORMAL, 0,0);
channel: = FSOUND_Stream_Playex (FSOUND_FREE, stream, 0, true);
FSOUND_SetPaused (FSOUND_SYSTEM_CHANNEL, TRUE); //Stop FX channel
ID: = Fsound_FX_Enable (FSOUND_SYSTEM_CHANNEL, FSOUND_FX_PARAMEQ);
FSOUND_Setpaused (FSOUND_SYSTEM_CHANNEL, False); //Restart FX Channel

But the sound is not played, where a mistake?
(i used Delphi6+fmod3.73)

  • You must to post comments
0
0

All functions are initialized normally, mistakes do not return, but the sound does not play.:(

I can not understand in what a problem, all I make as in tutorial? :(

  • You must to post comments
0
0

i think there should be a FSOUND_Setpaused (channel, False); at the end

  • You must to post comments
0
0

I am very much upset,

FSOUND_SetPaused (fsound_system_channel, TRUE);
ID: = Fsound_FX_Enable (fsound_system_channel, FSOUND_FX_PARAMEQ);

FSOUND_Setpaused (CHANNEL, False)

But it does not work.
There may be it defect DELPHI or fmod 3.73?

There are other ways to receive spectrum + fx? :(

  • You must to post comments
Showing 10 results
Your Answer

Please first to submit.