File tree 1 file changed +3
-12
lines changed
jme3-examples/src/main/java/jme3test/audio
1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -206,6 +206,8 @@ public InputStream openStream() {
206
206
}
207
207
208
208
musicSource = new AudioNode (musicData , key );
209
+ // A positional AudioNode would prohibit stereo sound!
210
+ musicSource .setPositional (false );
209
211
musicLength = musicData .getDuration ();
210
212
updateTime ();
211
213
}
@@ -264,18 +266,7 @@ private void btnFFActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:e
264
266
}//GEN-LAST:event_btnFFActionPerformed
265
267
266
268
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!
279
270
}//GEN-LAST:event_sldBarStateChanged
280
271
281
272
/**
You can’t perform that action at this time.
0 commit comments