-Improved JGE texture loading, improved Wagic cache
- Jge small changes in mp3 methods
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-04-09 13:31:07 +00:00
parent 4a8aaf5187
commit 387c75e16d
14 changed files with 177 additions and 92 deletions

View File

@@ -196,7 +196,7 @@ bool JMP3::update() {
// Output
m_samplesPlayed += sceAudioSRCOutputBlocking(m_volume, tempBuffer);
m_playTime = (m_samplingRate > 0) ? (m_samplesPlayed / m_samplingRate) : 0;
m_playTime = (m_samplingRate > 0) ? (m_samplesPlayed / (m_samplingRate/1000)) : 0;
}
}
@@ -225,9 +225,9 @@ int JMP3::playTime() const {
}
int JMP3::playTimeMinutes() {
return m_playTime / 60;
return (m_playTime / 1000) / 60;
}
int JMP3::playTimeSeconds() {
return m_playTime % 60;
return (m_playTime/1000) % 60;
}