This commit is contained in:
chudov
2009-12-24 16:15:46 +00:00
parent 7b9609d0d0
commit 0a91d0436a

View File

@@ -375,13 +375,13 @@ namespace CUETools { namespace Codecs { namespace APE {
property Int32 CompressionLevel { property Int32 CompressionLevel {
Int32 get() { Int32 get() {
return _compressionLevel; return _compressionLevel / 1000 - 1;
} }
void set(Int32 value) { void set(Int32 value) {
if ((value < 1) || (value > 5)) { if ((value < 0) || (value > 4)) {
throw gcnew Exception("Invalid compression mode."); throw gcnew Exception("Invalid compression mode.");
} }
_compressionLevel = value * 1000; _compressionLevel = (value + 1) * 1000;
} }
} }