Resuming decoding after {STOP || BREAK}

joseph Dobson <[email protected]> Sun, 11 Sep 2011 18:02:43 +0100
Newsgroups gmane.comp.audio.mad.devel
Message-ID <CAH9WD8_TdaRKFiswMPsmCmwaUcVN3ib-ktN0sxkshXKACsd1SQ@mail.gmail.com>
--000e0cdf1bb602fcda04acad61a4
Content-Type: text/plain; charset=ISO-8859-1

Hi

I am trying to use the MAD library to decode mp3 files for a programming I
am working on, the problem is the produced outputs are very large. So my aim
was to decode X number of frames, the break until there are spaces for my by
resuming the decoding. However this isn't working as I hoped.

Currently, I am populating the output buffer, in the high level API, and
when it is full then I break (and I have tried stop too) however If I want
to resume by calling the decode_run (again) then it never get back to
resuming the decoding. So I was inquiring as it whether there was a 'best
practice' way of doing this with MAD, of course I could always block the
decoder thread when the buffer is full. But I am not sure that is the best
way.

Thank You

--000e0cdf1bb602fcda04acad61a4
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi<div><br></div><div>I am trying to use the MAD library to decode mp3 file=
s for a programming I am working on, the problem is the produced outputs ar=
e very large. So my aim was to decode X number of frames, the break until t=
here are spaces for my by resuming the decoding. However this isn&#39;t wor=
king as I hoped.</div>
<div><br></div><div>Currently, I am populating the output buffer, in the hi=
gh level API, and when it is full then I break (and I have tried stop too) =
however If I want to resume by calling the decode_run (again) then it never=
 get back to resuming the decoding. So I was inquiring as it whether there =
was a &#39;best practice&#39; way of doing this with MAD, of course I could=
 always block the decoder thread when the buffer is full. But I am not sure=
 that is the best way.</div>
<div><br></div><div>Thank You</div>

--000e0cdf1bb602fcda04acad61a4--