D audio playing and analysis library?
Chris via Digitalmars-d
digitalmars-d at puremagic.com
Tue Apr 28 08:42:46 PDT 2015
On Tuesday, 28 April 2015 at 13:43:02 UTC, Gan wrote:
> On Tuesday, 28 April 2015 at 11:28:42 UTC, Dragos Carp wrote:
>> On Tuesday, 28 April 2015 at 11:18:14 UTC, Gan wrote:
>>> I found this: https://github.com/p0nce/dplug
>>>
>>> Which seems to be a good analysis library but I haven't found
>>> a library to play sounds.
>>> Is there one?
>>
>> https://github.com/D-Programming-Deimos/portaudio
>
> Downloaded it, put the D example in a source folder, downloaded
> the official library, compiled the official library, stuck the
> libportaudio.la with the example, ran DUB and it can't the port
> audio library.
> Undefined symbols for architecture x86_64:
> "_Pa_CloseStream", referenced from:
> __Dmain in unknown.o
>
> The source is 3 years old, probably why no dub.json file. Know
> how to fix the library problem?
It should work, I'm using it a lot. I use libportaudio.a, make
sure you reference deimos/portaudio.di or have it in your
`source` folder. Here's an excerpt from my dub.json (you might
have to include other libs too):
"libs": [
"portaudio",
"asound",
"jack",
"sndfile",
"FLAC",
"vorbisenc",
"vorbis",
"ogg"
],
Also, compile or download the portaudio lib for x86_64, if you're
on 64bit. Alternatively, compile your code with -m32.
BTW, did you pass the library to the compiler and linker?
More information about the Digitalmars-d
mailing list