Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iphone ios SDK Deprecation #749

Open
simdax opened this issue Nov 1, 2022 · 6 comments · May be fixed by #881
Open

Iphone ios SDK Deprecation #749

simdax opened this issue Nov 1, 2022 · 6 comments · May be fixed by #881
Assignees
Labels
P5 Priority: Lowest

Comments

@simdax
Copy link

simdax commented Nov 1, 2022

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

@simdax simdax changed the title Ios deprecation Ios simultaor deprecation Nov 1, 2022
@simdax
Copy link
Author

simdax commented Nov 1, 2022

I have to admit, than trying to compile only one file at a time, I see that int pa_core_internal.h, the compiler is giving up !

did not find header 'CoreAudio.h' in framework 'CoreAudio'

Indeed, for ios-simulator, coreaudio is way slimer !
Capture d’écran 2022-11-01 à 21 34 31

@simdax simdax changed the title Ios simultaor deprecation Iphone ios SDK Deprecation Nov 1, 2022
@RossBencina
Copy link
Collaborator

I don't understand, are you using our master branch? It does not support iOS. I believe someone is working on an iOS version but we have not merged it.

@RossBencina RossBencina added the P5 Priority: Lowest label Nov 7, 2022
@fabiankropp
Copy link

fabiankropp commented Apr 6, 2023

@RossBencina any chance to shed some light on who is working on that IOS version?
I would be willing to support and test for a project I am working on. I assume there would be more people being interested in that.

@RossBencina
Copy link
Collaborator

@fabiankropp Alexander Carôt posted a patched version here:

https://listserv.cuit.columbia.edu/scripts/wa.exe?A2=PORTAUDIO;a47942dc.2203C&S=

I think it would be best to reignite discussion on the mailing list. There are certainly people interested in it.

@fabiankropp
Copy link

Thanks for sharing, I will try to get in touch via the mailing list. To get this up to speed. I will take a look at the implementation as well.

@fabiankropp
Copy link

BTW. the mentioned "deprecation" is no deprecation, these types are just unavailable in iOS.
IMHO this ticket can be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P5 Priority: Lowest
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants