Patch to support playing mono files (CC-5260)?
  • Hello,

    I just upgraded to 2.4 which fixed an issue I was having but now can't play 80% of my files which are mono.  See http://dev.sourcefabric.org/browse/CC-5260Suspect the fix to play mono files is just adding an audio_to_stereo() method in the right place which I haven't figured out yet.

    Any thoughts on this?  I'd rather not downgrade to 2.3.1.

    Thanks,
    -Bill
  • 1 Comment sorted by
  • Hello,

    I'm testing a fix to ls_script.liq. It seems the cue_cut() function does not work with mono files.  By switching the cue_cut() line to after the audio_to_stereo() line it seems to be working now.  Assuming this patch continues to work, I'll update the ticket later after more of our content has aired.

    <liquidsoap_scripts> $ diff -u ls_script.liq{_orig,}
    --- ls_script.liq_orig  2013-06-25 09:40:14.000000000 -0400
    +++ ls_script.liq       2013-07-07 15:59:38.000000000 -0400
    @@ -41,9 +41,9 @@

     def create_source()
         l = request.equeue(id="s#{!source_id}", length=0.5)
    -    l = cue_cut(l)

         l = audio_to_stereo(id="queue_src", l)
    +    l = cue_cut(l)
         l = amplify(1., override="replay_gain", l)

         # the crossfade function controls fade in/out

    -Bill