diff options
author | Juan Linietsky <reduzio@gmail.com> | 2014-09-17 20:03:10 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2014-09-17 20:03:10 -0300 |
commit | 990f6cf50e96213a4b1a2961e61a9b922cd75d71 (patch) | |
tree | 600fb659508e8745d7656416b24f89b2157a2630 /drivers/chibi/cp_player_data.cpp | |
parent | 76aaa96d0e114d5293efed2fd0378ea390076b7e (diff) |
More Bug Fixes
-=-=-=-=-=-=-
-Fixed a few bugs in Mixer, now playback of chiptunes works great :)
-Changed how visibility AABB generation from skeletons work, it's fully automatic and real-time now, generated from current skeleton pose for the frame.
-Fixed camera in 3D kinematic character demo.
Diffstat (limited to 'drivers/chibi/cp_player_data.cpp')
-rw-r--r-- | drivers/chibi/cp_player_data.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/chibi/cp_player_data.cpp b/drivers/chibi/cp_player_data.cpp index 324c3f7c36..99bc4fddd2 100644 --- a/drivers/chibi/cp_player_data.cpp +++ b/drivers/chibi/cp_player_data.cpp @@ -125,7 +125,7 @@ int64_t CPPlayer::get_channel_last_note_time_usec(int p_channel) const { void CPPlayer::set_channel_global_volume(int p_channel,int p_volume) { CP_FAIL_INDEX(p_channel,64); - control.channel[p_channel].channel_global_volume=p_volume; + control.channel[p_channel].channel_global_volume=CLAMP(p_volume,0,255); } |