Splitting audio pipeline with tee and different formats
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.
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
The file is: FLAC audio bitstream data, 24 bit, stereo, 192 kHz,
I can output S24_3LE correctly with the following command:
uri=file:///home/jonas/temp/Southern_Cross.flac ! tee name=t t. !
queue ! audioconvert ! audio/x-raw,format=S24LE ! alsasink
device=hw:0,0 t. ! queue ! audioconvert ! audio/x-raw,format=S16LE
Doing the same thing in code however either limits to 16 bit, or
does not play at all.