Skip to content

Commit

Permalink
Change types in dll.py to reflect 1.9.2.beta2
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewryanscott committed Nov 2, 2016
1 parent 21a2f41 commit f05fba7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions sunvox/dll.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ def decorated_fn(fn, argtypes, restype, needs_lock, doc):


init = decorated_fn(
_s.sv_init, [c_char_p, c_int, c_int, c_int], c_int, False,
_s.sv_init, [c_char_p, c_int, c_int, c_int], c_uint, False,
"""
int sv_init( const char* dev, int freq, int channels, int flags ) SUNVOX_FN_ATTR;
int sv_init( const char* dev, int freq, int channels, unsigned int flags ) SUNVOX_FN_ATTR;
""")


Expand Down Expand Up @@ -257,6 +257,7 @@ def decorated_fn(fn, argtypes, restype, needs_lock, doc):
send_event = decorated_fn(
_s.sv_send_event, [c_int, c_int, c_int, c_int, c_int, c_int, c_int], c_int, False,
"""
//track_num - track number (0..15) within the special pattern
//ctl - 0xCCEE. CC - number of a controller (1..255). EE - std effect
//ctl_val - value of controller/effect
int sv_send_event( int slot, int track_num, int note, int vel, int module, int ctl, int ctl_val ) SUNVOX_FN_ATTR;
Expand Down Expand Up @@ -375,9 +376,9 @@ def decorated_fn(fn, argtypes, restype, needs_lock, doc):


get_module_flags = decorated_fn(
_s.sv_get_module_flags, [c_int, c_int], c_int, False,
_s.sv_get_module_flags, [c_int, c_int], c_uint, False,
"""
int sv_get_module_flags( int slot, int mod_num ) SUNVOX_FN_ATTR;
unsigned int sv_get_module_flags( int slot, int mod_num ) SUNVOX_FN_ATTR;
""")


Expand Down

0 comments on commit f05fba7

Please sign in to comment.