mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user