Post

Replies

Boosts

Views

Activity

Reply to Determine Core Audio Parameter Type
from AudioToolbox/AudioUnitParameters.h, CF_ENUM(AudioUnitParameterID) { // Global, LinearGain, 0->1, 1 kHALOutputParam_Volume = 14  }; AudioUnitSetParameter is declared in AudioToolbox/AUComponent.h, here you will also find: typedef Float32 AudioUnitParameterValue;
Topic: Media Technologies SubTopic: Audio Tags:
Mar ’22
Reply to Swift Playgrounds: Learn to Code 1: Roll Right Roll Left Infinitely Walking Around
I entered your code and ran it. Byte doesn't stop walking because Byte isn't done. There's a little scoreboard at the top left of the scene - it shows Bytes has collected 1/1 gems and tripped 0/1 switches. Try to split your code into functions which do only one thing, and are well named. For instance, rename 'checker' to 'checkSwitch' and have it only change the switch state if necessary, rather than sometimes changes switch state, and sometimes move forward. In this exercise, the path is predictable (you can see it), so your steps can be a list of instructions, with no branches and no conditionals.
Apr ’22
Reply to What is the next step in coding?
I think the next step beyond "learning coding" is learning to apply that knowledge to a particular domain. Code does something, usually something useful to yourself or other people. What useful thing would you like to make possible? What would you like to learn, and how does being able to code help you with that goal?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’22
Reply to CoreMedia Camera Extension fails to activate
Quinn, thank you for the hint. I was filtering the Console output on my app name, the culprit was fingered by sysextd a few lines further up when I turned off that filter - I didn't prefix my Mach service name with the name of the app group in my entitlement. For future reference, the error 9 is listed in SystemExtension/SystemExtensions.h, and the term to search the SDK for is "OSSystemExtensionErrorDomain"
Topic: App & System Services SubTopic: Core OS Tags:
May ’22
Reply to Trace/BPT trap: 5 problem in m1 mac
I'm pretty sure the reason this is happening is because you are trying to put the string "helloworld" into x. x has room for 10 chars, "helloworld" requires 11, because strcat wants to put the terminating null into the destination too. You can right-click on strcat and choose Services/Open man page in Terminal from the contextual menu to read about the correct use of strcat.
Topic: UI Frameworks SubTopic: General Tags:
May ’22
Reply to Some help with software signing and notarization.
https://developer.apple.com/forums/thread/128166 also, read the man pages for codesign and spctl, carefully. Read the log files from your failed notarization attempt - they're telling you what is wrong. Your app isn't signed, you didn't add the timestamp flag, you didn't enable the Hardened Runtime.
Topic: Code Signing SubTopic: General Tags:
May ’22