Commit 855b5ecd authored by Rohit Yadav's avatar Rohit Yadav

GenericRenderer.h: Add virtual interfaces to set and get Volume.

Add signal for notifying volume change.
parent d51f6812
......@@ -61,6 +61,15 @@ public:
*/
void setRenderWidget( QWidget* renderWidget );
#endif
/**
* \brief Set the output volume.
* \param volume the volume (int)
* \return 0 if the volume was set, -1 if it was out of range
* \sa getVolume()
*/
virtual int setVolume( int volume ) = 0;
/**
* \brief Play or pause the media.
*
......@@ -95,6 +104,13 @@ public:
*/
virtual void stop() = 0;
/**
* \brief Return the volume
* \return The Return the volume the audio level (int)
* \sa setVolume( int )
*/
virtual int getVolume() const = 0;
/**
* \brief Return the length in milliseconds
* \return The length of the underlying rendered target in milliseconds
......@@ -197,6 +213,10 @@ signals:
* \sa paused()
*/
void playing();
/**
* \brief Emmited when volume change occurs.
*/
void volumeChanged();
/**
* \brief Emmited when rendered frame has been changed.
* \param newFrame The new current frame
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment