diff options
author | Taybin Rutkin <taybin@taybin.com> | 2007-01-05 04:24:23 +0000 |
---|---|---|
committer | Taybin Rutkin <taybin@taybin.com> | 2007-01-05 04:24:23 +0000 |
commit | d631a8d89fd0a4b72a84c415ca2bdb4c2ca99bbc (patch) | |
tree | 85bedee3c8a30a2aecb452cbf55be1b23ab09a52 /libs/ardour/audiofilesource.cc | |
parent | 143e8eba1dce4d8c68e01c786e2d51075d4a58e2 (diff) |
First pass of sfdb tag searching. Not functional, but very very close.
git-svn-id: svn://localhost/ardour2/trunk@1272 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audiofilesource.cc')
-rw-r--r-- | libs/ardour/audiofilesource.cc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libs/ardour/audiofilesource.cc b/libs/ardour/audiofilesource.cc index 53809c3c2f..1915957f3d 100644 --- a/libs/ardour/audiofilesource.cc +++ b/libs/ardour/audiofilesource.cc @@ -543,3 +543,26 @@ AudioFileSource::setup_peakfile () return 0; } } + +bool +AudioFileSource::safe_file_extension(string file) +{ + return !(file.rfind(".wav") == string::npos && + file.rfind(".aiff")== string::npos && + file.rfind(".aif") == string::npos && + file.rfind(".snd") == string::npos && + file.rfind(".au") == string::npos && + file.rfind(".raw") == string::npos && + file.rfind(".sf") == string::npos && + file.rfind(".cdr") == string::npos && + file.rfind(".smp") == string::npos && + file.rfind(".maud")== string::npos && + file.rfind(".vwe") == string::npos && + file.rfind(".paf") == string::npos && +#ifdef HAVE_COREAUDIO + file.rfind(".mp3") == string::npos && + file.rfind(".aac") == string::npos && + file.rfind(".mp4") == string::npos && +#endif // HAVE_COREAUDIO + file.rfind(".voc") == string::npos); +} |