From: James Courtier-D. <Ja...@su...> - 2001-09-01 22:57:35
|
For guidence, I have looked at the mplayer source, which supports all the different types. Possible PCM formats(OSS types): - AFMT_S16_LE (avi type 1 if 16 bits) AFMT_U8 (avi type 1 if 8 bits) AFMT_A_LAW (avi type 6) AFMT_MU_LAW (avi type 7) AFMT_IMA_ADPCM (avi type 11) No requirement for 8 bit signed as far as I can tell. (Prove me wrong, and send me a clip.) Only type 1 is currently supported, and the audio_out_alsa handles it perfectly with the latest CVS (just added yesterday) type 6,7,11 are currently not supported by xine. (but could quite easily be added). Currently, the api for audio_???_out.c open function is: - static int ao_???_open(ao_driver_t *this, uint32_t bits, uint32_t rate, int mode); Why don't we merge "bits" and "mode" into a single "mode" variable? Also, in the interest of portability, shall we change all interger types to those contained in <stdint.h> I.E. int32_t instead of int. Cheers James > -----Original Message----- > From: xin...@li... > [mailto:xin...@li...]On Behalf Of Guenter > Bartsch > Sent: 01 September 2001 22:30 > To: Juergen Keil > Cc: xin...@li... > Subject: Re: [xine-user] Message for anyone having problems with playing > particular Media streams in xine. > > > Hi Juergen, > > On Sat, 1 Sep 2001, Juergen Keil wrote: > > > These two AVI files contain 11025Hz Mono Unsigned 8-bit PCM sound. > > *urx* #-} > > > I think they uncover a problem with xine's audio drivers, because an > > audio driver does not get the information, that the 8bit samples use > > *unsigned* encoding (vs. signed 8-bit, or muLaw 8-bit, or aLaw 8-bit). > > hum, oki, so what do we do here? > > proposal: replace the "bits" parameter of the aodriver_t->open() > function by a "sample_format" parameter for which we can #define some > constants > > #define SAMPLE_FORMAT_16_SIGNED > #define SAMPLE_FORMAT_8_SIGNED > ... > > BTW: is this really worth the effort? Or should we simply make it the > audio decoder's job to convert these (strange ;) ) formats to signed 8/16 > bit? > > Cheers, > > Guenter > > -- > time is a funny concept > > > _______________________________________________ > xine-user mailing list > xin...@li... > https://lists.sourceforge.net/lists/listinfo/xine-user |