| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -109,9 +109,25 @@ public void loop(float rate){ | |||
| 109 | 109 | m_rate=rate; | |
| 110 | 110 | this.loop(); | |
| 111 | 111 | } | |
| 112 | + | ||
| 113 | + public void jump(float time){ | ||
| 114 | + | ||
| 115 | + if(m_nodeId[0]>(-1)){ | ||
| 116 | + this.stop(); | ||
| 117 | + } | ||
| 118 | + | ||
| 119 | + m_cue = (int)time * m_info[1]; | ||
| 120 | + | ||
| 121 | + if(this.channels() < 2){ | ||
| 122 | + m_nodeId = methCla.soundFilePlayMono(m_rate, m_pos, m_amp, m_add, false, m_filePath, this.duration()*(1/m_rate), m_cue); | ||
| 123 | + } | ||
| 124 | + else if(this.channels() == 2){ | ||
| 125 | + m_nodeId = methCla.soundFilePlayMulti(m_rate, m_amp, m_add, false, m_filePath, this.duration()*(1/m_rate), m_cue); | ||
| 126 | + } | ||
| 127 | + } | ||
| 112 | 128 | ||
| 113 | - public void cue(int cue){ | ||
| 114 | - m_cue = (int)cue * m_info[1]; | ||
| 129 | + public void cue(float time){ | ||
| 130 | + m_cue = (int)time * m_info[1]; | ||
| 115 | 131 | } | |
| 116 | 132 | ||
| 117 | 133 | private void set(){ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments