At Mon, 21 Jul 2003 14:42:17 -0700 (PDT), Eliot Blennerhassett wrote: > > Can aplay/alsa send raw MPEG data to a card? > > aplay -Dhw:0 -v -t raw --channels=2 --format=MPEG --rate=44100 ~/audio/44khz > Playing raw data '/home/eliot/audio/44khz' : MPEG, Rate 44100 Hz, Stereo > aplay: set_params:805: Sample format non available > > This command works fine if I specify S16_LE, S23, FLOAT, S24, but not MPEG. > Any suggestions as to whe - do I have a hope of making it work? > (My card supports all the above including MPEG in exactly the same way as far as > ALSA driver is concerned) > > I have stepped through the code, and got lost in the bit twiddling of masks and > formats. One thing I notice is that only the linear formats are mentioned in > many of the functions in pcm_misc.c eg snd_pcm_format_width()
yes. the support of MPEG is still incomplete. the same things are not defined in the kernel side, too. we have to define the detail of this format. for example, how the driver should align the (mpeg-)frame size together with the ALSA frame size, how can be the variable bitrate handled, etc. perhaps the first step would be send just it as a byte stream with the minimum alignment. then add more restrictions... Takashi ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel