Is it possible to get and set audio volume control...
# announcements
m
Is it possible to get and set audio volume controls with kotlin for mac, windows and/or linux. I've seen a couple of open source project but don't really understand how they work. The goal is to make an application to remotely fine control my pc(windows) en laptop(mac book) volume, this will be linked to my phone(android) and Ipad(ios). The lateral isn't the big issue but the volume control on the os is. Let me know some suggestions or projects to check out, any help would be welcome. Preferably in Kotlin 😉K
blob shrug 1
c
if you're writing for the JVM, maybe you can use javax.sound.sampled.AudioSystem ? https://github.com/Kunagi/ilarkesto/blob/master/src/main/java/ilarkesto/media/Audio.java has an example
🤔 1
m
is there a way to also see the applications running on the device instead of only the audio IO’s?
r
I'm looking for the same..did you find anything? Using audioSystem I can't control master volume..only mute/unmute
m
Been quite a while since I’ve looked into it but maybe there are some tools now available but not sure I didn’t find them at that time. Most things I found were C packages which were OS dependend so it was possible but you need to have the know how
r
That is exactly what I thought, did u try the example above? The one using only java? I tried a similar approach it yesterday but volume haven't change..
m
Not sure anymore 😅 been a couple years
r
fair enough haha
I will try anyway
If it does't work seems like I would need to go with native approach
thanks!
m
Keep me posted. I’m interested in your findings
r
sure
❤️ 1
Nothing works sadly, so going to a native approach 🙂
163 Views