Reputation: 126
I wasn't sure if this questions belongs here, but I'm completely new to this topic so hopefully you can help me out.
I have some kind of hardware which will be connected to my windows phone (wp7/wp8) through the audio jack. It sends some data in an audio format. I would like to retrieve this data through code. How can I do this?
Any source code or samples would be appreciated.
Upvotes: 2
Views: 357
Reputation: 1827
I wanted to post an answer so I could elaborate on my comment.
The problem with what you're trying to do is that the jack on Windows phones is an output jack. I haven't seen any that support microphone input. This means the jack is meant to generate a signal, but never to receive one. That means that you would never be able to attach a device and send audio data into the phone through that jack. It's completely missing any hardware that would allow you to interpret what you send into it, and honestly you risk frying the jack or worse, the phone itself.
Perhaps the best course of action would be to look at different ways to push that audio data into the phone. I can't really guide you on that because it's a very open course of action that depends on your specific needs.
Upvotes: 2