[vlmc-devel] commit: GenericRenderer.h: Add virtual interfaces to set and get Volume. ( Rohit Yadav )
git at videolan.org
git at videolan.org
Sun Sep 26 22:14:50 CEST 2010
vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Mon Sep 27 01:56:52 2010 +0530| [855b5ecd3ad33fb11d46a0f31ab21b552765659a] | committer: Rohit Yadav
GenericRenderer.h: Add virtual interfaces to set and get Volume.
Add signal for notifying volume change.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=855b5ecd3ad33fb11d46a0f31ab21b552765659a
---
src/Renderer/GenericRenderer.h | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/src/Renderer/GenericRenderer.h b/src/Renderer/GenericRenderer.h
index 79dcaad..052f89e 100644
--- a/src/Renderer/GenericRenderer.h
+++ b/src/Renderer/GenericRenderer.h
@@ -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.
*
@@ -96,6 +105,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
* \sa getLength()
@@ -198,6 +214,10 @@ signals:
*/
void playing();
/**
+ * \brief Emmited when volume change occurs.
+ */
+ void volumeChanged();
+ /**
* \brief Emmited when rendered frame has been changed.
* \param newFrame The new current frame
* \param reason The reason for changing frame
More information about the Vlmc-devel
mailing list