示例#1
0
bool AudioZeroDataReader::open( QIODevice::OpenMode mode )
{
    if( !mode.testFlag( QIODevice::WriteOnly ) ) {
        return QIODevice::open( mode );
    }
    else {
        return false;
    }
}
示例#2
0
bool AudioCdTrackReader::open( QIODevice::OpenMode mode )
{
    if( !mode.testFlag( QIODevice::WriteOnly ) &&
        d->initParanoia() ) {
        return QIODevice::open( mode );
    }
    else {
        return false;
    }
}