Skip to content

removed AudioQueue and added direct IO callback#26

Draft
konradglas wants to merge 1 commit into
musescore:mainfrom
konradglas:direct-core-audio-callback
Draft

removed AudioQueue and added direct IO callback#26
konradglas wants to merge 1 commit into
musescore:mainfrom
konradglas:direct-core-audio-callback

Conversation

@konradglas
Copy link
Copy Markdown
Contributor

MacOS Only:

  • Replaces the use of AudioQueue with a direct callback from CoreAudio
  • Goal of this change is to have more control over and reduce latency
  • And direct control over subsequent threading

Notes/Assumptions:

  • Core Audio callback expects Float32 format to be put inside its OutputBuffer
  • We will always request 2 channels
  • Device Stopping happens inside the audio callback. This is a bit unusual, but I found the same pattern in a widely used audio framework. It should at least guarantee that after the isStopped flag is set, the callback will not be called anymore and the used Data can be cleared.

- remove latency introduced by rebuffering
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant