Logo Search packages:      
Sourcecode: phonon version File versions  Download package

void Phonon::StreamInterface::needData (  ) 

Call this function to tell the AbstractMediaStream that you need more data. The data will arrive through writeData. Don't rely on writeData getting called from needData, though some AbstractMediaStream implementations might do so.

Depending on the buffering you need you either treat needData as a replacement for a read call like QIODevice::read, or you start calling needData whenever your buffer reaches a certain lower threshold.

Definition at line 72 of file streaminterface.cpp.

References Phonon::MediaSource::Stream.

    if (d->mediaSource.type() == MediaSource::Stream) {

Generated by  Doxygen 1.6.0   Back to index