mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 12:16:30 +01:00
Fix mixed usage of tabs and spaces for indentation in ardour/importable_source.h
git-svn-id: svn://localhost/ardour2/trunk@2666 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
3bf4a04d94
commit
4076f7714a
1 changed files with 13 additions and 13 deletions
|
|
@ -26,25 +26,25 @@
|
||||||
namespace ARDOUR {
|
namespace ARDOUR {
|
||||||
|
|
||||||
class ImportableSource {
|
class ImportableSource {
|
||||||
public:
|
public:
|
||||||
ImportableSource (SNDFILE* sf, SF_INFO* info) : in (sf), sf_info (info) {}
|
ImportableSource (SNDFILE* sf, SF_INFO* info) : in (sf), sf_info (info) {}
|
||||||
virtual ~ImportableSource() {}
|
virtual ~ImportableSource() {}
|
||||||
|
|
||||||
virtual nframes_t read (Sample* buffer, nframes_t nframes) {
|
virtual nframes_t read (Sample* buffer, nframes_t nframes) {
|
||||||
nframes_t per_channel = nframes / sf_info->channels;
|
nframes_t per_channel = nframes / sf_info->channels;
|
||||||
per_channel = sf_readf_float (in, buffer, per_channel);
|
per_channel = sf_readf_float (in, buffer, per_channel);
|
||||||
return per_channel * sf_info->channels;
|
return per_channel * sf_info->channels;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual float ratio() const { return 1.0f; }
|
virtual float ratio() const { return 1.0f; }
|
||||||
|
|
||||||
uint channels() const { return sf_info->channels; }
|
uint channels() const { return sf_info->channels; }
|
||||||
|
|
||||||
nframes_t length() const { return sf_info->frames; }
|
nframes_t length() const { return sf_info->frames; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
SNDFILE* in;
|
SNDFILE* in;
|
||||||
SF_INFO* sf_info;
|
SF_INFO* sf_info;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue