<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi</p>
    <p>I'm trying to use a tee to split the audio pipeline so that S16LE
      can be sent to a spectrum analyzer, without changing the audio
      format that is sent to alsasink.</p>
    <p>However, whenever I set "format" to "S16LE" for the fakesink, it
      also affects alsasink. So both queues are affected and set to
      S16_LE. If I remove the format and set only "audio/x-raw" or link
      the elements without the caps, it's unaffected and outputs
      S24_3LE.<br>
    </p>
    <p>The file is: FLAC audio bitstream data, 24 bit, stereo, 192 kHz,
      55598080 samples<br>
    </p>
    <p>I can output S24_3LE correctly with the following command:<br>
      gst-launch-1.0 uridecodebin
      uri=<a class="moz-txt-link-freetext" href="file:///home/jonas/temp/Southern_Cross.flac">file:///home/jonas/temp/Southern_Cross.flac</a> ! tee name=t t. !
      queue ! audioconvert ! audio/x-raw,format=S24LE ! alsasink
      device=hw:0,0 t. ! queue ! audioconvert ! audio/x-raw,format=S16LE
      ! fakesink</p>
    <p>Doing the same thing in code however either limits to 16 bit, or
      does not play at all.<br>
    </p>
    <p>See attached code<br>
    </p>
    <p>Jonas</p>
    <p><br>
    </p>
  </body>
</html>