The function GetPosition doesn’t seem to work well with C#.
The following code in the timer_tick function produces a ERR_HTTP Error:
[code:ve7px9ud]result = channel.getPosition(ref ms, FMOD.TIMEUNIT.RAWBYTES);
if ((result != FMOD.RESULT.OK) && (result != FMOD.RESULT.ERR_INVALID_HANDLE))
when i am using FMOD.TIMEUNIT.MS everything works fine. Do i make a mistake or is there an error in the C#-API?
I need the ability to get the position in an compressed byte-Array (mp3) that is actually playing (sound from memory). And also to set the sound to this position. So that when i am streaming a sound, i always know at which position fmod is playing, and when the stream lags or stops i can resume at the same position.
I would also like to know if there is a way to detect which bytes in the array are representing the header and which ones represent the sound-frames(?).
Any help is highly appreciated!!
- marekuana asked 10 years ago
PLEASE HELP ME!!!!
If someone knows how to find out the position in a mp3-stream that is currently playing please tell me!!!
I want to migrate from Bass-Api to Fmod because i want Linux support. In Bass-Api this is no Problem, so i assume that it should also be possible in FMOD. Am i wrong?
why don’t you just use milliseconds, you can seek using that too…
As far as separating the headers etc, you could just write your own mp3 class…
- mac_bug answered 10 years ago
Ok. Now i get an Error Format not supported. So it seems that getPosition for RawBytes doesen’t work. But getLength() works. It shows me the complete Length of an MP3-File.
But I need to know at which Position in the Stream is the current playing position??? Is there any way to retrieve this position for mp3 ??
Please login first to submit.