|
Rockbox mail archiveSubject: Re: MPEG thread global struct interface defnRe: MPEG thread global struct interface defn
From: Dave Chapman <dave_at_dchapman.com>
Date: Sat, 1 Jun 2002 08:02:27 +0100 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. Received on 2002-06-01 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |