Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using std::cout;
- using std::endl;
- #define _WIN32_WINNT 0x0502
- #include <windows.h>
- #include "sound.h"
- int main()
- {
- soundManagerClass sm;
- unsigned int sound1;
- if ( !sm.init( GetConsoleWindow() ) ) {
- cout << sm.getLastError() << endl;
- sm.cleanup();
- system( "pause" );
- return 1;
- }
- if ( !sm.loadShortSound( &sound1, "test.wav" ) ) {
- if ( !sm.getLastError() ) {
- cout << "file error\n";
- }
- else
- cout << sm.getLastError() << endl;
- sm.cleanup();
- system( "pause" );
- return 2;
- }
- //sm.play( sound1 );
- sm.cleanup();
- system( "pause" );
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement