Skip to content

Commit

Permalink
eleminate raw printf() usage in ALACEncoder.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
nu774 committed Oct 19, 2012
1 parent 774ecbd commit 7f48dd5
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions ALAC/ALACEncoder.cpp
Expand Up @@ -523,7 +523,9 @@ int32_t ALACEncoder::EncodeStereo( BitBuffer * bitstream, void * inputBuffer, ui
{
*bitstream = startBits; // reset bitstream state
doEscape = true;
printf( "compressed frame too big: %u vs. %u \n", minBits, escapeBits );
#if VERBOSE_DEBUG
DebugMsg( "compressed frame too big: %u vs. %u \n", minBits, escapeBits );
#endif
}
}

Expand Down Expand Up @@ -700,7 +702,9 @@ int32_t ALACEncoder::EncodeStereoFast( BitBuffer * bitstream, void * inputBuffer
if ( minBits >= escapeBits )
{
doEscape = true;
printf( "compressed frame too big: %u vs. %u\n", minBits, escapeBits );
#if VERBOSE_DEBUG
DebugMsg( "compressed frame too big: %u vs. %u\n", minBits, escapeBits );
#endif
}

}
Expand Down Expand Up @@ -965,7 +969,9 @@ int32_t ALACEncoder::EncodeMono( BitBuffer * bitstream, void * inputBuffer, uint
{
*bitstream = startBits; // reset bitstream state
doEscape = true;
printf( "compressed frame too big: %u vs. %u\n", minBits, escapeBits );
#if VERBOSE_DEBUG
DebugMsg( "compressed frame too big: %u vs. %u\n", minBits, escapeBits );
#endif
}
}

Expand Down Expand Up @@ -1114,7 +1120,9 @@ int32_t ALACEncoder::Encode(AudioFormatDescription theInputFormat, AudioFormatDe
break;

default:
printf( "That ain't right! (%u)\n", tag );
#if VERBOSE_DEBUG
DebugMsg( "That ain't right! (%u)\n", tag );
#endif
status = kALAC_ParamError;
goto Exit;
}
Expand Down

0 comments on commit 7f48dd5

Please sign in to comment.