DJI Phantom 2 Vision+ Review – XDA TV

The holidays will be here in no time, so why not start thinking about gifts now? Youll be ahead … more

Mozilla Ditches Google, Makes Yahoo Default Search Engine

Mozilla and Google have had a long-standing relationship of about 10 years. Google … more

Learn More About Linux with Linux Man Pages

Linux is quite a powerful and very configurable operating system. Thanks to some user-friendly … more

Detect, Avoid IMSI-Catcher Attacks with Android IMSI-Catcher Detector

Privacy is always an important topic, as well as a delicate one to … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Audio playback via the internal microphone

OP koljsch

7th March 2014, 01:01 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
7 posts
Join Date:Joined: Oct 2009
How can I play a wav file from the speaker that is used during a call?
Seen that this is possible through the built-in functions for VoIP, but did not understand how to implement this.
Thanks in advance!
8th March 2014, 04:47 AM   |  #2  
Recognized Developer
Flag Seattle
Thanks Meter: 2,763
 
5,810 posts
Join Date:Joined: Jan 2011
More
... that's the headset speaker, not the microphone. Microphones are audio *input* devices. OK, now that we're clear on that...

Please remember to search before posting. Also remember to post in the correct section. This is a question; it belongs in Q&A. If you were offering an app or library or hack of some kind, you would post it here.

To attempt to answer the question... looks like you either need to use
Code:
Windows.Phone.Media.Devices.AudioRoutingManager.GetDefault().SetAudioEndpoint(Windows.Phone.Media.Devices.AudioRoutingEndpoint.Earpiece)
if you're working in managed code, or use GetDefaultAudioRenderId and specify the value Communications from the AudioDeviceRole enum. Note that doing this may require that your app declare the ID_CAP_VOIP capability.
The Following User Says Thank You to GoodDayToDie For This Useful Post: [ View ]
8th March 2014, 02:19 PM   |  #3  
OP Junior Member
Thanks Meter: 0
 
7 posts
Join Date:Joined: Oct 2009
Thumbs up
Thank you! Thank you so much! I've been looking for an answer to this question! Once again, thank you!
8th March 2014, 03:28 PM   |  #4  
OP Junior Member
Thanks Meter: 0
 
7 posts
Join Date:Joined: Oct 2009
This code throws an exception 'E_ACCESDENIED'. As I understand it can be used only during a VoIP call. Whether it can be realized without the active VoIP call?
Last edited by koljsch; 8th March 2014 at 03:45 PM.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes