Subversion Repositories Projects

Rev

Rev 59 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59 Rev 70
Line 18... Line 18...
18
public class MKStatusVoice
18
public class MKStatusVoice
19
    implements Runnable,PlayerListener
19
    implements Runnable,PlayerListener
20
{
20
{
Line 21... Line 21...
21
 
21
 
-
 
22
    MKCommunicator mk=null;
22
    MKCommunicator mk=null;
23
    MKMiniCanvas canvas=null;
Line 23... Line 24...
23
    Player player;
24
    Player player;
24
   
25
   
25
    public final int PLAYERSTATE_IDLE=0;
26
    public final int PLAYERSTATE_IDLE=0;
Line 26... Line 27...
26
    public final int PLAYERSTATE_PLAYING=1;
27
    public final int PLAYERSTATE_PLAYING=1;
27
    public final int PLAYERSTATE_FIN=2;
28
    public final int PLAYERSTATE_FIN=2;
Line 28... Line 29...
28
 
29
 
29
    int act_player_state=PLAYERSTATE_IDLE;
30
    int act_player_state=PLAYERSTATE_IDLE;
30
    VolumeControl vc;
-
 
-
 
31
    VolumeControl vc;
31
 
32
 
32
    public MKStatusVoice(MKCommunicator _mk)
33
    public MKStatusVoice(MKCommunicator _mk,MKMiniCanvas _canvas)
33
    {
34
    {
Line 34... Line 35...
34
 
35
        canvas=_canvas;
Line 101... Line 102...
101
    {
102
    {
102
        while(true)
103
        while(true)
103
            {
104
            {
Line 104... Line 105...
104
 
105
 
105
               
106
               
106
                if (mk.connected&&(mk.debug_data.UBatt()!=-1)&&(!mk.force_disconnect))
107
                if (mk.connected&&(canvas.do_sound)&&(mk.debug_data.UBatt()!=-1)&&(!mk.force_disconnect))
Line 107... Line 108...
107
                    {
108
                    {
108
                        int ubatt=mk.debug_data.UBatt();
109
                        int ubatt=mk.debug_data.UBatt();