[ekiga] Revert "Removed use of engine.h from opal's audio code"
- From: Damien Sandras <dsandras src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [ekiga] Revert "Removed use of engine.h from opal's audio code"
- Date: Sat, 17 Oct 2009 11:36:10 +0000 (UTC)
commit 538bcf786f7ca3f1c94daa50a719ce42aba58e68
Author: Damien Sandras <dsandras seconix com>
Date: Sat Oct 17 13:24:56 2009 +0200
Revert "Removed use of engine.h from opal's audio code"
This reverts commit 448b62a5c0adc640c63e387adc07a3c2d0801338
and brings audio back into Ekiga.
lib/engine/components/opal/opal-audio.cpp | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-audio.cpp b/lib/engine/components/opal/opal-audio.cpp
index 816d147..d1e8d47 100644
--- a/lib/engine/components/opal/opal-audio.cpp
+++ b/lib/engine/components/opal/opal-audio.cpp
@@ -42,11 +42,38 @@
#pragma implementation "opal-audio.h"
#include "opal-audio.h"
+#include "engine.h"
namespace OpalLinkerHacks {
int loadOpalAudio;
}
+/* Plugin definition */
+class PSoundChannel_EKIGA_PluginServiceDescriptor
+: public PDevicePluginServiceDescriptor
+{
+ public:
+ virtual PObject *CreateInstance (int) const
+ {
+ return new PSoundChannel_EKIGA (*(engine_get_service_core ()));
+ }
+
+
+ virtual PStringArray GetDeviceNames(int) const
+ {
+ return PStringList("EKIGA");
+ }
+
+ virtual bool ValidateDeviceName (const PString & deviceName,
+ int) const
+ {
+ return deviceName.Find("EKIGA") == 0;
+ }
+} PSoundChannel_EKIGA_descriptor;
+
+PCREATE_PLUGIN(EKIGA, PSoundChannel, &PSoundChannel_EKIGA_descriptor);
+
+
///////////////////////////////////////////////////////////////////////////////
PSoundChannel_EKIGA::PSoundChannel_EKIGA (Ekiga::ServiceCore & _core):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]