anongit / mytracks

Automatically exported from code.google.com/p/mytracks
0 stars 0 forks source link

Fix volume control in the app #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Right now, using the phone's volume buttons will control the ringer volume,
not the text-to-speech volume. We should change it to the TTS volume
(possibly separately from media volume so we can lower the volume of music
before saying announcements).

Original issue reported on code.google.com by rdama...@google.com on 18 May 2010 at 6:04

GoogleCodeExporter commented 9 years ago
Charles Chen said this is the magic command:
setVolumeControlStream(AudioManager.STREAM_MUSIC);

Original comment by sandordo...@google.com on 22 Jul 2010 at 2:45

GoogleCodeExporter commented 9 years ago
It makes no sense - AudioManager.STREAM_MUSIC has the same value as 
TextToSpeech.Engine.DEFAULT_STREAM - but ok, I'll figure it out.

Original comment by rdama...@google.com on 31 Aug 2010 at 8:42

GoogleCodeExporter commented 9 years ago
I always had this loud volume issue on my Sprint HTC Hero before I rooted it 
and started using cyanogenmod-6.0.0-RC1.  It's been perfect ever since.  Maybe 
it's a permissions problem?

Original comment by kennerly...@gmail.com on 31 Aug 2010 at 8:47

GoogleCodeExporter commented 9 years ago
I think that's unrelated - what we're talking about here is just making sure 
the volume buttons adjust the right volume (the volume for announcements) when 
you're in My Tracks.

Original comment by rdama...@google.com on 31 Aug 2010 at 8:59

GoogleCodeExporter commented 9 years ago
I used to have no control over how incredibly LOUD the MyTracks announcements 
were on my HTC Hero unless I turned down the media volume.   This was awkward, 
because while listening to media at a comfortable volume, the MyTracks 
announcement would come blaring through.  So in order to make it bearable, I 
had to turn my media down to almost inaudible.  That is no longer the case, 
since running the Cyanogemod.
Is this not related?

Original comment by kennerly...@gmail.com on 31 Aug 2010 at 9:08

GoogleCodeExporter commented 9 years ago
Ok, apparently the volume control needs to be added to each activity where we 
want it to work, even the children of the TabActivity :(

Original comment by rdama...@google.com on 31 Aug 2010 at 9:24

GoogleCodeExporter commented 9 years ago
I've changed it for the 4 main activities (map, stats, chart, settings) - do 
you think that's enough?

Sandor, please review at 
http://code.google.com/r/rdamazio-mytracks-staging1/source/detail?r=05697baf484d
c90cf35b214588b6249aa9201c2e

Original comment by rdama...@google.com on 31 Aug 2010 at 9:56

GoogleCodeExporter commented 9 years ago

Original comment by rdama...@google.com on 1 Sep 2010 at 3:05