0
0

hello guy!
i have 2 problems
first is on 3d sound!! when i m playing sample i hear sound but when i m coding i hear nothing
that s my code can u help me ?please


samp1 = FSOUND_Sample_Load(FSOUND_FREE, “jungle2.wav”, FSOUND_HW3D, 0);

int g=FSOUND_GetNumHardwareChannels();
ShowMessage(g); //it say s me 32

FSOUND_SetVolume(FSOUND_ALL,200);
FSOUND_Sample_SetMinMaxDistance(samp1, 4.0f, 1000.0f);
FSOUND_Sample_SetLoopMode(samp1, FSOUND_LOOP_OFF);
FSOUND_PlaySoundEx(FSOUND_FREE, samp1, NULL, FALSE);

int h=FSOUND_IsPlaying(FSOUND_FREE);
ShowMessage(h); //it says me 0 but when i put FSOUND_2D instead of FSOUND_HW3D it s working

WHAT IS THE PROBLEM???


other subject
how can i use spectrum???

thats my code:


FSOUND_SetOutput(FSOUND_OUTPUT_DSOUND);
FSOUND_SetBufferSize(200); FSOUND_SetDriver(0);
FSOUND_Init(44100, 16, 0); FSOUND_DSP_SetActive(FSOUND_DSP_GetFFTUnit(),TRUE);
stream = FSOUND_Stream_OpenFile(“jules.mp3”, FSOUND_NORMAL | FSOUND_LOOP_OFF, 100);

spectrum = FSOUND_DSP_GetSpectrum();
//BUT I HAVE 0 IN SPECTRUM
FSOUND_Stream_Play(FSOUND_FREE, stream);


thanks all
bappy

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.