estimate of output size?
Chris Korda <[email protected]> Tue, 26 Feb 2013 20:12:26 -0800 (PST)
| Newsgroups | gmane.comp.audio.mad.user |
|---|---|
| Message-ID | <[email protected]> |
--1261493821-1842112296-1361938346=:80237 Content-Type: text/plain; charset=us-ascii Hi, Is there any method to obtain the size of the expected output from a given MP3 file? Even an estimate would be better than nothing. I need to know the size in order to display a progress bar, and also performance will improve considerably if I can allocate the destination array in advance instead of repeatedly growing it. I'm using libmad in Windows XP/Vista/7 with Visual Studio versions 6.0 and 9.0. Cheers, Chris Korda http://waveshop.sourceforge.net/ --1261493821-1842112296-1361938346=:80237 Content-Type: text/html; charset=us-ascii <html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt">Hi,<br><br>Is there any method to obtain the size of the expected output from a given MP3 file? Even an estimate would be better than nothing. I need to know the size in order to display a progress bar, and also performance will improve considerably if I can allocate the destination array in advance instead of repeatedly growing it.<br><br>I'm using libmad in Windows XP/Vista/7 with Visual Studio versions 6.0 and 9.0.<br><div><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;">Cheers,</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial,helvetica,sans-seri f; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;">Chris Korda</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;">http://waveshop.sourceforge.net/<br></div></div></body></html> --1261493821-1842112296-1361938346=:80237--