-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from roblabla/csoundmanager
Implement CSound::*, CSoundManager::* and CWaveFile::*
- Loading branch information
Showing
5 changed files
with
1,318 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
//----------------------------------------------------------------------------- | ||
// File: DXUtil.h | ||
// | ||
// Desc: Helper functions and typing shortcuts for DirectX programming. | ||
// | ||
// Copyright (c) 1997-2000 Microsoft Corporation. All rights reserved | ||
//----------------------------------------------------------------------------- | ||
#ifndef DXUTIL_H | ||
#define DXUTIL_H | ||
|
||
//----------------------------------------------------------------------------- | ||
// Miscellaneous helper functions | ||
//----------------------------------------------------------------------------- | ||
#define SAFE_DELETE(p) \ | ||
{ \ | ||
if (p) \ | ||
{ \ | ||
delete (p); \ | ||
(p) = NULL; \ | ||
} \ | ||
} | ||
#define SAFE_DELETE_ARRAY(p) \ | ||
{ \ | ||
if (p) \ | ||
{ \ | ||
delete[] (p); \ | ||
(p) = NULL; \ | ||
} \ | ||
} | ||
#define SAFE_RELEASE(p) \ | ||
{ \ | ||
if (p) \ | ||
{ \ | ||
(p)->Release(); \ | ||
(p) = NULL; \ | ||
} \ | ||
} | ||
|
||
#endif // DXUTIL_H |
Oops, something went wrong.