[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-multimedia
Subject:    Re: [PATCH] fix kaiman volume decrease
From:       Stefan Schimanski <1Stein () gmx ! de>
Date:       2000-10-01 10:59:11
[Download RAW message or body]

Am Sat, 30 Sep 2000 schrieb Stefan Westerfeld:

> >    Hi!
>
> I honestly don't know what the purpose of these lines is:
>
>     _volumeControl = Arts::StereoVolumeControl::null();
>     _soundServer = Arts::SimpleSoundServer::null();
>
> especially not in the stop() of kaiman. However, what they do is lead to
> ever decreasing volume.
>
> Why? You play a song. A volume control effect gets created and inserted in
> initArts(). You stop it. The soundserer and volumecontrol effect get
> assigned to null(). (WHY THIS?). Note that this doesn't actually kill the
> volume control effect, as this still lives happily in the effect stack.
>
> When you push play again, then kaiman sees: ah, got no soundserver. And
> goes creating yet another volume control effect. And so on. Of course, if
> you do turn up the volume to the maximum this doesn't impact you (like
> audio signal * 1 * 1 * 1 * 1 = audio signal), but if you don't the overall
> volume steadily decreases.
>
> The patch also happens to do other stuff like setting default fragment size
> to -F 5 -S 8192 (which is the kcontrol default, also), and replacing the
> monolithic sleep(5) with segmented sleeps. Please anybody, review, commit.

I'm playing mp3s for the whole day now with this patch. Everything seems to 
be fine.

Schimmi



--=20
#! /bin/sh
for DVDs in Linux screw the MPAA and ; do dig $DVDs.z.zoy.org ; done | \
   perl -ne 's/\.//g; print pack("H224",$1) if(/^x([^z]*)/)' | gunzip
_______________________________________________
Kde-multimedia mailing list
Kde-multimedia@master.kde.org
http://master.kde.org/mailman/listinfo/kde-multimedia


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic