diff --git a/libs/ardour/ardour/export_format_base.h b/libs/ardour/ardour/export_format_base.h index b147f6c379..517b3d1ff0 100644 --- a/libs/ardour/ardour/export_format_base.h +++ b/libs/ardour/ardour/export_format_base.h @@ -59,6 +59,7 @@ class LIBARDOUR_API ExportFormatBase { F_RAW = SF_FORMAT_RAW, F_FLAC = SF_FORMAT_FLAC, F_Ogg = SF_FORMAT_OGG, + F_MPEG = 0x230000, /* hardcode SF_FORMAT_MPEG from libsndfile 1.1.0+ */ F_FFMPEG = 0xF10000 }; @@ -78,7 +79,8 @@ class LIBARDOUR_API ExportFormatBase { SF_U8 = SF_FORMAT_PCM_U8, SF_Float = SF_FORMAT_FLOAT, SF_Double = SF_FORMAT_DOUBLE, - SF_Vorbis = SF_FORMAT_VORBIS + SF_Vorbis = SF_FORMAT_VORBIS, + SF_MPEG_LAYER_III = 0x0082 /* SF_FORMAT_MPEG_LAYER_III */ }; enum DitherType { diff --git a/libs/ardour/enums.cc b/libs/ardour/enums.cc index 414583a562..eda53fada6 100644 --- a/libs/ardour/enums.cc +++ b/libs/ardour/enums.cc @@ -634,6 +634,7 @@ setup_enum_writer () REGISTER_CLASS_ENUM (ExportFormatBase, F_Ogg); REGISTER_CLASS_ENUM (ExportFormatBase, F_CAF); REGISTER_CLASS_ENUM (ExportFormatBase, F_FFMPEG); + REGISTER_CLASS_ENUM (ExportFormatBase, F_MPEG); REGISTER (_ExportFormatBase_FormatId); REGISTER_CLASS_ENUM (ExportFormatBase, E_FileDefault); @@ -651,6 +652,7 @@ setup_enum_writer () REGISTER_CLASS_ENUM (ExportFormatBase, SF_Float); REGISTER_CLASS_ENUM (ExportFormatBase, SF_Double); REGISTER_CLASS_ENUM (ExportFormatBase, SF_Vorbis); + REGISTER_CLASS_ENUM (ExportFormatBase, SF_MPEG_LAYER_III); REGISTER (_ExportFormatBase_SampleFormat); REGISTER_CLASS_ENUM (ExportFormatBase, D_None); diff --git a/libs/ardour/export_formats.cc b/libs/ardour/export_formats.cc index 3b6ccd5291..6b6fe09e86 100644 --- a/libs/ardour/export_formats.cc +++ b/libs/ardour/export_formats.cc @@ -179,6 +179,8 @@ HasSampleFormat::get_sample_format_name (ExportFormatBase::SampleFormat format) return _("8-bit unsigned"); case ExportFormatBase::SF_Vorbis: return _("Vorbis sample format"); + case ExportFormatBase::SF_MPEG_LAYER_III: + return _("MPEG-2 Audio Layer III"); case ExportFormatBase::SF_None: return _("No sample format"); }