for your problem with decoding:
if you are using windows, then you could decode your music-files with the ACM API of MS. it´s very quick and easy to handle.
at the moment we are using a stand alone mp3 decoder, ogg vorbis decoder and so on…. i never give the api of MS a try… but if it is good enough for analysis in background (volume adjustment etc.) it would fit.. a fallback will be that ms api does not allow the same formats then fmod.. so sometimes i will not be able to do analysis OR i will disallow some formats (where there is no seperate decoding engine for).
it could be so easy if….. but….. ok…. ms api… -> can you post a little code snip just for opening/reading/closing a file? would be cool to take a look on it…
Thx for this information… so generally it works.. fine.. but what when analysing huge mp3-files like mix-cd’s – FSOUND_Sample_Load() would take a huge amount of memory when it decodes the complete stream into memory… is there another way to decode a file chunk by chunk during playback of another stream/file/url ?!?
look: i wrote a player who is able to play files during burning process and other analysis functions during playback… fsound can only started once (i think) so i would be nice to open streams and call a function like:
FSOUND_Stream_Read(&buf, sizeof(buf), stream)
thx again for help
[quote="brett":1ykly4c4]fmod is an audio playback library not a decompression library. If you want there are hack ways to do it, like dynamically loading another copy of fmod and starting it in nosound/nonrealtime mode, but we’re not adding ‘decode’ functions to fmod3.
ok, i understand that point.. but this couldnt be used just for burning/decoding purposes. when i start playback of a stream, opened not with FSOUND_MPEGACCURATE, i would be nice to do a read ahead (of the complete stream, without changing positions of the playback cursor). it could be used to do pre-volume analysis or for finding the cross-over point (fadeout point), to do visuals with it (show what kind of wave to come ahead like in traktor) or just to calculate the correct length of a VBR mp3 audio…..
and decoding only would not be to hard to implement….
anyway a mega compliment to the authors of fmod… this library really rocks! until now there is not much against using fmod in our program!
Please login first to submit.