Author: titmuss
Date: Thu Feb 7 06:08:32 2008
New Revision: 1844
URL: http://svn.slimdevices.com?rev=1844&root=Jive&view=rev
Log:
Bug: 6580
Description:
The sound effects volume could never be set to zero, this prevented the DAC
from closing (to save
power).
Correctly open/close the DAC (to save power) when the sound effects are
enabled/disabled.
Modified:
branches/7.0/jive/src/pkg/jive/share/applets/SetupSoundEffects/SetupSoundEffectsApplet.lua
branches/7.0/jive/src/pkg/jive/src/ui/jive_audio.c
Modified:
branches/7.0/jive/src/pkg/jive/share/applets/SetupSoundEffects/SetupSoundEffectsApplet.lua
URL:
http://svn.slimdevices.com/branches/7.0/jive/src/pkg/jive/share/applets/SetupSoundEffects/SetupSoundEffectsApplet.lua?rev=1844&root=Jive&r1=1843&r2=1844&view=diff
==============================================================================
---
branches/7.0/jive/src/pkg/jive/share/applets/SetupSoundEffects/SetupSoundEffectsApplet.lua
(original)
+++
branches/7.0/jive/src/pkg/jive/share/applets/SetupSoundEffects/SetupSoundEffectsApplet.lua
Thu Feb 7 06:08:32 2008
@@ -194,7 +194,7 @@
function volumeShow(self)
local window = Window("window", self:string("SOUND_EFFECTS_VOLUME"),
"settingstitle")
- self.slider = Slider("volume", 1, VOLUME_STEPS, Audio:getEffectVolume()
/ VOLUME_STEP,
+ self.slider = Slider("volume", 0, VOLUME_STEPS, Audio:getEffectVolume()
/ VOLUME_STEP,
function(slider, value)
self:_setVolume(value)
end)
Modified: branches/7.0/jive/src/pkg/jive/src/ui/jive_audio.c
URL:
http://svn.slimdevices.com/branches/7.0/jive/src/pkg/jive/src/ui/jive_audio.c?rev=1844&root=Jive&r1=1843&r2=1844&view=diff
==============================================================================
--- branches/7.0/jive/src/pkg/jive/src/ui/jive_audio.c (original)
+++ branches/7.0/jive/src/pkg/jive/src/ui/jive_audio.c Thu Feb 7 06:08:32 2008
@@ -249,6 +249,13 @@
snd = *(struct jive_sample **)lua_touserdata(L, 1);
snd->enabled = lua_toboolean(L, 2);
+ if (snd->enabled) {
+ open_audio();
+ }
+ else {
+ close_audio();
+ }
+
return 0;
}
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins