Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Hacking a MP3-to-stdout plugin, was Re: Re: mp3oss and bitstreamout ?



Dr. Werner Fink <werner@suse.de> wrote:

> OSS and ALSA tools souldn't be used at the same time.

Duh. 

So what we need is an MP3ALSA plugin, eh? Or how about a generic
MP3-to-stdout plugin? Could be combined with any generic player on the
command line, in this case aplay. Hmmm - I need to look into the sources
to get it hacked. MP3OSS should be a good place to start because it does
produce a normal PCM stream at one point. 

As far as I can see in player-mp3.c cMP3Player::SetPlayMode, the code
sets the DSP device to 2 channels and S16_LE fixed, setting the DSP_SPEED
to whatever is needed. That could be a bummer because we need to tell aplay
the sample rate. We could use Only48kHz, though.  Open dsp device would
be replaced by a popen() to the external player, and the final close() by a
pclose(). Gunnar? Any problems with the fact that popen() produces a fully
buffered stream? 

It's only a hack. A dedicated MP3ALSA module would be better. But I've no
idea how to use ALSA on the C level. 

But then, it's extremely versatile and could even use a Jack enabled player
or any other piece of code that shuffles bits to a sound card. 


-- 
Atlanta makes it against the law to tie a giraffe to a telephone pole
or street lamp.


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index