File tree Expand file tree Collapse file tree
jme3-examples/src/main/java/jme3test/audio Expand file tree Collapse file tree Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments