• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
MusicPlayer in iOS9
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MusicPlayer in iOS9


  • Subject: MusicPlayer in iOS9
  • From: Sam Tarakajian <email@hidden>
  • Date: Mon, 24 Aug 2015 19:39:44 -0400

Hi,

I'm working on an app that uses MusicPlayer to play a looping MIDI track. However, I've found that in the iOS 9 beta looping no longer seems to work.

I start by creating a very simple AUGraph, with just an AUSampler and a remoteIO node in the graph. Then I create a MusicPlayer, a MusicSequence and a MusicTrack. I set the length of the track to be 4, the loop length to 4 and the number of loops to 0 (infinite looping). I add four midi note messages to this track, all of duration 0.5, with timestamps 0, 1, 2 and 3.

When I start the music player, I hear the first three notes play correctly. However, audio processing stalls before the final note, and calling MusicPlayerGetTime on the music player returns a timestamp just before the last note in the track.

Any idea what I might be doing wrong? The code works as expected (playing an infinite loop) in iOS 8.4

https://gist.github.com/starakaj/cc1a68c9b13c08d98dd4 is basically what I'm trying to do.

Thanks,
-Sam
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: MusicPlayer in iOS9
      • From: Douglas Scott <email@hidden>
  • Prev by Date: Very basic concrete questions about a LogicPro instrument plugin
  • Next by Date: Re: MusicPlayer in iOS9
  • Previous by thread: Very basic concrete questions about a LogicPro instrument plugin
  • Next by thread: Re: MusicPlayer in iOS9
  • Index(es):
    • Date
    • Thread