I have to change the audio output of an audio source , so that i could hear it from speaker not from headphones
I have no idea how to do it to be honest:) The code i use :
_audioSource.clip = Microphone.Start(Microphone.devices[0], false, 500, AudioSettings.outputSampleRate);
If i have my headphones plugged in ,the sound is going to play on them, which is not my goal
Maybe is something in Unity that i could use? Or just create an library in Android Studio