aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sfx/softseq/adlib.cpp
diff options
context:
space:
mode:
authorMax Horn2009-07-01 20:51:04 +0000
committerMax Horn2009-07-01 20:51:04 +0000
commita6b57dc3a986f749ca8f915b461b184d48390757 (patch)
treed6c3e5e46743dd5073b8853613d61e501fa76fcd /engines/sci/sfx/softseq/adlib.cpp
parent62acda5fdbe0daaeae9e1d0f08044b8be4ee98cf (diff)
downloadscummvm-rg350-a6b57dc3a986f749ca8f915b461b184d48390757.tar.gz
scummvm-rg350-a6b57dc3a986f749ca8f915b461b184d48390757.tar.bz2
scummvm-rg350-a6b57dc3a986f749ca8f915b461b184d48390757.zip
- Added GCC_PRINTF attribute to several funcs where it makes sense
- change some constants from double to float, to avoid "loss of precision due to implicit conversion" warnings - removed duplicate prototypes for some funcs - fixed some "increases required alignment of target type" warnings svn-id: r42009
Diffstat (limited to 'engines/sci/sfx/softseq/adlib.cpp')
-rw-r--r--engines/sci/sfx/softseq/adlib.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/sfx/softseq/adlib.cpp b/engines/sci/sfx/softseq/adlib.cpp
index 0bb13e120c..41c7c63fc9 100644
--- a/engines/sci/sfx/softseq/adlib.cpp
+++ b/engines/sci/sfx/softseq/adlib.cpp
@@ -482,7 +482,7 @@ void MidiDriver_Adlib::setNote(int voice, int note, bool key) {
if (bend < 8192)
bend = 8192 - bend;
- delta = pow(2.0, (float)(bend % 8192) / 8192.0);
+ delta = (float)pow(2.0, (bend % 8192) / 8192.0);
if (bend > 8192)
fre = (int)(ym3812_note[n] * delta);