s-u / audio

Audio Interface for R
Other
12 stars 8 forks source link

ASIO drivers and output channel selection? #4

Open goesjon opened 4 years ago

goesjon commented 4 years ago

Hello,

thank you very much for the 'audio' package. I worked in the past with 'Octave' and the 'Playrec' package (https://github.com/PlayrecForMatlab). Can I do something similar in R with the 'audio' package?

I have two concrete questions regarding the available audio drivers and the output channel selection for audio playback.

1) I only find the package-built-in 'wmm' drivers (see below)

library(audio)
#> Warning: package 'audio' was built under R version 3.5.3
audio.drivers()
#>   name                     description current
#> 1  wmm Windows MultiMedia audio driver    TRUE

Is there a way I can access ASIO drivers? Playrec in Octave finds the 'ASIO4ALL v2' audio drivers, so they exist, I just can not find them in R with the 'audio' package.

2) I know, that I can do audio playback in R with the 'audio' package using the 'play' function. Is there a way to specify a certain output channel? I work with a RME Fireface UC sound card with multiple output channels. I looked in the 'play' function documentation, but I did not find the possibility to select an output channel. Maybe it is hidden under (?):

... optional arguments passed to the method specific to the object being played

Thank you very much.

Best regards and stay healthy!