how to use fx and spectrum simultaneously?
If to do as in tutorial:
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:
- Anonymous asked 14 years ago
Chris you’re right,
In fmod.h and fmod.bas it says
but in fmodtypes.pas it says
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.
Thank, really a mistake in delphi,
I can not understand:
In result the sound does not play.
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);
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.
Excuse me for bad English, I from Russia. 😳
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 “:
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)
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?
Please login first to submit.