[hatari-devel] Can I use portaudio lib ?

Laurent Sallafranque laurent.sallafranque at free.fr
Mon Sep 28 23:59:36 CEST 2009


I've just added the following lines to Makefile-default.cnf

# X11 configuration (for SDL window embedding)
X11_LIBS := $(shell pkg-config --libs x11)
ifneq ($(X11_LIBS),)
X11_CFLAGS := $(shell pkg-config --cflags x11)
CFLAGS += $(X11_CFLAGS) -DHAVE_X11=1
LIBS += $(X11_LIBS)
endif

+ # PORTAUDIO configuration (for PORTAUDIO embedding)
+ PORTAUDIO_LIBS := $(shell pkg-config --libs portaudio-2.0)
+ ifneq ($(PORTAUDIO_LIBS),)
+ PORTAUDIO_CFLAGS := $(shell pkg-config --cflags portaudio-2.0)
+ CFLAGS += $(PORTAUDIO_CFLAGS) -DHAVE_PORTAUDIO=1
+ LIBS += $(PORTAUDIO_LIBS)
+ endif

Is it OK for you all ?

Regards

Laurent



Thomas Huth a écrit :
> On Sun, 27 Sep 2009 23:51:17 +0200
> Laurent Sallafranque <laurent.sallafranque at free.fr> wrote:
>
>   
>> At least, I don't care to include the library or not, I just need it
>> to work for Linux, Windows and Mac.
>>     
>
> Ok, so as long as there's no urgent need for including the portaudio
> lib directly into Hatari, I'd say, better use the system's shared
> libraries. I can then add a test to the "configure" script later if you
> don't want to do this on your own.
>
>   
>> I'm writing a new function : microphone.c that includes 'portaudio.h'.
>> That's all I need to play with the entrance sound :)
>>
>> (If I manage to do it as I wish, we'll be able to speak like robots 
>> (with AFM or winrec) in a few days ;)
>>     
>
> Coooool, Audio Fun Machine, that brings back memories :-)
>
>   
>> If you don't like 'microphone.c', don't hesitate to propose a better 
>> name for it :)
>>     
>
> Maybe 'mic.c', that's shorter? Well, I don't really mind,
> 'microphone.c' is also a good name.
>
>  Thomas
>
>
>
>
>   





More information about the hatari-devel mailing list