A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
Muting any audio which is currently playing.
Joined: Jan 30, 2010
Jan 20, 2011 05:18:28
The need is to mute or pause any song or radio playing on android device through an application.
My application basically pop ups the voice reminder on desired time.
So if I am listening some song and voice reminder pop ups. It should mute that song's sound and should play voice notification only.
No other audio should be running at that time.
I do play sometime with AudioManager it wrks little for me. Because it also mutes my voice notification also.
What I did so far is ...
audioManager.setStreamSolo(AudioManager.STREAM_VOICE_CALL, true); audioManager.setMode(AudioManager.MODE_IN_CALL); //Logic to play voice notification(Works PERFECT No problem at all) audioManager.setStreamSolo(AudioManager.STREAM_VOICE_CALL, false); audioManager.setMode(AudioManager.MODE_NORMAL);
Can anyone tell me where I am going wrong?
subject: Muting any audio which is currently playing.
Assignment 1.1: literals
Mute/Unmute audio using JMF
Sound Processing and DSP
Writing an audio file in internal memory
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014