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
offset = 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.
- dreck7 asked 13 years ago
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 ?
Please login first to submit.