summaryrefslogtreecommitdiff
path: root/libs/ardour/mix.cc
diff options
context:
space:
mode:
authorDoug McLain <doug@nostar.net>2006-02-06 21:40:06 +0000
committerDoug McLain <doug@nostar.net>2006-02-06 21:40:06 +0000
commitc7ed1141eb17b87b74a7d6de2e63e24136657392 (patch)
tree7f869f4fe7dd391a5babb63830b01dbd71f9682d /libs/ardour/mix.cc
parenta6fc0a9afeb6fc7199af5701f2ce5f4e05d6a55f (diff)
type fixes
git-svn-id: svn://localhost/trunk/ardour2@312 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/mix.cc')
-rw-r--r--libs/ardour/mix.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/ardour/mix.cc b/libs/ardour/mix.cc
index 1bc97dbd6a..ab0d1dde59 100644
--- a/libs/ardour/mix.cc
+++ b/libs/ardour/mix.cc
@@ -30,7 +30,7 @@
float
debug_compute_peak (ARDOUR::Sample *buf, jack_nframes_t nsamples, float current)
{
- if ( ((int)buf % 16) != 0) {
+ if ( ((intptr_t)buf % 16) != 0) {
cerr << "compute_peak(): buffer unaligned!" << endl;
}
@@ -40,7 +40,7 @@ debug_compute_peak (ARDOUR::Sample *buf, jack_nframes_t nsamples, float current)
void
debug_apply_gain_to_buffer (ARDOUR::Sample *buf, jack_nframes_t nframes, float gain)
{
- if ( ((int)buf % 16) != 0) {
+ if ( ((intptr_t)buf % 16) != 0) {
cerr << "apply_gain_to_buffer(): buffer unaligned!" << endl;
}
@@ -50,11 +50,11 @@ debug_apply_gain_to_buffer (ARDOUR::Sample *buf, jack_nframes_t nframes, float g
void
debug_mix_buffers_with_gain (ARDOUR::Sample *dst, ARDOUR::Sample *src, jack_nframes_t nframes, float gain)
{
- if ( ((int)dst & 15) != 0) {
+ if ( ((intptr_t)dst & 15) != 0) {
cerr << "mix_buffers_with_gain(): dst unaligned!" << endl;
}
- if ( ((int)dst & 15) != ((int)src & 15) ) {
+ if ( ((intptr_t)dst & 15) != ((intptr_t)src & 15) ) {
cerr << "mix_buffers_with_gain(): dst & src don't have the same alignment!" << endl;
mix_buffers_with_gain(dst, src, nframes, gain);
} else {
@@ -65,11 +65,11 @@ debug_mix_buffers_with_gain (ARDOUR::Sample *dst, ARDOUR::Sample *src, jack_nfra
void
debug_mix_buffers_no_gain (ARDOUR::Sample *dst, ARDOUR::Sample *src, jack_nframes_t nframes)
{
- if ( ((int)dst & 15) != 0) {
+ if ( ((intptr_t)dst & 15) != 0) {
cerr << "mix_buffers_no_gain(): dst unaligned!" << endl;
}
- if ( ((int)dst & 15) != ((int)src & 15) ) {
+ if ( ((intptr_t)dst & 15) != ((intptr_t)src & 15) ) {
cerr << "mix_buffers_no_gain(): dst & src don't have the same alignment!" << endl;
mix_buffers_no_gain(dst, src, nframes);
} else {