0
0

I have a byte* with the file to read in it, how do i pass it to FMUSIC_LoadSongEx? this doesnt work:

[code:1daq9e7r]byte *FMOD_Data=[file_blah];
FMUSIC_MODULE *FMOD_Song;
FMOD_Song = FMUSIC_LoadSongEx( (char *)FMOD_Data, 0, sizeof(FMOD_File), FSOUND_LOADMEMORY, NULL, 0 );[/code:1daq9e7r]

no, i cant change the way the file is read

edit: stupid javascript that think they can code better UBB than I

  • You must to post comments
0
0

[quote="brett":1o6myunz]hi, sizeof(FMOD_File) is not the size of the file, it is the size of the pointer by the looks of it and is probably going to be 4.[/quote:1o6myunz]

yes indeed, thats the problem i have; but i cant use stat() , because the file is not directly on my HD.

  • You must to post comments
0
0

ok, i got the size now (functions i am using are not very documented), but how do i pass a byte* now? i think it will resolve in data loss (NULL characters) van i typecast to char*

  • You must to post comments
0
0

ok, ill try that. tnx.

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.