aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-08-07 23:13:13 +0000
committertaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-08-07 23:13:13 +0000
commit8294909f1babaec3693ed88cd1db04642080531e (patch)
tree0754e8ee4acf124d751f8cb396ca30cda6fcbe98
parent3729c5670ee8435d609f8154bafaf2c17e891fa7 (diff)
Fix for 64-bit compatibility
git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@241 84d2e878-0bd5-11dd-ad15-13eda11d74c5
-rw-r--r--src/audio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio.c b/src/audio.c
index ad1bf29..980bfe6 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -284,9 +284,9 @@ static void *audio_play_vorbis(void *add_void) {
a->sounds[idx].volume = add->volume;
a->sounds[idx].playing = 1; /* Must be done last - tell the mixer thread it can use this */
}
- if ( a->debug ) printf("AU: Channel %i: decode_pos=%i, dpos=%li. "
+ if ( a->debug ) printf("AU: Channel %i: decode_pos=%li, dpos=%li. "
"I am now %.1f seconds ahead of the playing position.\n",
- idx, a->sounds[idx].decode_pos, a->sounds[idx].dpos,
+ idx, (long int)a->sounds[idx].decode_pos, a->sounds[idx].dpos,
((double)a->sounds[idx].decode_pos-a->sounds[idx].dpos)/(44100*2));
/* Sleep for eight seconds while periodically checking for shutdown */