audioPlayerRecorder PlayerChannelMapping not working as expected

8 visualizaciones (últimos 30 días)
WP
WP el 25 de Abr. de 2019
Respondida: Jimmy Lapierre el 21 de Jul. de 2020
Hi,
I have encountered a strange behaviour of the audioPlayerRecorder function when using the PlayerChannelMapping feature.
If I set
aPR.PlayerChannelMapping = 1
my mono audio file gets played back on channels 1 AND 2. If
aPR.PlayerChannelMapping = 2 or higher, the function works as expected and plays the audio only on output 2.
I use a Macbook Pro, Matlab 2018b and an RME Babyface PRO Soundcard.
Is this a known issue or am I doing something wrong?
Thanks in advance!

Respuestas (1)

Jimmy Lapierre
Jimmy Lapierre el 21 de Jul. de 2020
The behavior of channel mapping with single channels depends on the driver (for example, it is different for ASIO and DirectSound on Windows). The best way to be sure you get the desired output is to output one channels with zeros instead of relying on the driver’s channel mapping.
xleftonly = [xmono(:) zeros(length(xmono),1)];
xrightonly = [zeros(length(xmono),1) xmono(:)];

Categorías

Más información sobre Simulation, Tuning, and Visualization en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by