macports libsndfile 1.0.28 Mac OS X 10.4.11 Tiger
Ryan Schmidt
ryandesign at macports.org
Sat Jan 27 14:10:41 UTC 2018
On Jan 27, 2018, at 06:04, Jan Stary wrote:
>> --- libsndfile-1.0.28/programs/sndfile-play.c.orig 2018-01-26 23:13:33.000000000 +0100
>> +++ libsndfile-1.0.28/programs/sndfile-play.c 2018-01-26 23:15:17.000000000 +0100
>> @@ -61,7 +61,9 @@
>>
>> #elif (defined (__MACH__) && defined (__APPLE__))
>> #include <AvailabilityMacros.h>
>> - #include <Availability.h>
>> + #if defined(MAC_OS_X_VERSION_10_5)
>> + #include <Availability.h>
>> + #endif
>>
>> #elif HAVE_SNDIO_H
>> #include <sndio.h>
>
> So 10.4.11 does not have Availability.h (right?). Can someone
> comment on that please?
Correct, Availability.h was introduced in Mac OS X 10.5. 10.4 and earlier must use AvailabilityMacros.h instead.
> On Jan 27, 2018, at 06:43, Jan Stary wrote:
>
>> PS: Does sndfile-play actually work for you then, i.e. plays files?
>> For me, it has been saying
>>
>> OS X 10.8 and later have a new Audio API.
>> Someone needs to write code to use that API.
>>
>> since 10.5
>
> ... probably meaning the Darwin version, as in
>
> Darwin mb.stare.cz 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
>
> - not the MacOSX release version.
As far as I can see in
https://github.com/erikd/libsndfile/commit/49017a1b08322770e91ba597d4b8e12b20f4ae14
the error message refers to OS X 10.8, a.k.a. Darwin 12. I'm not sure which new audio API they're referring to.
> However, it also says that on MacOSX 10.5.8, which is
>
> Darwin mac.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01
> PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
I agree, it prints the error for me on Mac OS X 10.6 as well. It doesn't seem like it should be doing that.
It is because sndfile-play support for OS X 10.7 and earlier was removed in this commit:
https://github.com/erikd/libsndfile/commit/50a4098e9ffe56bcfd2aab06a14769ff9ffbbac2
I'm not sure why they did that, since they never wrote code for sndfile-play for OS X 10.8 or later, making it completely useless on all versions of macOS.
More information about the macports-users
mailing list