#Sound is playing through speakers and headphones how to
I tried the following code from the post Android, how to route the audio to speakers when headphones inserted?: MediaPlayer mp = MediaPlayer.create(mainActivity, R.raw.chime) ĪudioManager am = (AudioManager) mainActivity.getSystemService(mainActivity. after a few seconds then usually the playback stops and the the audio plays through the headphones. I first start playing the music app through the phone speakers, thereafter I firmly plug in the headphones. I only get audio when the source is on 'Speakers', but that will not work if my volume mixer 'Default' is on 'Headphones'. I only have 3 options in OBS to capture an audio source: Default, Speakers, or USB Headphones.
![sound is playing through speakers and headphones sound is playing through speakers and headphones](https://bestsoundsystemformusic.com/wp-content/uploads/2020/10/Are-Headphones-Better-Than-Speakers.png)
How can I direct the audio output to the speakers, with plugged in headphones, correctly? What I do though, that sometimes helps me to get it to work is to basically instead of plugging in the headphones first. I'm getting sound through the headphones yes, but OBS is NOT picking up any game audio. Mp.setAudioStreamType(AudioManager.STREAM_RING) īut the audio is still played through the plugged in headphones. But now, the sound on the headset is extremely low even when everything is at 100.
![sound is playing through speakers and headphones sound is playing through speakers and headphones](http://i.ytimg.com/vi/sXnPPjyPqSQ/maxresdefault.jpg)
MediaPlayer mp = MediaPlayer.create(mainActivity, R.raw.chime) I fixed the problem with the computer playing through both the speakers and the headphones, i just deleted every driver both for sound and microphone and every program that involved anything with sound, then just restarted the pc and let it re-download everything. getSystemService(Context.AUDIO_SERVICE) ĪtMode(AudioManager.STREAM_MUSIC) MainActivity.java: AudioManager audioManager = (AudioManager)mainActivity Audio coming from headphone and speakers despite headphone being plugged into jack - ThinkPad Twist Question I recently purchased a ThinkPad Twist, and I'm having a problem: When I have my headphones plugged into the headphone jack, I get audio from both the headphones and the computer speakers, defeating the purpose of using headphones. It will play the sound coming from the HDMI or DP (Display Port) cable of your.
![sound is playing through speakers and headphones sound is playing through speakers and headphones](https://www.herosupport.co.uk/wp-content/uploads/2020/04/macbook-sound-not-working-through-headphones.jpg)
I want to play an audio file through speakers with plugged-in headset. In this output you can connect both headphones and external speakers.