Suggestion for Livewallpaper: controlling sound volume

  ... discussions about development with the GLES1 branch of AndEngine.

Suggestion for Livewallpaper: controlling sound volume

Postby androbro » Fri May 04, 2012 10:24 am

Please add support of controlling sound volume by hardware volume key in live wallpaper service.

I saw that only in BaseGameActivity.java that has support of controlling sound volume by hardware key by calling setVolumeControlStream:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.         private void applyEngineOptions(final EngineOptions pEngineOptions) {
  2.                 if(pEngineOptions.isFullscreen()) {
  3.                         ActivityUtils.requestFullscreen(this);
  4.                 }
  5.  
  6.                 if(pEngineOptions.needsMusic() || pEngineOptions.needsSound()) {
  7.                         this.setVolumeControlStream(AudioManager.STREAM_MUSIC);
  8.                 }
  9.        ...
  10.  
Parsed in 0.032 seconds, using GeSHi 1.0.8.4


But none in BaseLiveWallpaperService.java.

Same suggestion for andengine GLES2.
androbro
 
Posts: 23
Joined: Mon Apr 09, 2012 4:05 pm

Return to GLES1

Who is online

Users browsing this forum: Hiteshc and 14 guests