[mpg123-devel] Help please...
Brought to you by:
sobukus
From: Clive C. <cl...@wi...> - 2012-01-28 21:45:11
|
Hi all, I am trying to seek to a frame and decode it. off_t fNum; size_t bytes; mpg123_seek_frame(hMp3, 300, SEEK_SET); mpg123_decode_frame(hMp3, &fNum, &bbuff, &bytes); This above works fine. If I then seek to frame 299 and decode it and then to frame 298 and decode that it does not work. &fNum shows I have actually just decoded frames 301 and 302. mpg123_seek_frame(hMp3, 299, SEEK_SET); mpg123_decode_frame(hMp3, &fNum, &bbuff, &bytes); mpg123_seek_frame(hMp3, 298, SEEK_SET); mpg123_decode_frame(hMp3, &fNum, &bbuff, &bytes); It appears that after the first seek the next two seeks are ignored. Please tell me what I am doing wrong, I have been playing with this for hours and getting nowhere. I actually need to be able to seek to and decode single frames from wherever I want in the mp3. Thanks Clive -- Infinity: A concept for those who cannot comprehend the big picture. () Arch Linux - For movers and shakers. () |