mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-17 19:37:09 +02:00
no more boost
This commit is contained in:
@@ -1339,7 +1339,7 @@ AudioEngine::setCurrentTrackPlaylist( const playlistinterface_ptr& playlist )
|
||||
|
||||
|
||||
void
|
||||
AudioEngine::setDspCallback( boost::function< void( int state, int frameNumber, float* samples, int nb_channels, int nb_samples ) > cb )
|
||||
AudioEngine::setDspCallback( std::function< void( int state, int frameNumber, float* samples, int nb_channels, int nb_samples ) > cb )
|
||||
{
|
||||
Q_D( AudioEngine );
|
||||
|
||||
|
@@ -24,7 +24,7 @@
|
||||
#include "../Typedefs.h"
|
||||
|
||||
#include <QStringList>
|
||||
#include <boost/function.hpp>
|
||||
#include <functional>
|
||||
|
||||
#include "DllMacro.h"
|
||||
|
||||
@@ -110,7 +110,7 @@ public:
|
||||
*/
|
||||
qint64 currentTrackTotalTime() const;
|
||||
|
||||
void setDspCallback( boost::function< void( int state, int frameNumber, float* samples, int nb_channels, int nb_samples ) > cb );
|
||||
void setDspCallback( std::function< void( int state, int frameNumber, float* samples, int nb_channels, int nb_samples ) > cb );
|
||||
|
||||
public slots:
|
||||
void playPause();
|
||||
|
@@ -28,9 +28,6 @@
|
||||
#include <QFile>
|
||||
#include <QDir>
|
||||
|
||||
#include <boost/function.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
|
||||
#include <vlc/libvlc.h>
|
||||
#include <vlc/libvlc_media.h>
|
||||
#include <vlc/libvlc_media_player.h>
|
||||
@@ -502,7 +499,7 @@ AudioOutput::s_dspCallback( int frameNumber, float* samples, int nb_channels, in
|
||||
|
||||
|
||||
void
|
||||
AudioOutput::setDspCallback( boost::function< void( int, int, float*, int, int ) > cb )
|
||||
AudioOutput::setDspCallback( std::function< void( int, int, float*, int, int ) > cb )
|
||||
{
|
||||
dspPluginCallback = cb;
|
||||
}
|
||||
|
@@ -26,7 +26,7 @@
|
||||
#include "DllMacro.h"
|
||||
#include "utils/MediaStream.h"
|
||||
|
||||
#include <boost/function.hpp>
|
||||
#include <functional>
|
||||
|
||||
struct libvlc_instance_t;
|
||||
struct libvlc_media_player_t;
|
||||
@@ -62,7 +62,7 @@ public:
|
||||
qint64 totalTime();
|
||||
void setAutoDelete ( bool ad );
|
||||
|
||||
void setDspCallback( boost::function< void( int, int, float*, int, int ) > cb );
|
||||
void setDspCallback( std::function< void( int, int, float*, int, int ) > cb );
|
||||
|
||||
static AudioOutput* instance();
|
||||
|
||||
@@ -93,7 +93,7 @@ private:
|
||||
bool m_aboutToFinish;
|
||||
bool m_justSeeked;
|
||||
|
||||
boost::function< void( int state, int frameNumber, float* samples, int nb_channels, int nb_samples ) > dspPluginCallback;
|
||||
std::function< void( int state, int frameNumber, float* samples, int nb_channels, int nb_samples ) > dspPluginCallback;
|
||||
|
||||
libvlc_instance_t* vlcInstance;
|
||||
libvlc_media_player_t* vlcPlayer;
|
||||
|
Reference in New Issue
Block a user