Skip to content

Commit

Permalink
Check for necessary components in audiosession example
Browse files Browse the repository at this point in the history
  • Loading branch information
j0r1 committed Jan 22, 2017
1 parent 00ba4de commit a58123c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions examples/audiosession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
*/

#include <mipconfig.h>

#if (defined(MIPCONFIG_SUPPORT_WINMM) || defined(MIPCONFIG_SUPPORT_OSS) || defined(MIPCONFIG_SUPPORT_PORTAUDIO) )

#include <mipavcodecencoder.h>
#include <mipaudiosession.h>
#include <mippainputoutput.h>
Expand Down Expand Up @@ -101,3 +104,15 @@ int main(void)
return 0;
}

#else

#include <iostream>

int main(void)
{
std::cerr << "Not all necessary components are available to run this example." << std::endl;
return 0;
}

#endif

0 comments on commit a58123c

Please sign in to comment.