You could use the SDL_Audio methods.... Once I get modding I might do it myself but god my ide is annoying.But srsly, this would be a really cool feature.
maybe, but there are also lots of ways it could end badly (spamming with sound, etc). If you really want it, use Mniip's mod.