--- a/mpd2src/audioreader.h
+++ b/mpd2src/audioreader.h
@@ -33,7 +33,7 @@
     virtual bool isblocking() {return false;}
     
     // Get pointer to data buffer of specified offset and size.
-    virtual const unsigned char *data(size_t cnt) = 0;
+    virtual const unsigned char *data(size_t cnt, ssize_t &nread) = 0;
 
     // Return, compute if necessary, misc audio stream parameters:
     virtual unsigned int numChannels() {