How do I implement the AKSequencer.init in version 4.9
AKSequencer.init() does not compile any more, nor .newTrack() is available.
AKSequencer was renamed AKAppleSequencer so just change the types and initializer to reflect the name change. AKSequencer is our own new sequencer that does not rely on any of Apple's sequencing tools.
Related
I have been trying to create binding for SuperPowered SDK in xamarin.ios.
I have cloned this repository (https://bitbucket.org/bryonbaker/xamarin-spectrum-analyser) and have added a wrapper for advanced audio player both in xcode wrapper and xamarin wrapper as well.
It appears to have binding working in my xamarin.ios project, having said that, when using AdvancedAudioPlayer's Play() method, it doesn't produce any sound.
I have created a git repo where the code has been pushed. I wish someone could look into and let me know where I have missed anything.
https://github.com/Dhruvbhagat/SuperPoweredBinding.git
I don't see any audio I/O in the repo. The player is a "DSP object", outputting floating point audio data. If that data is not consumed by an audio I/O, then nothing will really happen.
I want to create an Audio Unit Extension for iOS using the new AU Extentions v3 framework. The documentation and sample code provided by Apple is sparse and only available in Swift format.
Does this mean it's only possible to create AU Extensions using Swift, or is it theoretically also possible using Objective-C? In other words: will I run into something blocking when I attempt to port the sample code into Objective-C?
My understanding from the session at WWDC 2015 (session 508) was that Objective-C is actually the recommended language for Audio Unit Extensions. This is because the Swift ABI has not yet stabilized, so if you built an extension with one version of Swift, and it is hosted inside an application built with a different Swift version, you'll run into problems.
This thread discusses the Swift ABI in more detail.
Update: I went back and searched asciiwwdc.com to find the comment I was thinking of (this is from session 508 of 2015 WWDC):
So if you are going to build a framework to be loaded in process on OS X, despite what we are doing here with Swift, we can't recommend that you do this on OS X because the Swift API is subject to change.
(I'm pretty sure he said ABI, but someone transcribed it as API.)
is there way how to play MIDI from the Delphi at iPhone under Delphi XE-5?
I found different articles showing how to play the MIDI under ObjectC so the iOS from version 5.0 has that support, but there is missing AudioToolbox and CoreMIDI implementation at the Delphi.
Does someone have that?
I assume you're using XE-5 because you're attempting to build a cross-platform app. You're up against a fundamental problem that some of the platforms supported by XE5 don't have MIDI at all.
However you approach this, you will need to build platform specific portions of the app to handle MIDI on iOS. The AudioToolbox API is a C API and CoreMIDI is Objective-C. Either way, you need to learn how to create Objective-C and C language bindings in Delphi, and consider writing a large part of your app using the platform's native tools and language.
A quick search with google suggests that you should be looking at the OCClass bridge.
I found that there isn't any solution so far.
So I wrote my self a tool to convert the iOS .h units into the .PAS.
It's in progress but I have already first units.
http://pjstrnad.com/my-projects/delphi-implementation-missing-ios-frameworks/
I'll appreciate if you can give me feedback. My intention is to convert completely the iOS framework so Delphi developers can use all the features of the iOS.
Thanks.
I'm writing an iOS app which can play MIDI and output its content using the AUSampler and AUGraph classes. I know for sure it supports files like Soundfont (.sf2) but this one seems to be quite antiquated.
Question: Are there any other files or sample types which this framework supports?
Thanks.
The AUSampler also supports DLS format (.dls) and AUpreset format (.aupreset)
Say, I build my app using iphoneos4.2 as the Base SDK. Will the Core MIDI part work on older devices? I suppose not, but is there a way to make it work?
Because CoreMIDI was only introduced in 4.2, older versions of the OS don't contain the framework and so cannot use it. You could use something like DSMidiWiFi as a substitute.