forked from len0rd/rockbox
android: clean-up and some refactoring in java code.
Change-Id: I78cadb0b71bcb65a55006bf52cfe3e6cda891a38
This commit is contained in:
parent
82337dda6a
commit
c8317eb596
6 changed files with 65 additions and 77 deletions
|
@ -69,7 +69,7 @@ public class RockboxPCM extends AudioTrack
|
|||
Arrays.fill(raw_data, (byte) 0);
|
||||
|
||||
/* find cleaner way to get context? */
|
||||
rbservice = RockboxService.get_instance();
|
||||
rbservice = RockboxService.getInstance();
|
||||
audiomanager =
|
||||
(AudioManager) rbservice.getSystemService(Context.AUDIO_SERVICE);
|
||||
maxstreamvolume = audiomanager.getStreamMaxVolume(streamtype);
|
||||
|
@ -147,7 +147,7 @@ public class RockboxPCM extends AudioTrack
|
|||
|
||||
private void play_pause(boolean pause)
|
||||
{
|
||||
RockboxService service = RockboxService.get_instance();
|
||||
RockboxService service = RockboxService.getInstance();
|
||||
if (pause)
|
||||
{
|
||||
Intent widgetUpdate = new Intent("org.rockbox.UpdateState");
|
||||
|
@ -192,8 +192,8 @@ public class RockboxPCM extends AudioTrack
|
|||
|
||||
Intent widgetUpdate = new Intent("org.rockbox.UpdateState");
|
||||
widgetUpdate.putExtra("state", "stop");
|
||||
RockboxService.get_instance().sendBroadcast(widgetUpdate);
|
||||
RockboxService.get_instance().stopForeground();
|
||||
RockboxService.getInstance().sendBroadcast(widgetUpdate);
|
||||
RockboxService.getInstance().stopForeground();
|
||||
}
|
||||
|
||||
public int setStereoVolume(float leftVolume, float rightVolume)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue