Questions tagged [headphones]
146 questions
1
vote
3 answers
Detect headphones Android
I program in recent years to Android and I wonder something:
How to detect the presence of headphones?
There is a method: isWiredHeadsetOn() but it doesn't work.
I've tried that but it doesn't work:
AudioManager am =…

Nachding
- 465
- 2
- 10
- 20
1
vote
0 answers
Android detect peak on microphone
I tried to find the answer to my question in several other threads, but i couldn´t find one fitting.
I have a light barrier consisting of 2 photo-transistors. I want to detect the peaks of these barriers with the android headphone jack. I need to…

PhoGGy
- 23
- 6
1
vote
1 answer
Customising MPVolumeView's high volume warning on iOS
Background
A few iOS versions back Apple introduced a warning when trying to increase volume beyond a certain point while headphones are connected. From what I have read, this is due to EU health & safety recommendations, and is only seen on devices…

Stuart
- 36,683
- 19
- 101
- 139
1
vote
1 answer
How can I capture the AudioDestinationNode value when headphones are plugged in with Web Audio API?
I've been looking for a solution that detects the difference between the default speakers and headphones on a computer. I understand that with Web Audio API, AudioDestinationNode represents the output device, where users hear audio.
My question (to…

doyinue
- 23
- 2
1
vote
1 answer
Call recording with earphones
I created Voice call recording app which works great with Phone's microphone and earpiece. But it's not able to record audio when earphones are inserted. I tried changing AudioSource to AudioSource.DEFAULT thinking that it automatically takes…

Seshu Vinay
- 13,560
- 9
- 60
- 109
1
vote
2 answers
Is it possible to control headphone jack's output voltage on Android?
I am playing with some sensors which are made to be used on cell phone's headphone jack. Using sensors on iPhone or specific Android phones (Galaxy III for example) is no problem, but on other Android phones (for example Nexus S, Nexus, ...) output…

M.V.
- 1,662
- 8
- 32
- 55
1
vote
2 answers
Record headphone output : Android
I have to record whatever user listening through headphones. Say for example, user listening song, talking to someone (in call) etc. Without headphones I was able to record but with headphones I ran out of luck. I tried this link with all possible…

Braj
- 2,164
- 2
- 26
- 44
1
vote
1 answer
iDevice native headphones button function change
I have and app with AVAudioPlayer. And I want to change headphone button functions from "volume up / volume down" to "play-pause / forward". Is it possible?
Looking for any help

iWheelBuy
- 5,470
- 2
- 37
- 71
1
vote
1 answer
Diverting phone ringing to earphones
When there is a phone call and if im using my earphones,i want the sound of the ringtone to go through the earphones. In this app setSpeakerphoneon() is not working, any other ideas to stream the ringing through earphones when a call comes?
P.S:im…

android_begginer94
- 19
- 1
- 2
1
vote
2 answers
headphone plug-in plug-out event when audio route doesn't change - iOS
I'm working on iPad.
I would like to detect when user plug-out headphone. First I used a listener on the property kAudioSessionProperty_AudioRouteChange. So all was working well until I've decided to add a button to switch to speakers when headphone…

Cyril
- 31
- 1
- 6
0
votes
1 answer
How to pause MediaPlayer when ear phone buttons pressed?
I am implementing media player and trying to pause/start the player.But the broadcast reciever is called repeatedly,when i start the ear-phone button press.I am using the below code . Can anybody help me.
EDIT:
I have initializing the receiver…

Ramesh Akula
- 5,720
- 4
- 43
- 67
0
votes
0 answers
Raw microphone data from in-ear mic of bluetooth headphones?
I'm looking for a way to access the raw microphone data of in-ear microphones in bluetooth in-ear headsets (say the Pixel Buds series). Does anybody know if that is possible, or if there are any other devices where this where the raw data of all…

RubenB
- 1
0
votes
1 answer
Kivy Android App Crashes Whenever Headphones Are Plugged In
I was tring to test my app while talking on the phone, but it just kept crashing. As soon as I got off the phone, the app started working normally. Turns out my app crashes whenever I have my C Type headphones plugged in.
I'm using a Samsung Galaxy…

kschepps
- 9
- 2
0
votes
0 answers
I am not getting OnDeviceRemoved() or OnDeviceAdded() callbacks when add/remove an AudioEndpoint
`I am using the IMMNotificationClient interface and have registered for RegisterEndpointNotificationCallback (I am using the code samples from Device Events from msdn library). When I remove/add an audio endpoint, I do get OnDeviceStateChanged,…

Rajani Bawgi
- 11
- 1
0
votes
0 answers
Bluetooth headphone has generate string of data that doesn't represent the model name
Using power beat pro blue tooth headset but there seems to be a glitch as shown in the picture. Anyone here have a solution or an understanding as to why this is happening
I tried to disconnect and reconnect the device, as well as trying to forget…

Grasshopper
- 13
- 3