This would be useful for AC3 and DTS multichannel streams if there is any need for such.
-----Original Message----- From: Max Kellermann [mailto:[email protected]] Sent: Friday, December 10, 2010 9:22 AM To: theHog Cc: [email protected] Subject: Re: [Musicpd-dev-team] plugin for MP3 capable output device On 2010/12/10 17:38, theHog <[email protected]> wrote: > Option 1. > - write a 'copy' decoder plugin that copies the mp3 stream > - write a output plugin specifically for this device Doesn't work, because the mp3 data is then assumed to be PCM, and may be processed as such. > Option 2. > - write a decoder plugin that outputs to this device > - use the 'null' plugin to discard the output Doesn't work, because the decoder plugin doesn't know the timings - it's just a service for the player, and the player decides what to play and when. > What would be the best way to go to add a MP3 capable output device > to MPD? None, currently. We should need some serious code refactoring to support it. But that is a good idea anyway: many people have asked for direct pass-through streaming without the decoder/encoder cycle. Maybe allow the audio_format struct to describe an "as-is" format (a code for "ogg chunk", another code for "raw mp3", ...), which marks the audio chunks as "special", i.e. no software volume, no mixing, no effects. That mode will only be used if the output plugin (all enabled output plugins) indicate they support that format. Max ------------------------------------------------------------------------------ Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev _______________________________________________ Musicpd-dev-team mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team
