[mpg123-devel] [ mpg123-Feature Requests-3348882 ] Peek size of internal buffer
Brought to you by:
sobukus
From: SourceForge.net <no...@so...> - 2011-07-01 07:34:08
|
Feature Requests item #3348882, was opened at 2011-07-01 15:34 Message generated for change (Tracker Item Submitted) made by mtlung You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=733197&aid=3348882&group_id=135704 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: mpg123 Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Lung Man Tat (mtlung) Assigned to: Nobody/Anonymous (nobody) Summary: Peek size of internal buffer Initial Comment: Most of the time I use mpg123_decode() with fixed size pre-allocated input and output buffer Without a peek function to let me know how much buffer can be decoded without feeding new data, I will run into situations either: - Feed data faster than consumption --> mpg123 internal buffer get increase without bound, or - Peridoically invoke mpg123_read() --> having many tiny output buffer size, which will do no good (memory/performance) to my underlaying audio engine So I would suggest to have a function like int mpg123_peek_outbuffer(); May be there is some existing API that I can use to solve my problem I missed? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=733197&aid=3348882&group_id=135704 |