1
0
Fork 0
forked from len0rd/rockbox

Show/hide notification area icon when starting/stopping playback.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27694 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2010-08-04 14:34:26 +00:00
parent 04dc00b7ca
commit 546cd48504
2 changed files with 43 additions and 16 deletions

View file

@ -56,9 +56,7 @@ public class RockboxPCM extends AudioTrack
LOG("setNotificationMarkerPosition Error");
setPlaybackPositionUpdateListener(new PCMListener(buf_len*2));
}
}
}
int bytes2frames(int bytes) {
/* 1 sample is 2 bytes, 2 samples are 1 frame */
@ -83,11 +81,19 @@ public class RockboxPCM extends AudioTrack
LOG("Writing silence");
/* fill with silence */
write(raw_data, 0, raw_data.length);
RockboxService.startForeground();
}
play();
}
LOG("play_pause() return");
}
@Override
public void stop() throws IllegalStateException
{
super.stop();
RockboxService.stopForeground();
}
@SuppressWarnings("unused")
private void set_volume(int volume)