- Home /
Speaker/earphone audio output toggle from unity c# script using "Lesser AudioSwitch" app
I have a unity app for android and i want to toggle audio output between speaker and earphones using c# script. I just want to send an action to the app "lesser audioSwitch" that listens using "com.nordskog.LesserAudioSwitch.HEADPHONES" to enable audio output through headphones or "com.nordskog.LesserAudioSwitch.SPEAKER" to enable audio output through speaker (it will be an if statement for that) .
I know it is not compicated but i need someone to point me in the right direction. Do i have to send an intent, to start a service or to create a unity plugin ?Any details are welcome... i got so comfused and i keep finding the same posts online that explain the opposite of what i want. Thank you.
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
audio doesn't play on movement 0 Answers
AudioClip stuttering while loop is OFF and not using function Update? 1 Answer
Audio Clip Playing every frame 2 Answers