diff options
author | Dimitri John Ledkov <dimitri.ledkov@canonical.com> | 2014-02-20 16:10:52 +0000 |
---|---|---|
committer | Dimitri John Ledkov <dimitri.ledkov@canonical.com> | 2014-02-20 19:15:57 +0000 |
commit | d20f4a64eba38690337ac914a04a113de7caf125 (patch) | |
tree | 6828990e93ca5d8847b8cde2f2febb6566b0d53f /src/player/SoundNode.h | |
parent | 28161e9209f21be1a600f637565ecede94855a36 (diff) |
New upstream release. Closes: #721047debian/1.8.0-1
Drop all patches, none are needed with this new upstream release.
Port to dh.
Specify foreign in configure.ac.
Diffstat (limited to 'src/player/SoundNode.h')
-rw-r--r-- | src/player/SoundNode.h | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/src/player/SoundNode.h b/src/player/SoundNode.h index 04f927d..66f9308 100644 --- a/src/player/SoundNode.h +++ b/src/player/SoundNode.h @@ -1,6 +1,6 @@ // // libavg - Media Playback Engine. -// Copyright (C) 2003-2011 Ulrich von Zadow +// Copyright (C) 2003-2014 Ulrich von Zadow // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -28,16 +28,15 @@ #include "../base/IFrameEndListener.h" #include "../base/UTF8String.h" -#include "../audio/IAudioSource.h" namespace avg { -class VideoDecoder; +class AsyncVideoDecoder; -class AVG_API SoundNode : public AreaNode, IFrameEndListener, IAudioSource +class AVG_API SoundNode : public AreaNode, IFrameEndListener { public: - static NodeDefinition createDefinition(); + static void registerType(); SoundNode(const ArgList& args); virtual ~SoundNode(); @@ -52,8 +51,8 @@ class AVG_API SoundNode : public AreaNode, IFrameEndListener, IAudioSource const UTF8String& getHRef() const; void setHRef(const UTF8String& href); - double getVolume(); - void setVolume(double volume); + float getVolume(); + void setVolume(float volume); void checkReload(); long long getDuration() const; @@ -68,8 +67,6 @@ class AVG_API SoundNode : public AreaNode, IFrameEndListener, IAudioSource virtual void onFrameEnd(); - virtual int fillAudioBuffer(AudioBufferPtr pBuffer); - private: void seek(long long destTime); void onEOF(); @@ -85,15 +82,16 @@ class AVG_API SoundNode : public AreaNode, IFrameEndListener, IAudioSource std::string m_Filename; bool m_bLoop; PyObject * m_pEOFCallback; - bool m_bAudioEnabled; + long long m_SeekBeforeCanRenderTime; long long m_StartTime; long long m_PauseTime; long long m_PauseStartTime; - VideoDecoder * m_pDecoder; - double m_Volume; + AsyncVideoDecoder* m_pDecoder; + float m_Volume; SoundState m_State; + int m_AudioID; }; } |