diff --git a/ffmpegaudio.cc b/ffmpegaudio.cc index 04c35d85..c1d9aaac 100644 --- a/ffmpegaudio.cc +++ b/ffmpegaudio.cc @@ -61,10 +61,10 @@ AudioPlayer::~AudioPlayer() ao_shutdown(); } -void AudioPlayer::playMemory( const void * ptr, int size ) +void AudioPlayer::playMemory( const char * ptr, int size ) { emit cancelPlaying( false ); - QByteArray audioData( ( char * )ptr, size ); + QByteArray audioData( ptr, size ); DecoderThread * thread = new DecoderThread( audioData, this ); connect( thread, SIGNAL( error( QString ) ), this, SIGNAL( error( QString ) ) ); diff --git a/ffmpegaudio.hh b/ffmpegaudio.hh index 866edf8d..dd10cd4b 100644 --- a/ffmpegaudio.hh +++ b/ffmpegaudio.hh @@ -18,7 +18,7 @@ class AudioPlayer : public QObject public: static AudioPlayer & instance(); - void playMemory( const void * ptr, int size ); + void playMemory( const char * ptr, int size ); void stop(); signals: