-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c00b01c
commit a1f0540
Showing
2 changed files
with
27 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
DestroyVoiceSafeEXT - Expose whether or not a voice was actually destroyed | ||
|
||
About | ||
----- | ||
XAudio's function for exporting voices has the ability to fail - however, the | ||
function declaration does not have a return value, so there is no way to safely | ||
determine on the client side whether or not a voice was actually destroyed. | ||
This extension adds a function that is otherwise identical, but includes a | ||
result code to allow checking for failures. | ||
|
||
Dependencies | ||
------------ | ||
This extension does not interact with any non-standard XAudio features. | ||
|
||
New Procedures and Functions | ||
---------------------------- | ||
FAUDIOAPI uint32_t FAudioVoice_DestroyVoiceSafeEXT(FAudioVoice *voice); | ||
|
||
How to Use | ||
---------- | ||
This extension acts identially to the existing DestroyVoice, but with and added | ||
return value - it will return 0 on success or non-0 on failure. |