Rockbox mail archive
Subject: Re: MPEG thread global struct interface defn
From: Dave Chapman (dave_at_dchapman.com)
Date: 2002-06-01
On Saturday 01 June 2002 04:16, Lion Templin wrote:
> As discussed on IRC, here is a working defn of a struct for the MPEG thread
> to report its status to the outside world. This is useful to allow such
> threads as apps/play.c to know what the MPEG thread is doing and respond
> accordingly.
I missed this discussion (where are the IRC logs on the website?), so I hope
my comments are relevant.
> int filepos;
> /* DOMESTIC - Current file position
> -1 if no stream loaded
> */
Do you also need the current position in seconds?
> unsigned int mpeg_bitrate;
> /* DOMESTIC - Currently loaded MPEG bitrate
> 0 if no file
> */
> unsigned int mpeg_type;
> /* DOMESTIC - Describes Currently loaded MPEG
> policy BITMASK
> Bit Off/On
> 0 single bitrate / VBR
> 1 stereo / mono
> 2 joint stereo / discrete stereo
> 3 OK / error
>
> 0 if no file (though not indicative of no file)
> */
What about mpeg_version and mpeg_layer?
Dave.
Page was last modified "Jan 10 2012" The Rockbox Crew
|