[beast/win32] Adapted driver to new bse API.



commit 49848bf3c1452e8c1e6865ed3447d808cff3e5ec
Author: Stefan Westerfeld <stefan space twc de>
Date:   Mon Sep 28 09:16:30 2009 +0200

    Adapted driver to new bse API.
    Allow compiling as dll under windows by setting -no-undefined.
    
    Part of 015_engine_wakeup_and_portaudio.diff.

 drivers/bse-portaudio/Makefile.am               |    4 ++--
 drivers/bse-portaudio/bsepcmdevice-portaudio.cc |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/drivers/bse-portaudio/Makefile.am b/drivers/bse-portaudio/Makefile.am
index f513eb9..719f3a9 100644
--- a/drivers/bse-portaudio/Makefile.am
+++ b/drivers/bse-portaudio/Makefile.am
@@ -13,8 +13,8 @@ EXTRA_DIST =
 # extra dependancies
 configure: acbeast.m4
 
-drivers_ldflags     = -avoid-version
-drivers_libs        = $(BSE_LIBS)
+drivers_ldflags     = -avoid-version -no-undefined
+drivers_libs        = $(BSE_LIBS) -lsfi
 driversdir          = $(bsedriverinstalldir)
 drivers_LTLIBRARIES = bsepcmdevice-portaudio.la
 
diff --git a/drivers/bse-portaudio/bsepcmdevice-portaudio.cc b/drivers/bse-portaudio/bsepcmdevice-portaudio.cc
index 6bf58bd..05d1a4f 100644
--- a/drivers/bse-portaudio/bsepcmdevice-portaudio.cc
+++ b/drivers/bse-portaudio/bsepcmdevice-portaudio.cc
@@ -29,7 +29,7 @@ using std::string;
 using std::vector;
 using std::max;
 
-static BIRNET_MSG_TYPE_DEFINE (debug_pcm, "pcm", BIRNET_MSG_DEBUG, NULL);
+static SFI_MSG_TYPE_DEFINE (debug_pcm, "pcm", SFI_MSG_DEBUG, NULL);
 #define DEBUG(...) sfi_debug (debug_pcm, __VA_ARGS__)
 
 
@@ -54,7 +54,7 @@ static guint            port_audio_device_latency             (BsePcmHandle
 /* --- define object type and export to BSE --- */
 static const char type_blurb[] = ("PCM driver implementation using PortAudio (http://www.portaudio.com)");
 BSE_REGISTER_OBJECT (BsePcmDevicePortAudio, BsePcmDevice, NULL, "", type_blurb, NULL, bse_pcm_device_port_audio_class_init, NULL, bse_pcm_device_port_audio_init);
-BSE_DEFINE_EXPORTS (__FILE__);
+BSE_DEFINE_EXPORTS();
 
 /* --- variables --- */
 static gpointer parent_class = NULL;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]