Simulink Stereo Audio Output

28 ビュー (過去 30 日間)
Nathan
Nathan 2012 年 6 月 8 日
回答済み: Dick Benson 2020 年 8 月 2 日
Hello,
I have two signals. One of them is meant for the left speaker, the other for the right. I am using a mac and my question is how can I output stereo audio.
I've read this: http://www.mathworks.com/help/toolbox/dsp/ref/toaudiodevice.html but it describes multi channel for windows only briefly.
Any ideas?
Thanks for your help.
Nathan.
  1 件のコメント
Walter Roberson
Walter Roberson 2012 年 6 月 9 日
I'm not at all sure, but I think you need to do something like MUX the two signals together into one signal and feed that into the ToAudioDevice block. Or maybe Concatenate instead of MUX. Either way use the first two channels of the device as your outputs.

サインインしてコメントする。

回答 (1 件)

Dick Benson
Dick Benson 2020 年 8 月 2 日
Use the MATRIX Concatonate block to create an [Nx2] signal to feed the To Audio Device block.
In the case of feeding 2 scaler channels, this would then be a [1x2] signal. Use the "Default Mapping" selection.
If you are using Frame based signals the Matrix Concatonate works on those as well.
This is not obvious IMO.

カテゴリ

Help Center および File ExchangeSignal Import and Export についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by