This repository has been archived by the owner on Mar 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ Added function that returns list of all events in a bank file. #8 + Added function that returns event path name of an event instance. #7 + Added function for getting listener position. + Fixed #9
- Loading branch information
Showing
16 changed files
with
346 additions
and
115 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
9 changes: 5 additions & 4 deletions
9
Examples/FMODStudioWrapperGMS2ExampleProject/FMODStudioWrapperGMS2ExampleProject.yyp
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file modified
BIN
+1.5 KB
(100%)
Examples/FMODStudioWrapperGMS2ExampleProject/extensions/fmodGMS2/FMODWrapperGMS.dll
Binary file not shown.
40 changes: 40 additions & 0 deletions
40
Examples/FMODStudioWrapperGMS2ExampleProject/extensions/fmodGMS2/fmodGMS2.gml
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,40 @@ | ||
#define fmod_bank_listEventPath | ||
/// @param {real} id ds_list id. | ||
/// @param {any*} bank_handle | ||
var string_eventlist = ___INTERNAL_fmod_bank_listEventPath(argument1); | ||
// Split the string by commas | ||
var string_parts = string_split(string_eventlist, ","); | ||
for (var i = 0; i < array_length(string_parts); ++i) { | ||
ds_list_add(argument0, string_parts[i]); | ||
} | ||
return ds_list_size(argument0); | ||
|
||
#define fmod_listener_setPosition | ||
/// @param {real} listener | ||
/// @param {any*} x | ||
/// @param {any*} y | ||
/// @param {any*} [z] | ||
var listener = 0, xx = 0, yy = 0, zz = 0; | ||
var listener = argument[0], xx = argument[1], yy = argument[2]; | ||
if (argument_count == 4) { | ||
zz = argument[3]; | ||
} | ||
|
||
return ___INTERNAL_fmod_listener_setPosition(listener, xx, yy, zz); | ||
|
||
|
||
#define fmod_listener_getPosition | ||
/// @param {real} listener | ||
// Create a struct to hold the position | ||
var listener_position = { | ||
x : undefined, | ||
y : undefined, | ||
z : undefined | ||
} | ||
var string_listener = ___INTERNAL_fmod_listener_getPosition(argument0); | ||
// Split the string by commas | ||
var string_parts = string_split(string_listener, ","); | ||
listener_position.x = real(string_parts[0]); | ||
listener_position.y = real(string_parts[1]); | ||
listener_position.z = real(string_parts[2]); | ||
return listener_position; |
Oops, something went wrong.