pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Adding native audio support to ports
Hi, I'm adding native audio support to pcaudiolib. I pushed it to
wimp some time ago and I wish this will correct some problems I
noticed with it using oss. It's used by espeak-ng, which I used in
my port of emacspeak.
I used "sun" in the names of structures, functions etc, thinking
about solaris and its derivates. But now editing the file that sets
the order of the audio interfaces to check:
[...]
#if defined(_WIN32) || defined(_WIN64)
if ((object = create_xaudio2_object(device, application_name, description)) != NULL)
return object;
#else
#if defined(__APPLE__)
if ((object = create_coreaudio_object(device, application_name, description)) != NULL)
return object;
[...]
I was deciding what definitions to add in Makefile according to
OPSYS and some doubts came to my mind.
What OPSYS values are reasonable to check for, to set sun? If I
didn't get it wrong, Solaris and SunOS are included in the same
platform SunOS.mk, but ports like audio/jackd build the package
using oss for SunOS.
Is the audio api supposed to maintain compatibility with solaris
and illumos in the future or it would be better to start using
something like "netbsdaudio" instead of "sun"?
adr
Home |
Main Index |
Thread Index |
Old Index