0
0

Hi!
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))
{
ERRCHECK(result);
}[/code:ve7px9ud]

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!!

  • You must to post comments
0
0

Nobody can help me?? I would really need this function…

  • You must to post comments
0
0

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 ??

  • You must to post comments
0
0

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?

  • You must to post comments
0
0

Is my question that stupid? Or is this functionality just not available? I thought this would be the place to ask, but seems like there is no help for newbies in this forum…

Anyway any answers are highly appreciated!!!

  • You must to post comments
0
0

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…

http://www.mp3-converter.com/mp3codec/mp3_anatomy.htm

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.