0
0

I have a problem with the FSOUND_Sample_Load function

when I want specifier an offset and a size to charge in FSOUND_Sample

the function gives me the error code : 10 -> FMOD_ERR_FILE_FORMAT

ex:

offset = 100000;
length= 100000;

piste = FSOUND_Sample_Load(FSOUND_FREE,namefile.GetBuffer(namefile.GetLength()),mode,offset,length);

piste is NULL and the error code is 10

but if I do not indicate a offet, “piste” is ok

piste = FSOUND_Sample_Load(FSOUND_FREE,namefile.GetBuffer(namefile.GetLength()),mode,0,0);

i don’t understand.

thanks

cedric

  • You must to post comments
0
0

the file is a mp3 format or wav format

  • You must to post comments
0
0

thanks but I need to take part of my file

the time of my music is of +- 30 minutes

i read this file with FSOUND_Stream_Open but when I want to cut a piece of this music I would like to use FSOUND_Sample_Load

how to take part of the music ?

thanks
ced

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.