Skip to content

Commit 51d0388

Browse files
committed
solve issue #1544 (diagnostic messages from TestMusicPlayer) (#1547)
1 parent 8989a75 commit 51d0388

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

jme3-examples/src/main/java/jme3test/audio/TestMusicPlayer.java

+3-12
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ public InputStream openStream() {
206206
}
207207

208208
musicSource = new AudioNode(musicData, key);
209+
// A positional AudioNode would prohibit stereo sound!
210+
musicSource.setPositional(false);
209211
musicLength = musicData.getDuration();
210212
updateTime();
211213
}
@@ -264,18 +266,7 @@ private void btnFFActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:e
264266
}//GEN-LAST:event_btnFFActionPerformed
265267

266268
private void sldBarStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_sldBarStateChanged
267-
if (musicSource != null && !sldBar.getValueIsAdjusting()){
268-
curTime = sldBar.getValue() / 100f;
269-
if (curTime < 0)
270-
curTime = 0;
271-
272-
musicSource.setTimeOffset(curTime);
273-
// if (musicSource.getStatus() == Status.Playing){
274-
// musicSource.stop();
275-
// musicSource.play();
276-
// }
277-
updateTime();
278-
}
269+
// do nothing: OGG/Vorbis supports seeking, but only for time = 0!
279270
}//GEN-LAST:event_sldBarStateChanged
280271

281272
/**

0 commit comments

Comments
 (0)