Switch to unified view

a/mpd2src/wavreader.cpp b/mpd2src/wavreader.cpp
...
...
51
        return false;
51
        return false;
52
    }
52
    }
53
    return true;
53
    return true;
54
}
54
}
55
55
56
const unsigned char *WavReader::data(size_t packetbytes)
56
const unsigned char *WavReader::data(size_t packetbytes, ssize_t &nread)
57
{
57
{
58
    if (m_index + packetbytes <= totalBytes()) {
58
    if (m_index + packetbytes <= totalBytes()) {
59
        m_index += packetbytes;
59
        m_index += packetbytes;
60
        //cerr << "WavReader::data: " << packetbytes << " at " <<
60
        //cerr << "WavReader::data: " << packetbytes << " at " <<
61
        //m_index - packetbytes << endl;
61
        //m_index - packetbytes << endl;