aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmmpui')
-rw-r--r--src/qmmpui/mediaplayer.cpp6
-rw-r--r--src/qmmpui/mediaplayer.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/qmmpui/mediaplayer.cpp b/src/qmmpui/mediaplayer.cpp
index 35f52e6e0..bf6648470 100644
--- a/src/qmmpui/mediaplayer.cpp
+++ b/src/qmmpui/mediaplayer.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2008-2009 by Ilya Kotov *
+ * Copyright (C) 2008-2010 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -72,7 +72,7 @@ bool MediaPlayer::isRepeatable() const
return m_repeat;
}
-void MediaPlayer::play()
+void MediaPlayer::play(qint64 offset)
{
m_pl_manager->currentPlayList()->doCurrentVisibleRequest();
if (m_core->state() == Qmmp::Paused)
@@ -96,7 +96,7 @@ void MediaPlayer::play()
return;
}
- if (!m_core->play(s))
+ if (!m_core->play(s, FALSE, offset))
{
//find out the reason why playback failed
switch ((int) m_core->state())
diff --git a/src/qmmpui/mediaplayer.h b/src/qmmpui/mediaplayer.h
index afecfac1c..b345b6df4 100644
--- a/src/qmmpui/mediaplayer.h
+++ b/src/qmmpui/mediaplayer.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2008-2009 by Ilya Kotov *
+ * Copyright (C) 2008-2010 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -64,7 +64,7 @@ public slots:
/*!
* Starts playback.
*/
- void play();
+ void play(qint64 offset = -1);
/*!
* Stops playback.
*/