shime / play-sound

Play sounds by shelling out to one of the available audio players.
MIT License
208 stars 31 forks source link

Universal volume control? #35

Open knod opened 5 years ago

knod commented 5 years ago

Is there a way to adjust the volume for all types of players, not just a specifically named one? The example in the README says { afplay: ['-v', 1 ] /* lower volume for afplay on OSX */ }, but I don't want to just change afplay. I'd like to change whatever player is being used.

mattogodoy commented 4 years ago

I am trying to achieve the same thing. @knod , did you manage to solve this?

knod commented 4 years ago

I haven't @mattogodoy. I just lived with it for the short duration of the project. If I need this package again, I'll be interested in trying your changes, thanks.

You can close this if you feel the issue has been resolved. If it's still open when I get to trying it out, I'll close the issue.

mattogodoy commented 4 years ago

Thanks for your answer! I don't think that the issue has been resolved, but I guess I understand how it works now. Most of the players don't have the option to control the volume, so you could pass parameters like the one in the example to each of them, or at least the ones you know are going to be used and support volume control.

Feel free to close it :)