Switch to unified view

a/mpd2src/audioreader.h b/mpd2src/audioreader.h
...
...
31
    virtual bool open() = 0;
31
    virtual bool open() = 0;
32
32
33
    virtual bool isblocking() {return false;}
33
    virtual bool isblocking() {return false;}
34
    
34
    
35
    // Get pointer to data buffer of specified offset and size.
35
    // Get pointer to data buffer of specified offset and size.
36
    virtual const unsigned char *data(size_t cnt) = 0;
36
    virtual const unsigned char *data(size_t cnt, ssize_t &nread) = 0;
37
37
38
    // Return, compute if necessary, misc audio stream parameters:
38
    // Return, compute if necessary, misc audio stream parameters:
39
    virtual unsigned int numChannels() {
39
    virtual unsigned int numChannels() {
40
        return m_numChannels;
40
        return m_numChannels;
41
    }
41
    }