Can i play a second audio in a different channel?
Hi guys,
I have the necessity to play a second or third audio. Can i do that in different channels?
Thanks!
Ok, this means being able to pass a -c param to aplay. Can you confirm?
I think we can easily implement this and being able to pass the channel as a config param to the constructor.
I don't have a mac, does also afplay support the -c cli param?
I'm thinking something about this:
var music = new Sound();
music.channel(1);
music.play('/path/to/the/file/filename.wav');
var music2 = new Sound();
music2.channel(2);
music2.play('/path/to/the/file/filename2.wav');
Is it possible?
Thanks for the feedback.
Yeah totally possible. Also we can think of this:
var music = new Sound({channel: 1})
music.play('/path/filename.wav')
...
The only issue is that we should support it also on Mac.
And I'm not sure if afplay support channel as cli param.
Pretty good!
I don't have a mac, i don't know if support channel as cli param.
That's a nice idea, I would love to be able to do that too.
I'm also having this problem. Can you guys implement this or recommend another package?
I'm gonna implement this in a bit. Stay tuned.
@roccomuso thank you so much for your support.
We're anxious to see this implementation.
@roccomuso you are the real MVP. I can't wait for this haha
channel support, shipped with v1.2.0.
It should work. Let me know
@roccomuso Can you explain what was changed?
Now passing the channel param to aplay.
Guys, does even the bare aplay cmd works for you? aplay -c 1 myfile.wav
@roccomuso I ran your command, but i'm not sure what to expect. I'm testing in my headphones, should it play in only one ear or in both?