Skip to content

Commit ff64aa3

Browse files
committed
fixed casting error with cue and jump
1 parent 8e15ca8 commit ff64aa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/processing/sound/SoundFile.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public void jump(float time){
150150
this.stop();
151151
}
152152

153-
m_cue = (int)time * m_info[1];
153+
m_cue = (int)(time * m_info[1]);
154154

155155
if(m_loop == true) {
156156
if(this.channels() < 2){
@@ -171,7 +171,7 @@ else if(this.channels() == 2){
171171
}
172172

173173
public void cue(float time){
174-
m_cue = (int)time * m_info[1];
174+
m_cue = (int)(time * m_info[1]);
175175
}
176176

177177
private void set(){

0 commit comments

Comments
 (0)