Fix issue #114: Audio playback of the video files played

We now create an audio pipeline with a volume gstreamer element. The "volume"
property of the element has a range of 0.0 - 1.0 and is 0.0 by default (i.e.
effectively muted input). The property can be seen and changed in the paint
property browser (in %)
This commit is contained in:
Vasilis Liaskovitis
2015-02-09 21:44:47 +01:00
parent e0a3c35877
commit d1f63b8501
6 changed files with 94 additions and 9 deletions
+10
View File
@@ -131,6 +131,16 @@ double Media::getRate() const
return impl_->getRate() * 100.0;
}
void Media::setVolume(double rate)
{
impl_->setVolume(rate / 100.0);
}
double Media::getVolume() const
{
return impl_->getVolume() * 100.0;
}
bool Media::hasVideoSupport()
{
return MediaImpl::hasVideoSupport();