[jitsi-dev] Output volume control


#1

        volumeControl.setVolume(0);// does not effect

If you're saying that after the above line volumeControl.getVolume()
does not return 0.0, then the behaviour in question is a bug which
we'll have to investigate.

        volumeControl.setMute(true); // does not effect too

After the line above, volumeControl.getVolume() should still return
the value it had before the above line and volumeControl.getMute()
should return true.

        final SCAudioClip audioClip =
audioNotifierServiceImpl.createAudio(audioFileUri);

SCAudioClip plays back what we/I refer to as "a notification sound".
The libjitsi library implementation does not provide a way to control
the volume of notification sounds i.e. it does not utilize
MediaService.getOutputVolumeControl (or any other VolumeControl for
that matter).

···

2013/5/22 Nguyen Dang Hieu <danghieu.ac1@gmail.com>:


#2

After volumeControl.setVolume(0) and get again, it's return 0 (this's ok)
but this does not effect to my speaker (the volume level of speaker still
the same, look at Control Panel/Sound/Playback volume control),

volumeControl.setMute(true) --> it's same, nothing change in Control
Panel/Sound/Playback volume control)

I am playing sound files using AudioNotifierServiceImpl/SCAudioClip, is
there any way to control output volume for this player?

Is there any other player (not SCAudioClip) that i can use to play a sound
file?

When i make a voice call, what is the output device which is chosen as
default to play the voice? is that same with AudioNotifier device?

The attachment video shows:
1. When i change the input volume, Window recoding device's volume is also
changed. ---> This work perfectly :slight_smile:
2. When i change the output volume (mediaService.getOutputVolumeControl),
Window playback device's volume does not change --> This does not work.

input_output_volume_control.rar (292 KB)

···

2013/5/23 Lyubomir Marinov <lyubomir.marinov@jitsi.org>

2013/5/22 Nguyen Dang Hieu <danghieu.ac1@gmail.com>:
> volumeControl.setVolume(0);// does not effect

If you're saying that after the above line volumeControl.getVolume()
does not return 0.0, then the behaviour in question is a bug which
we'll have to investigate.

> volumeControl.setMute(true); // does not effect too

After the line above, volumeControl.getVolume() should still return
the value it had before the above line and volumeControl.getMute()
should return true.

> final SCAudioClip audioClip =
> audioNotifierServiceImpl.createAudio(audioFileUri);

SCAudioClip plays back what we/I refer to as "a notification sound".
The libjitsi library implementation does not provide a way to control
the volume of notification sounds i.e. it does not utilize
MediaService.getOutputVolumeControl (or any other VolumeControl for
that matter).

--
-----@@@-----
Nguyen Dang Hieu
Mobile: +84912996036/+841686833046
Yahoo/Skype: hutac1


#3

2. When i change the output volume (mediaService
.getOutputVolumeControl), Window playback device's volume does
not change --> This does not work

It is not supposed to. Output volume control only works with the stream by
amplifying or sioencing it. It does not try to manipulate devices.

Emil

--sent from my mobile

···

On May 23, 2013 3:03 AM, "Nguyen Dang Hieu" <danghieu.ac1@gmail.com> wrote:

After volumeControl.setVolume(0) and get again, it's return 0 (this's ok)
but this does not effect to my speaker (the volume level of speaker still
the same, look at Control Panel/Sound/Playback volume control),

volumeControl.setMute(true) --> it's same, nothing change in Control
Panel/Sound/Playback volume control)

I am playing sound files using AudioNotifierServiceImpl/SCAudioClip, is
there any way to control output volume for this player?

Is there any other player (not SCAudioClip) that i can use to play a sound
file?

When i make a voice call, what is the output device which is chosen as
default to play the voice? is that same with AudioNotifier device?

The attachment video shows:
1. When i change the input volume, Window recoding device's volume is also
changed. ---> This work perfectly :slight_smile:
2. When i change the output volume (mediaService.getOutputVolumeControl),
Window playback device's volume does not change --> This does not work.

2013/5/23 Lyubomir Marinov <lyubomir.marinov@jitsi.org>

2013/5/22 Nguyen Dang Hieu <danghieu.ac1@gmail.com>:
> volumeControl.setVolume(0);// does not effect

If you're saying that after the above line volumeControl.getVolume()
does not return 0.0, then the behaviour in question is a bug which
we'll have to investigate.

> volumeControl.setMute(true); // does not effect too

After the line above, volumeControl.getVolume() should still return
the value it had before the above line and volumeControl.getMute()
should return true.

> final SCAudioClip audioClip =
> audioNotifierServiceImpl.createAudio(audioFileUri);

SCAudioClip plays back what we/I refer to as "a notification sound".
The libjitsi library implementation does not provide a way to control
the volume of notification sounds i.e. it does not utilize
MediaService.getOutputVolumeControl (or any other VolumeControl for
that matter).

--
-----@@@-----
Nguyen Dang Hieu
Mobile: +84912996036/+841686833046
Yahoo/Skype: hutac1

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#4

After volumeControl.setVolume(0) and get again, it's return 0 (this's ok)
but this does not effect to my speaker (the volume level of speaker still
the same, look at Control Panel/Sound/Playback volume control),

volumeControl.setMute(true) --> it's same, nothing change in Control
Panel/Sound/Playback volume control)

As Emil answered already, libjitsi does not modify the output volume
of the underlying OS (in contrast to the input volume) so the
behaviour that you observe is the expected.

I am playing sound files using AudioNotifierServiceImpl/SCAudioClip, is
there any way to control output volume for this player?

No.

It shouldn't be hard to add support for an output VolumeControl for
the purposes of notification sounds in libjitsi, the implementation
should pretty much be the same as for the in-call playback.

Is there any other player (not SCAudioClip) that i can use to play a sound
file?

No. There are multiple threads on the dev mailing list discussion
playback of files in calls which could help you get started.
Unfortunately, we've seen no contributions on the subject from
developers utilizing libjitsi in that way.

When i make a voice call, what is the output device which is chosen as
default to play the voice? is that same with AudioNotifier device?

AudioNotifier uses the user's choice with respect to a "notification"
device (expressed through the ConfigurationService). Similarly,
in-call audio employs a "playback" device. The default selections for
the "notification" and "playback" devices point to one and the same
device but they are separate ConfigurationService properties so it is
possible to specify different devices.

The attachment video shows:
1. When i change the input volume, Window recoding device's volume is also
changed. ---> This work perfectly :slight_smile:

Libjitsi does implement this functionality so the behaviour is expected.

2. When i change the output volume (mediaService.getOutputVolumeControl),
Window playback device's volume does not change --> This does not work.

Libjitsi does NOT implement this functionality so the behaviour is expected.

···

2013/5/23 Nguyen Dang Hieu <danghieu.ac1@gmail.com>:


#5

Hi Lyubomir,
Could you please give me some information for above questions?

I am trying to find a way change output audio (speaker) volume using
Libjisti but really in stuck now.

···

2013/5/23 Nguyen Dang Hieu <danghieu.ac1@gmail.com>

After volumeControl.setVolume(0) and get again, it's return 0 (this's ok)
but this does not effect to my speaker (the volume level of speaker still
the same, look at Control Panel/Sound/Playback volume control),

volumeControl.setMute(true) --> it's same, nothing change in Control
Panel/Sound/Playback volume control)

I am playing sound files using AudioNotifierServiceImpl/SCAudioClip, is
there any way to control output volume for this player?

Is there any other player (not SCAudioClip) that i can use to play a sound
file?

When i make a voice call, what is the output device which is chosen as
default to play the voice? is that same with AudioNotifier device?

The attachment video shows:
1. When i change the input volume, Window recoding device's volume is also
changed. ---> This work perfectly :slight_smile:
2. When i change the output volume (mediaService.getOutputVolumeControl),
Window playback device's volume does not change --> This does not work.

2013/5/23 Lyubomir Marinov <lyubomir.marinov@jitsi.org>

2013/5/22 Nguyen Dang Hieu <danghieu.ac1@gmail.com>:
> volumeControl.setVolume(0);// does not effect

If you're saying that after the above line volumeControl.getVolume()
does not return 0.0, then the behaviour in question is a bug which
we'll have to investigate.

> volumeControl.setMute(true); // does not effect too

After the line above, volumeControl.getVolume() should still return
the value it had before the above line and volumeControl.getMute()
should return true.

> final SCAudioClip audioClip =
> audioNotifierServiceImpl.createAudio(audioFileUri);

SCAudioClip plays back what we/I refer to as "a notification sound".
The libjitsi library implementation does not provide a way to control
the volume of notification sounds i.e. it does not utilize
MediaService.getOutputVolumeControl (or any other VolumeControl for
that matter).

--
-----@@@-----
Nguyen Dang Hieu
Mobile: +84912996036/+841686833046
Yahoo/Skype: hutac1

--
-----@@@-----
Nguyen Dang Hieu
Mobile: +84912996036/+841686833046
Yahoo/Skype: hutac1


#6

Thank you for very clear description, this helps me a lot.
Also thanks for Jitsi team!

···

2013/5/23 Lyubomir Marinov <lyubomir.marinov@jitsi.org>

2013/5/23 Nguyen Dang Hieu <danghieu.ac1@gmail.com>:
> After volumeControl.setVolume(0) and get again, it's return 0 (this's ok)
> but this does not effect to my speaker (the volume level of speaker still
> the same, look at Control Panel/Sound/Playback volume control),
>
> volumeControl.setMute(true) --> it's same, nothing change in Control
> Panel/Sound/Playback volume control)

As Emil answered already, libjitsi does not modify the output volume
of the underlying OS (in contrast to the input volume) so the
behaviour that you observe is the expected.

> I am playing sound files using AudioNotifierServiceImpl/SCAudioClip, is
> there any way to control output volume for this player?

No.

It shouldn't be hard to add support for an output VolumeControl for
the purposes of notification sounds in libjitsi, the implementation
should pretty much be the same as for the in-call playback.

> Is there any other player (not SCAudioClip) that i can use to play a
sound
> file?

No. There are multiple threads on the dev mailing list discussion
playback of files in calls which could help you get started.
Unfortunately, we've seen no contributions on the subject from
developers utilizing libjitsi in that way.

> When i make a voice call, what is the output device which is chosen as
> default to play the voice? is that same with AudioNotifier device?

AudioNotifier uses the user's choice with respect to a "notification"
device (expressed through the ConfigurationService). Similarly,
in-call audio employs a "playback" device. The default selections for
the "notification" and "playback" devices point to one and the same
device but they are separate ConfigurationService properties so it is
possible to specify different devices.

> The attachment video shows:
> 1. When i change the input volume, Window recoding device's volume is
also
> changed. ---> This work perfectly :slight_smile:

Libjitsi does implement this functionality so the behaviour is expected.

> 2. When i change the output volume (mediaService.getOutputVolumeControl),
> Window playback device's volume does not change --> This does not work.

Libjitsi does NOT implement this functionality so the behaviour is
expected.

--
-----@@@-----
Nguyen Dang Hieu
Mobile: +84912996036/+841686833046
Yahoo/Skype: hutac1