Questions tagged [headphones]

146 questions
8
votes
2 answers

How to detect whether a headphone is inserted or removed in JavaScript?

Is there any event in JavaScript, I can listen to in browser, through which we can know whether headphones are inserted or removed? I assume if we are able to iterate over devices of audio output in JavaScript, is there a possibility, we can deduct…
sarathprasath
  • 589
  • 1
  • 8
  • 20
8
votes
1 answer

Audio input to android smartphone through headphone jack?

I'm trying to pass audio into an android phone through the headphone jack from an external player. I am reasonably sure it can be done for two reasons: 1) The square card reader works by sending its information through the headphone jack, so it…
user1988170
  • 91
  • 1
  • 1
  • 3
7
votes
3 answers

How to detect something in headphone jack on a Mac?

Is there a way to detect if something is plugged into the headphone jack of a Mac using c or objective-c? Thanks
David
  • 14,205
  • 20
  • 97
  • 144
7
votes
1 answer

iOS: Is it possible to send audio out both headphones and speakers at the same time?

We're looking to send some serial data out from the headphone jack, but would like to still be able to play audio from the speakers. Is it possible to send output to both? If so, is it possible to send different audio to each?
user1218464
  • 1,011
  • 2
  • 12
  • 22
6
votes
1 answer

Detect if headphones are plugged in or not via VBScript

Is any a way to detect if headphones are plugged in or not via VBScript? This link doesnt help Switching current active sound device using VBScript?
NoWar
  • 36,338
  • 80
  • 323
  • 498
5
votes
2 answers

Detect headphones in Windows

I'm trying to detect if the headphones are plugged in on Windows. I've already tried DirectSound and the NAudio library and have not had any success. Does anyone have any suggestions? NOTE: this question is a duplicate of this question, but the…
Izzy Rodriguez
  • 2,097
  • 3
  • 21
  • 32
5
votes
0 answers

Detect headphone buttons on swift?

Need to be able to detect button keypress on headphone volume rocker (the +, -, and pause/middle button) What is the best way to do this? Any help appreciated.
4
votes
3 answers

Ubuntu 16.04 Bluetooth Headphones - Failed to change profile to a2dp_sink

I have Bluetooth headphones Sony WH-1000XM3 and Ubuntu 16.04. I have successfully Paired the device but cannot change profile to a2dp. No matter what I did it keeps failing with the message "Failed to change profile to a2dp_sink". I have…
ge7600
  • 401
  • 3
  • 8
4
votes
1 answer

How to write linux app/library to interact with Samsung Galaxy Buds headphones?

I'd like to write some library/app to interact with Galaxy Buds. I assume that this would require me to somehow sniff packages it sends to my mobile telephone and get which corresponds to what command(volume/pause/play) and so on. And then write…
4
votes
2 answers

Android - play sound when device plugged in audio jack

I want to play audio file while I have a device plugged in audio jack (not necessary just headphones). If it helps I am only interested in Android version 4.3 and above and I am willing to root the phone if necessary. Here is what I have tried so…
Koc
  • 232
  • 2
  • 12
4
votes
3 answers

How to detect unplugged headphone jack in WinRT?

Is there a way to get notified whenever a headphone jack is unplugged in a WinRT app? I want to be able to pause MediaElement playback when it happens to prevent the sound from leaking out through loudspeakers.
Ronny Gunawan
  • 43
  • 1
  • 6
4
votes
1 answer

How can I lower the MediaPlayer volume when headphones are plugged in?

Targeting Android 2.2. I need to check if the user is using speaker or headphones when listening to media. So far, the best I've found is the isWiredHeadsetOn method. Too bad it's been deprecated. Is there a better method to know if headphones are…
l33t
  • 18,692
  • 16
  • 103
  • 180
3
votes
1 answer

API's for plugging in non-audio related hardware?

Sorry if this a meaningless question or if it is repeated, but just of curiosity, I was searching for some API on iPhone development on plugging in non-audio related hardware, ex: Card reader or whatever through the 3.5mm headphone jack. I was…
cbenson
  • 41
  • 2
  • 6
3
votes
1 answer

Can you determine the specific type of device plugged into headphone jack of iphone/ipad/ipod?

I have noticed something interesting when working with an iPad and its headphone jack. I can change the head phone volume (using the volume buttons on the iPad) when I plug in my iPhone earbud headphones into the iPad. If I unplug the earbuds and…
Mike
  • 894
  • 12
  • 19
3
votes
1 answer

Can't get a notification when connecting an external accessory to the 3.5 mm headphones jack

I've been trying to get this to work for a while now. I've done everything they say in the documentation and still got nothing. This is the code in my app delegate that registers for local notifications: - (void) registerForLocalNotifications…
Shaul Amran
  • 45
  • 1
  • 5
1
2
3
9 10