diff options
Diffstat (limited to 'libs/ardour/export_formats.cc')
-rw-r--r-- | libs/ardour/export_formats.cc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libs/ardour/export_formats.cc b/libs/ardour/export_formats.cc index 7df54bad1c..f3c8f7197c 100644 --- a/libs/ardour/export_formats.cc +++ b/libs/ardour/export_formats.cc @@ -252,6 +252,17 @@ ExportFormatOggVorbis::ExportFormatOggVorbis () } bool +ExportFormatOggVorbis::check_system_compatibility () +{ + SF_INFO sf_info; + sf_info.channels = 2; + sf_info.samplerate = SR_44_1; + sf_info.format = F_Ogg | SF_Vorbis; + + return (sf_format_check (&sf_info) == SF_TRUE ? true : false); +} + +bool ExportFormatOggVorbis::set_compatibility_state (ExportFormatCompatibility const & compatibility) { bool compatible = compatibility.has_format (F_Ogg); @@ -285,6 +296,17 @@ ExportFormatFLAC::ExportFormatFLAC () : } bool +ExportFormatFLAC::check_system_compatibility () +{ + SF_INFO sf_info; + sf_info.channels = 2; + sf_info.samplerate = SR_44_1; + sf_info.format = F_FLAC | SF_16; + + return (sf_format_check (&sf_info) == SF_TRUE ? true : false); +} + +bool ExportFormatFLAC::set_compatibility_state (ExportFormatCompatibility const & compatibility) { bool compatible = compatibility.has_format (F_FLAC); |