From Serge Lages, "Here is a patch to allow setting an audio volume with the AudioSink interface, I've also modified the ffmpeg plugin code to implement the ImageStream's setVolume method with its AudioSink."
This commit is contained in:
@@ -152,6 +152,15 @@ void FFmpegImageStream::quit(bool waitForThreadToExit)
|
||||
m_decoder->close(waitForThreadToExit);
|
||||
}
|
||||
|
||||
void FFmpegImageStream::setVolume(float volume)
|
||||
{
|
||||
m_decoder->audio_decoder().setVolume(volume);
|
||||
}
|
||||
|
||||
float FFmpegImageStream::getVolume() const
|
||||
{
|
||||
return m_decoder->audio_decoder().getVolume();
|
||||
}
|
||||
|
||||
double FFmpegImageStream::getLength() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user