* Note that the data read is output to the outputs, as well as read into the context
* \return number of frames read
*/
- nframes_t read (ProcessContext<T> & context)
+ framecnt_t read (ProcessContext<T> & context)
{
if (throw_level (ThrowStrict) && context.channels() != channels() ) {
throw Exception (*this, boost::str (boost::format
% context.channels() % channels()));
}
- nframes_t frames_read = SndfileHandle::read (context.data(), context.frames());
+ framecnt_t const frames_read = SndfileHandle::read (context.data(), context.frames());
ProcessContext<T> c_out = context.beginning (frames_read);
if (frames_read < context.frames()) {
c_out.set_flag (ProcessContext<T>::EndOfInput);
}
- output (c_out);
+ this->output (c_out);
return frames_read;
}
} // namespace
-#endif // AUDIOGRAPHER_SNDFILE_READER_H
\ No newline at end of file
+#endif // AUDIOGRAPHER_SNDFILE_READER_H