Programmable real-time audio signal processing application
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

main.c 955B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #include "cmPrefix.h"
  2. #include "cmGlobal.h"
  3. #include "cmRpt.h"
  4. #include "cmErr.h"
  5. #include "cmCtx.h"
  6. #include "cmMem.h"
  7. #include "cmMallocDebug.h"
  8. #include "cmLinkedHeap.h"
  9. #include "cmFileSys.h"
  10. #include "cmText.h"
  11. void print( void* arg, const char* text )
  12. {
  13. printf("%s\n",text);
  14. }
  15. int main( int argc, char* argv[] )
  16. {
  17. // initialize the heap check library
  18. bool memDebugFl = cmDEBUG_FL;
  19. unsigned memGuardByteCnt = memDebugFl ? 8 : 0;
  20. unsigned memAlignByteCnt = 16;
  21. unsigned memFlags = memDebugFl ? kTrackMmFl | kDeferFreeMmFl | kFillUninitMmFl : 0;
  22. cmCtx_t ctx;
  23. cmCtxSetup(&ctx,"cm test",print,print,NULL,memGuardByteCnt,memAlignByteCnt,memFlags);
  24. cmMdInitialize( memGuardByteCnt, memAlignByteCnt, memFlags, &ctx.rpt );
  25. cmFsInitialize( &ctx, "cm_test" );
  26. cmTsInitialize(&ctx );
  27. cmTsFinalize();
  28. cmFsFinalize();
  29. cmMdReport( kIgnoreNormalMmFl );
  30. cmMdFinalize();
  31. return 0;
  32. }