MCPcopy Create free account
hub / github.com/demoth/jake2 / pause

Method pause

client/src/main/java/jake2/client/MP3.java:149–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147 }
148
149 public void pause() {
150 if (ispaused == true || isplaying == false || isinitialized == false)
151 return;
152 try {
153 currentpos = fis.available();
154 } catch (IOException e) {
155 Com.DPrintf("MP3 player pause() fis.available() failed\n");
156 iserror = true;
157 }
158
159 ispaused = true;
160 player.close();
161 Com.DPrintf("MP3 player is paused.\n");
162 }
163
164 public void resume() {
165 if (ispaused == false || isplaying == false || isinitialized == false)

Callers 1

PauseMethod · 0.80

Calls 1

DPrintfMethod · 0.95

Tested by

no test coverage detected