Skipping and Rewinding to certain frames (Low Level API)
Adam Magaluk <[email protected]> Wed, 9 Jun 2010 10:25:35 -0400
| Newsgroups | gmane.comp.audio.mad.devel |
|---|---|
| Message-ID | <[email protected]> |
--001636831f0eeba12b048899ad58 Content-Type: text/plain; charset=ISO-8859-1 Hello Mad List, I am working on a project that uses libmad to decode mp3s, one requirement for the project is for rewinding or fast forwarding to a particular frame at any point in the playback. What is the preferred way to do that? Currently I set a variable when skipping forward that disables the write to output (which is libao). It works but I get a bunch of alsa underun errors (Not a libmad problem though). What bothers me more though is when I want to rewind I have to re-initialize the song and skip to the frame that is needed. That seems very inefficient to me. Is there a better way? Thanks for any advice, Adam Magaluk --001636831f0eeba12b048899ad58 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div>Hello Mad List,</div><div><br></div><div>I am working on a project tha= t uses libmad to decode mp3s, one=A0requirement=A0for the project is for re= winding or fast=A0forwarding=A0to a=A0particular=A0frame at any point in th= e playback.=A0</div> <div><br></div>What is the=A0preferred=A0way to do that?<div><br></div><div= >Currently I set a variable when skipping=A0forward=A0that disables the wri= te to output (which is libao). It works but I get a bunch of alsa underun e= rrors (Not a libmad problem though). What bothers me more though is when I = want to rewind I have to re-initialize the song and skip to the frame that = is needed. That seems very inefficient to me. Is there a better way?</div> <div><br></div><div>Thanks for any advice,</div><div>Adam Magaluk</div> --001636831f0eeba12b048899ad58--