Skip to content

Commit

Permalink
Merge pull request #5 from xoascf/console-debug
Browse files Browse the repository at this point in the history
Use console window for Debug builds only
  • Loading branch information
blawar committed Mar 25, 2022
2 parents 562225f + 11622d2 commit 19d57db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions AziAudio/SoundDriverFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,12 @@ SoundDriverType SoundDriverFactory::DefaultDriver()

int SoundDriverFactory::EnumDrivers(SoundDriverType *drivers, int max_entries)
{
#ifdef USE_PRINTF
if(InitDrivers() != FactoryNextSlot)
{
printf("Expected %d drivers, got %d", InitDrivers(), FactoryNextSlot);
}
#endif

int retVal = 0;
for (int x = 0; x < FactoryNextSlot; x++)
Expand Down
2 changes: 1 addition & 1 deletion AziAudio/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//************ Configuration Section ************** (to be moved to compile time defines)

// Configure the plugin to have a console window for informational output -- should be used for debugging only
#define USE_PRINTF
//#define USE_PRINTF

#ifdef _WIN32
#define ENABLE_BACKEND_DIRECTSOUND8_LEGACY
Expand Down
2 changes: 1 addition & 1 deletion PropertySheets/Debug.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions>_DEBUG;DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>USE_PRINTF;_DEBUG;DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Optimization>Disabled</Optimization>
<InlineFunctionExpansion>Default</InlineFunctionExpansion>
<IntrinsicFunctions>false</IntrinsicFunctions>
Expand Down

0 comments on commit 19d57db

Please sign in to comment.