diff options
Diffstat (limited to 'audio/mixxx/files/patch-src::enginebuffer.cpp')
-rw-r--r-- | audio/mixxx/files/patch-src::enginebuffer.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/audio/mixxx/files/patch-src::enginebuffer.cpp b/audio/mixxx/files/patch-src::enginebuffer.cpp new file mode 100644 index 000000000000..91e9856f3699 --- /dev/null +++ b/audio/mixxx/files/patch-src::enginebuffer.cpp @@ -0,0 +1,28 @@ +--- src/enginebuffer.cpp.orig Fri Jun 25 19:27:39 2004 ++++ src/enginebuffer.cpp Fri Jun 25 19:28:08 2004 +@@ -32,6 +32,7 @@ + #include "visual/visualchannel.h" + #include "mathstuff.h" + #include "player.h" ++#include "compat_round.h" + + + // Static default values for rate buttons +@@ -361,7 +362,7 @@ + //qDebug("seeking... %f",change); + + // Find new playpos +- double new_playpos = round(change*file_length_old); ++ double new_playpos = compat_round(change*file_length_old); + if (!even((int)new_playpos)) + new_playpos--; + if (new_playpos > file_length_old) +@@ -382,7 +383,7 @@ + // Set the cue point at the current play position: + void EngineBuffer::slotControlCueSet(double) + { +- double cue = max(0.,round(filepos_play-Player::getBufferSize())); ++ double cue = max(0.,compat_round(filepos_play-Player::getBufferSize())); + if (!even((int)cue)) + cue--; + cuePoint->set(cue); |