Joe Sansalone 6 Posted February 17, 2022 Hi, Would a mismatch of SDK (15.2) to device (15.3) possibly cause something not to work? When I test an app on the iPhone, everything works except audio doesn't play. And the code to make audio play worked on previous iOS. I checked over and over and the code is correct. Could the SDK/device iOS version mismatch be the problem? (15.2 SDK vs 15.3 device) Joe Share this post Link to post
Dave Nottage 557 Posted February 17, 2022 2 hours ago, Joe Sansalone said: And the code to make audio play worked on previous iOS. Which version of iOS? Do you have a test project that reproduces the problem? 2 hours ago, Joe Sansalone said: Could the SDK/device iOS version mismatch be the problem? In this case, it's unlikely. I'm working with iOS SDK 15.0 on 15.3 devices, including playing audio. I know this sounds a bit bone-headed, but also check that your mute button is not switched. I've actually done that myself 🙂 Share this post Link to post
Joe Sansalone 6 Posted February 18, 2022 (edited) It worked on iOS 10, iOS 9. Yeah I checked that the mute button is not switched. (it's not bone-headed to suggest that, as I TOO have done things like that lol) I can reproduce the "no audio" problem on my iPhone 12 (iOS 15.3). I'm going to TRY running something in Xcode that is very similar and see what happens. I'll update asap. NOTE: I'm using AVAudioSession and Audio Unit (Output, RemoteIO) - i.e. using AudioToolBox Edited February 18, 2022 by Joe Sansalone forgot something 1 Share this post Link to post
Joe Sansalone 6 Posted February 18, 2022 I stripped down the app to the bare essential that doesn't work. In other words, the audio is not playing (using AudioToolbox, rendering audio samples via code). Attached is the project. Audio Problem Test.zip Share this post Link to post
Joe Sansalone 6 Posted February 18, 2022 Tested an Xcode project that generates tones in the same way that my Delphi app does. Works on my iPhone 12 via Xcode (audio is heard). BUT Delphi app doesn't work on device. Share this post Link to post
Dave Nottage 557 Posted February 26, 2022 You might have to file a report in QP. I suggest fixing the test project, though - I had to scrap the dpr/dproj and start a new one. Share this post Link to post
Joe Sansalone 6 Posted February 26, 2022 I did file a report in QP. I downloaded the zipped test project and it opens fine in Delphi IDE and builds. I'm running Delphi 11 on Windows 11 ARM via Parallels on macOS (ARM). What error did you get? Share this post Link to post
Dave Nottage 557 Posted February 26, 2022 5 hours ago, Joe Sansalone said: I downloaded the zipped test project and it opens fine in Delphi IDE and builds. Yes, it opens fine, but it has a bunch of references to icon files (for example) that are missing, and I had problems with provisioning (sorry, I did not note down the error messages). Rather than attempt to resolve the issues, I recreated the project. Share this post Link to post
Joe Sansalone 6 Posted February 26, 2022 My mistake - forgot about those references to icon files. Share this post Link to post