Skip to content

Iphone ios SDK Deprecation #749

@simdax

Description

@simdax

Hello all.

I'm trying to build portaudio for Ios, and I think I face some deprecated types.

../vendor/portaudio/src/hostapi/coreaudio/pa_mac_core_utilities.h:115:5: error: unknown type name 'AudioHardwarePropertyID'; did you mean 'AudioFormatPropertyID'?
    AudioHardwarePropertyID inPropertyID,
    ^~~~~~~~~~~~~~~~~~~~~~~
    AudioFormatPropertyID
../vendor/portaudio/src/hostapi/coreaudio/pa_mac_core_utilities.h:124:5: error: unknown type name 'AudioDeviceID'; did you mean 'AudioFileID'?
    AudioDeviceID         inDevice,
    ^~~~~~~~~~~~~
    AudioFileID

These defines are in AudioHardwareDeprecated.h, which not included in CoreAudio.h

I compile mac_core_utilities with this command

with meson, I'm able to compile only if I swap these two lines

    c_args: defines 
        + ['-isysroot', 
        '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk'
        #'/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk
        ]

What is the procedure to solve the problem :) ?

Thank you

Metadata

Metadata

Assignees

Labels

P5Priority: Lowest

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions