add a pure virtual FileSource::close() method so that FileSource::set_path() can ensure we no longer have a handle open
This commit is contained in:
@@ -84,6 +84,15 @@ SrcFileSource::~SrcFileSource ()
|
||||
delete [] _src_buffer;
|
||||
}
|
||||
|
||||
void
|
||||
SrcFileSource::close ()
|
||||
{
|
||||
boost::shared_ptr<FileSource> fs = boost::dynamic_pointer_cast<FileSource> (_source);
|
||||
if (fs) {
|
||||
fs->close ();
|
||||
}
|
||||
}
|
||||
|
||||
framecnt_t
|
||||
SrcFileSource::read_unlocked (Sample *dst, framepos_t start, framecnt_t cnt) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user