How to programmatically set volume in Windows, Mac and Ubuntu?

后端 未结 3 1631
小鲜肉
小鲜肉 2020-12-10 10:04

I\'d like to programmatically set volume in Windows, Mac and Ubuntu using C/C++. Command line also can but C/C++ preferred. Thank you in advance!

3条回答
  •  心在旅途
    2020-12-10 10:09

    For Linux using ALSA sound system, you can use following command:

    amixer set Master 50%
    

提交回复
热议问题