I am actually quite curious to find out whether it is possible to detect a connection to Wired or Wireless Headphones and then when a connection is estabilished, the game will open a popup that their headphones are connected meaning sound will be played on headphones, warn the user if the music may be too loud, etc.
The sound is located in a GUI and yes I am aware users can change their volume by pressing escape and changing their in-game settings to reduce or increase the volume. Instead let’s say we will be changing the volume from sound properties only.
If this is possible, how do I make the game detect a connection?
If you really want, you can write a feature request about this (detecting external connections)! A feature like this would open up lots of possibilities!
I might do that but I’m also unsure if it is possible to disable to ability to change the volume from the Roblox client settings because otherwise this wouldn’t be very useful as people can change the volume without the game being able to detect a change in volume. Plus I plan to have 2 buttons which will increase or decrease the volume on the sound.
Thinking more about this it would actually make for some really awesome unique game ideas.
For example: Maybe you have some sort of phone system in your game and when you detect a phone being plugged into the PC via a USB you can charge the players phone in-game
This probably isn’t the most practical idea but a cool and funny one in my opinion.
Thing is, I don’t think there is a way to disable the Roblox in game sound settings (also there shouldn’t be since malicious games can take advantage of that).
How would you do that? Roblox can’t control anything on a client’s computer other than the local side of the game it is currently running. So therefore it would be impossible to have the client send http data when a headset is plugged in because you can’t get the client to run 3rd party
software.