Sunee,

If you could send me a part of your code, this would be helpful,
especially when try to playback your audio.

I am setting the speakerphone after obtaining a AudioManager instance.

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Sep 14, 7:37 am, sunee <[email protected]> wrote:
> I tried to invoke setSpeakerphoneOn(), but not able to make out the
> proper place.
> Could you let me know where can I invoke the provided speaker methods,
>         .....
>         mAudioManager.setSpeakerphoneOn(true);
>
> Kindly provide me pointers like file name or funtion name.
>
> Thanks
> Sunee
>
> On Sep 12, 7:48 am, "Roman ( T-Mobile USA)" <roman.baumgaert...@t-
>
> mobile.com> wrote:
> > For the headset you have to find out whether a headset is connected
> > over USB (if you use a G1 or myTouch) that's why you can find the
> > HeadsetObserver class in the framework.
>
> > In case of thespeakeran Observer is not required because it is an
> > internal hardware component which you cannotenable/disable or unplug
> > as a device.
>
> > With setRouting you can set a more complex audio routing using a bit
> > mask which is not required to route your audio signal to thespeaker.
>
> > --
> > Roman Baumgaertner
> > Sr. SW Engineer-OSDC
> > ·T· · ·Mobile· stick together
> > The views, opinions and statements in this email are those of the
> > author solely in their individual capacity, and do not necessarily
> > represent those of T-Mobile USA, Inc.
>
> > On Sep 10, 11:53 pm, Pras <[email protected]> wrote:
>
> > > Hi,
>
> > > Thanks for the info.
>
> > > I am also facing this similar problem and am new to Java. In the code
> > > base i found that we have the HeadsetObserver.java file but there is
> > > no similarSpeakerobserver java class. Kindly advice if we need to
> > > create a similar java class forSpeakeror where we can invoke the
> > > setSpeakerphoneOn method.
>
> > > Another doubt is that in the AudioFlinger.cpp, we have
> > > setRouting(AudioSystem::MODE_NORMAL, AudioSystem::ROUTE_SPEAKER,
> > > AudioSystem::ROUTE_ALL);
> > > So wouldn't it route tospeakerby default.
>
> > > Kindly let me know your comments.
>
> > > -Pras
>
> > > On Sep 10, 11:46 pm, "Roman ( T-Mobile USA)" <roman.baumgaert...@t-
>
> > > mobile.com> wrote:
> > > > You want to try the following
>
> > > >         AudioManager mAudioManager = (AudioManager)
> > > > mContext.getSystemService(Context.AUDIO_SERVICE);
> > > >         mAudioManager.setMode(AudioManager.MODE_NORMAL);
> > > >         .....
> > > >         mAudioManager.setSpeakerphoneOn(true);
>
> > > > --
> > > > Roman Baumgaertner
> > > > Sr. SW Engineer-OSDC
> > > > ·T· · ·Mobile· stick together
> > > > The views, opinions and statements in this email are those of the
> > > > author solely in their individual capacity, and do not necessarily
> > > > represent those of T-Mobile USA, Inc.
>
> > > > On Sep 10, 5:38 am, sunee <[email protected]> wrote:
>
> > > > > I am working onandroidfor omap zoom2.
> > > > > omapkernel - 2.6.27
> > > > >android   - RLS25.6
>
> > > > > Theaudioplayback seems to happen (progress bar updation happens) but
> > > > > noAudiois heard.
> > > > > There is no headphone connected and also the sound level is at
> > > > > maximum.
>
> > > > > Is speakerroutingenabled by default or do i have toenableit
> > > > > explicitly?
> > > > > Kindly help me.
>
> > > > > Thanks,
> > > > > Sunee- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to