0
0

I realized that my previous request for help did not really contain enough information, being basically a simple : “it doesn’t work”.

Here is the code that failse to produce any sound effects. It’s a simplified version of what’s in the app, but I’ve actuall run it (with error #def’d to return), and it plays the track devoid of effects.

Sorry about the lack of tabs – they go into the box but …

void Start( char * Name )
{
if ( FSOUND_GetVersion( ) < FMOD_VERSION)
error ;

define WINMM 1 // Both tried – DSOUND causes crash in FMOD at FSOUND_Stream_PlayEx

if WINMM

FSOUND_SetOutput(FSOUND_OUTPUT_WINMM);

else

FSOUND_SetOutput(FSOUND_OUTPUT_DSOUND);

endif

if ( ! FSOUND_Init( 44100, 64, 0 ) )
    error ;

Stream = FSOUND_Stream_OpenFile( Name, FSOUND_HW2D | FSOUND_ENABLEFX, 0 ) ;

if ( ! Stream )
    error ;

FSOUND_Stream_SetEndCallback( Stream, EndCallBack, 0 ) ;

if ( ( Channel = FSOUND_Stream_PlayEx( FSOUND_FREE, Stream, NULL, TRUE ) ) == - 1 )
    error;

FXId = FSOUND_FX_Enable( Channel, FSOUND_FX_PARAMEQ ) ;
FXId = FSOUND_FX_Enable( Channel, FSOUND_FX_ECHO ) ;
FXId = FSOUND_FX_Enable( Channel, FSOUND_FX_FLANGER ) ;

FSOUND_FX_SetEcho( FXId, 80, 70, 100, 100, TRUE ) ;
FSOUND_FX_SetFlanger( FXId, 50, 25, 0, 0, 1, 0, 0 ) ;
FSOUND_FX_SetParamEQ( FXId, 1000, 36, 15 ) ;

FSOUND_SetPaused(  Channel, FALSE );

}

  • You must to post comments
0
0

Unfortunately DSOUND does crash, at least on my system.

As to the multiple FIDX, that was a cut/paste/edit error as I had been trying the effects one at a time. Mind you, I did make that mistake for real with an icon handle yesterday. :roll:

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.