Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. #include <iostream>
  2. using std::cout;
  3. using std::endl;
  4.  
  5. #define _WIN32_WINNT 0x0502
  6. #include <windows.h>
  7.  
  8. #include "sound.h"
  9.  
  10. int main()
  11. {
  12. soundManagerClass sm;
  13. unsigned int sound1;
  14. if ( !sm.init( GetConsoleWindow() ) ) {
  15. cout << sm.getLastError() << endl;
  16. sm.cleanup();
  17. system( "pause" );
  18. return 1;
  19. }
  20. if ( !sm.loadShortSound( &sound1, "test.wav" ) ) {
  21. if ( !sm.getLastError() ) {
  22. cout << "file error\n";
  23. }
  24. else
  25. cout << sm.getLastError() << endl;
  26. sm.cleanup();
  27. system( "pause" );
  28. return 2;
  29. }
  30. //sm.play( sound1 );
  31. sm.cleanup();
  32. system( "pause" );
  33. return 0;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement