次のコマンドを使用して、PCM (RAW データ、wav 形式ファイルではない) ファイルを再生できます。
gst-launch filesrc location=./44K_16bits.pcm ! audio/x-raw-int, width=16, depth=16, endianness=1234, channels=2, rate=44100, signed=true ! alsasink
これはプログラミングでどのように機能しますか(Cは素晴らしいでしょう)?
filesrc と convert + alsasink をリンクしてみました。
しかし、パイプラインは機能しませんでした。パーツは何audio/x-raw-int
ですか?filesrc の "Source" または convert の "Sink" への caps 設定は?