Posts: 10
Joined: Jun 2011
Reputation:
0
I have a UPnP Media Server that offers music in the UPnP / DLNA defined default format of 2ch 44100Hz 16bit linear pcm. It offers the music via a url having a .pcm file extension and with mime type audio/L16;rate=44100;channels=2.
Unfortunately it seems that XMBC won't play such a stream. Apprently because there is no codec for such .pcm streams.
Is there a solution?
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
add the necessary code to use the mimetype. see the CodecFactory of paplayer.
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
nope, there's no pure pcm codec as it stands. but reusing the wavcodec would just be a hack, there's not really any code to share. so a new "codec" is probably the cleanest solution.
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
cool. can you please do it properly as a pull request on github or a patch on trac? will get lost in here... also those hardcoded values in the constructor should be params read from the mime-type no?
Posts: 26,215
Joined: Oct 2003
Reputation:
187
1. Fork xbmc/xbmc repo to your own github repo.
2. Add your changes, commit locally (git add the new files + modified files followed by git commit).
3. Push your changes to your fork.
4. Do a pull req.
Alternatively, just do number 2 locally, and then git format-patch HEAD~k to grab the top k commits and attach to a trac report.
Cheers,
Jonathan