Playing streams of various PCM formats

littla <littla.ap7hi1-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]> Mon, 15 Aug 2022 15:58:47 +0000
Newsgroups gmane.music.equipment.slimdevices.devel
Organization Logitech Squeezebox Forums
Message-ID <[email protected]>
Hello,

I imagine this is basic stuff and was answered before, but I searched
for both wav and pcm and didn't find any posts... so sorry if this is
redundant.

I'm trying to write a plugin that can play raw PCM audio from a URL
(format can't be determined by URL or content) and want to be able to
tell the plugin how to correctly decode the PCM (i.e. it's 24 bit, 2
channel, big-endian, 44100...) I'm not sure what things I need to
implement in the plugin to identify which format to LMS.

Can anyone point me in the right direction?
I couldn't find a plugin I thought was doing this with PCM.

I'm not even sure what the correct approach to this should be. Should I
be using the custom-convert, for example?
Am I inventing my own format to do that (because I don't want to
override all wav/pcm handling, just for this plugin, and even then, it
can change depending on what my source is sending.

I thought defining the type and relevant attributes (i.e. rate, endian,
etc.) would make the most sense, but I can't figure out how to do it.

Any help would be greatly appreciated.
Thanks!


------------------------------------------------------------------------
littla's Profile: http://forums.slimdevices.com/member.php?userid=63581
View this thread: http://forums.slimdevices.com/showthread.php?t=116687