b4e has asked for the wisdom of the Perl Monks concerning the following question:
$level_a is defined by the user via a scale :my $WAV1 = new Win32::Sound::WaveOut($sound_a) or die "WaveOut: $!"; # open sound for channel 1 ... ... $WAV1 -> Volume($level_a, $level_a); $WAV1 -> Play() or die "Play: $!"; # play sound with the level set
the weird thing is that though i define the level twice (left and right), i only get a signal on the left speaker and that setting $level_a to 0 does not mute the soundmy $level_a_scale = $frame3-> Scale(-variable=>\$level_a, -from => 0, +-to => 65535);
the sound is played on both speakers.$WAV1 -> Volume($level_a, $level_a);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Changing the Volume with the Win32::Sound::WaveOut module
by meetraz (Hermit) on Aug 02, 2004 at 18:27 UTC | |
|
Re: Changing the Volume with the Win32::Sound::WaveOut module
by ixo111 (Acolyte) on Jul 21, 2008 at 02:38 UTC |