0
0

Hi guys. I’ve been tring to figure this out but I can’t so here, see if any one of you can help me out:

CODE:

include <stdlib.h>

include <stdio.h>

include “fmod.h”

main()
{
// Initialize FMOD
FSOUND_Init(44100, 32, 0);

// create a stream handle
FSOUND_STREAM *mystream;

// get a handle to the song *song is located in the projects folder*
char *songName = "my stupid little song.wav";

if (!(mystream = FSOUND_Stream_Open(songName, FSOUND_NORMAL | FSOUND_2D, 0, 0)))
{
    printf("Error... FSOUNF_Open_Stream Failed!\n");
    getchar();
    exit(1);
}
// never gets to here. neither do I get my customized error msg.

// Play song stream
if (FSOUND_Stream_Play(FSOUND_FREE, mystream) == -1)
{
    printf("Error... FSOUND_Stream_Play Failed!\n");
    getchar();
    exit(1);
}

system("pause");

FSOUND_Stream_Close(mystream);

}

END CODE:

The errros I’m getting are linked here (click on the pic to get a full shot):
http://img230.exs.cx/my.php?loc=img230&amp; … ror2is.jpg

Language: C
Compiler: Visual Studio.NET

Thanks in advanced.

  • You must to post comments
0
0

Yes, sorry. I forgot to mention it here.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.