diff options
author | Marcus Huderle <huderlem@gmail.com> | 2016-08-26 19:03:06 -0700 |
---|---|---|
committer | Marcus Huderle <huderlem@gmail.com> | 2016-08-26 19:03:06 -0700 |
commit | ac7a43004eb188c134b47ef9f6805592572d6b23 (patch) | |
tree | 1894fc50f6c8653322c10ea20084bf2d4b374650 /asm/macros | |
parent | 4c5cb4af6fa03953bafda4d5b91b83a9a83502a2 (diff) |
Use macros for direct sound data.
Diffstat (limited to 'asm/macros')
-rw-r--r-- | asm/macros/music_voice.s | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/asm/macros/music_voice.s b/asm/macros/music_voice.s index 9a95d69f4..357ee3b3f 100644 --- a/asm/macros/music_voice.s +++ b/asm/macros/music_voice.s @@ -111,3 +111,17 @@ .4byte \voice_group_pointer .4byte 0 .endm + + .macro directsound_looped pitch_adjust, loop_start_sample_index, num_samples + .4byte 0x40000000 + .4byte \pitch_adjust + .4byte \loop_start_sample_index + .4byte \num_samples + .endm + + .macro directsound_not_looped pitch_adjust, num_samples + .4byte 0x0 + .4byte \pitch_adjust + .4byte 0x0 + .4byte \num_samples + .endm |