From fc25635bbc2ba5fd88c7f299995aefa715b25abc Mon Sep 17 00:00:00 2001 From: Josh Yelon Date: Wed, 11 Apr 2007 16:41:28 +0000 Subject: [PATCH] Fixed fmod looping bug again --- panda/src/audiotraits/fmodAudioSound.cxx | 2 +- panda/src/glxdisplay/glxGraphicsWindow.cxx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/panda/src/audiotraits/fmodAudioSound.cxx b/panda/src/audiotraits/fmodAudioSound.cxx index b7a8c60882..bbdba889cb 100644 --- a/panda/src/audiotraits/fmodAudioSound.cxx +++ b/panda/src/audiotraits/fmodAudioSound.cxx @@ -119,8 +119,8 @@ FmodAudioSound(AudioManager *manager, Filename file_name, bool positional) { // Some WAV files contain a loop bit. This is not handled // consistently. Override it. - _sound->setMode(FMOD_LOOP_OFF); _sound->setLoopCount(-1); + _sound->setMode(FMOD_LOOP_OFF); //This is just to collect the defaults of the sound, so we don't //Have to query FMOD everytime for the info. diff --git a/panda/src/glxdisplay/glxGraphicsWindow.cxx b/panda/src/glxdisplay/glxGraphicsWindow.cxx index 408f82ee44..910de9e5a3 100644 --- a/panda/src/glxdisplay/glxGraphicsWindow.cxx +++ b/panda/src/glxdisplay/glxGraphicsWindow.cxx @@ -1082,6 +1082,8 @@ open_raw_mice() GraphicsWindowInputDevice device = GraphicsWindowInputDevice::pointer_only(full_id); _input_devices.push_back(device); + glxdisplay_cat.info() << "Raw mouse " << + inf._input_device_index << " detected: " << full_id << "\n"; any_mice = true; } else { close(fd);