ports/audio/mixxx/files/patch-src::enginebuffer.cpp
Kirill Ponomarev 18dd10fbb7 Add mixxx 1.3.2,
Mixxx is software for DJ'ing. You can use wave based audio
files, Ogg Vorbis and MP3 files as audio input. Mixxx can be
controlled through the GUI and with external controllers
including MIDI devices, joysticks and more.

PR:		ports/68345
Submitted by:	Jean-Yves Lefort <jylefort@brutele.be>
2004-06-26 06:07:01 +00:00

28 lines
919 B
C++

--- 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);