Skip to content

Minor issues in objc2-audio-toolbox #859

Description

@Quant1um

After attempting to port my code to objc2-audio-toolbox I ran into the following issues:

  • Interacting with types with flexible array members (like AudioBufferList) is currently extremely annoying. I think it would be better if the array member had a size of zero and not one, so it can be treated as a header part only. Or better yet, if there were helper methods for allocating/accessing/deallocating structs with FAMs.
  • Some definitions that refer to union types are missing. objc2-audio-toolbox missing definitions: AudioUnitParameterEvent* and AudioUnitEvent* #858
  • Callback types (AURenderCallback and friends) are Option<fn(...) -> ...>, which is slightly annoying if you want to store the inner function pointer without the Option (you have to refer to it by its full name). Not a big deal.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frameworkAffects the framework crates and the translator for themenhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions