Lines Matching refs:sndfile
33 SNDFILE *sndfile; member in K3bLibsndfileDecoder::Private
73 d->sndfile = sf_open (QFile::encodeName(filename()), SFM_READ, &d->sndinfo); in openFile()
74 if ( !d->sndfile ) { in openFile()
75 qDebug() << "(K3bLibsndfileDecoder::openLibsndfileFile) : " << sf_strerror(d->sndfile); in openFile()
81 sf_command (d->sndfile, SFC_GET_FORMAT_INFO, &d->format_info, sizeof (SF_FORMAT_INFO)) ; in openFile()
106 addMetaInfo( META_TITLE, sf_get_string(d->sndfile, SF_STR_TITLE) ); in analyseFileInternal()
107 addMetaInfo( META_ARTIST, sf_get_string(d->sndfile, SF_STR_ARTIST) ); in analyseFileInternal()
108 addMetaInfo( META_COMMENT, sf_get_string(d->sndfile, SF_STR_COMMENT) ); in analyseFileInternal()
144 int read = (int) sf_read_float(d->sndfile, d->buffer,d->bufferSize) ; in decodeInternal()
164 return ( sf_seek( d->sndfile, pos.pcmSamples(), SEEK_SET ) == 0 ); in seekInternal()
174 sf_close( d->sndfile ); in cleanup()
205 SNDFILE* sndfile = sf_open (QFile::encodeName(url.toLocalFile()), SFM_READ, &infos); in canDecode() local
208 if ( !sndfile ) { in canDecode()
209 qDebug() << "(K3bLibsndfileDecoder) " << sf_strerror(sndfile); in canDecode()
217 sf_command (sndfile, SFC_GET_FORMAT_INFO, &format_info, sizeof (format_info)) ; in canDecode()
220 sf_close( sndfile ); in canDecode()
225 sf_close( sndfile ); in canDecode()