///////////////////////////////////////////////////////////////////////////////
// LameXP - Audio Encoder Front-End
-// Copyright (C) 2004-2013 LoRd_MuldeR <MuldeR2@GMX.de>
+// Copyright (C) 2004-2015 LoRd_MuldeR <MuldeR2@GMX.de>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
return false;
break;
default:
- THROW("Bad RC mode specified!");
+ MUTILS_THROW("Bad RC mode specified!");
}
}
return 0;
break;
default:
- THROW("Bad RC mode specified!");
+ MUTILS_THROW("Bad RC mode specified!");
}
}
return -1;
break;
default:
- THROW("Bad RC mode specified!");
+ MUTILS_THROW("Bad RC mode specified!");
}
}
case SettingsModel::CBRMode:
return -1;
default:
- THROW("Bad RC mode specified!");
+ MUTILS_THROW("Bad RC mode specified!");
}
}
static const char* s_description = "Free Lossless Audio Codec (FLAC)";
return s_description;
}
+
+ virtual const char *extension(void) const
+ {
+ static const char* s_extension = "flac";
+ return s_extension;
+ }
}
static const g_flacEncoderInfo;
FLACEncoder::FLACEncoder(void)
:
- m_binary(lamexp_lookup_tool("flac.exe"))
+ m_binary(lamexp_tools_lookup("flac.exe"))
{
if(m_binary.isEmpty())
{
- THROW("Error initializing FLAC encoder. Tool 'flac.exe' is not registred!");
+ MUTILS_THROW("Error initializing FLAC encoder. Tool 'flac.exe' is not registred!");
}
}
return true;
}
-QString FLACEncoder::extension(void)
-{
- return "flac";
-}
-
bool FLACEncoder::isFormatSupported(const QString &containerType, const QString &containerProfile, const QString &formatType, const QString &formatProfile, const QString &formatVersion)
{
if(containerType.compare("Wave", Qt::CaseInsensitive) == 0)