[gst-embedded] Calculating RAW Audio Buffer Size

Sameer Naik sameer.subscriptions at damagehead.com
Tue Dec 23 09:12:55 PST 2008


Hi,
I am writing a gstreamer plugin in which i  need to calculate the raw audio 
buffer size for a give sample rate, channels, etc.

for example if i have a mp3 frame with the following parameters:
bitrate: 			320Kbps
sampling rate: 	48000Hz
Channels: 		2

How can i calculate the buffer size that would be required by the output buffer 
to store the raw decoded data for this frame? basically what is the formula 
for this calculation?

Thanks in advance
Regards
~Sameer




More information about the Gstreamer-embedded mailing list