• 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
MusicSequenceFileCreate fails to save tracks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MusicSequenceFileCreate fails to save tracks


  • Subject: MusicSequenceFileCreate fails to save tracks
  • From: Valentin Radu <email@hidden>
  • Date: Fri, 12 Dec 2014 03:07:31 +0200

Hi everybody,


I’m trying to save a sequence to disk but it seems MusicSequenceFileCreate doesn’t work for some reason. In the code below, there is no error thrown, however, when doing a CAShow on the testSequence, I can see it's not the same as the old sequence,  all the tracks are missing. The only, let’s say odd, thing about the tracks is that they have a user event with some data at timestamp 0. Did anyone encountered issue this before? Any pointers on why this is happening? Is is a bug? 

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,
                                                             NSUserDomainMask, YES);
        NSString *documentsDirectory = [paths objectAtIndex:0];
        NSString *midiPath = [documentsDirectory
                              stringByAppendingPathComponent:@"test.mid"];
        NSURL* url = "" style="font-variant-ligatures: no-common-ligatures; color: #c35900" class="">NSURL alloc] initFileURLWithPath:midiPath];

        

        VRC(MusicSequenceFileCreate(sequence, (__bridge CFURLRef)url, kMusicSequenceFile_MIDIType, kMusicSequenceFileFlags_EraseFile, 0));

        

        MusicSequence testSequence;
        VRC(NewMusicSequence(&testSequence));
        VRC(MusicSequenceFileLoad(testSequence, (__bridge CFURLRef)url, kMusicSequenceFile_MIDIType, 0));


Valentin Radu
codewisesystems.com
cocoaexposed.com

 _______________________________________________
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: MusicSequenceFileCreate fails to save tracks
      • From: Valentin Radu <email@hidden>
  • Prev by Date: Re: Component Manager Audio Units deprecation
  • Next by Date: External Audio Cards Causing Crash
  • Previous by thread: Re: Component Manager Audio Units deprecation
  • Next by thread: Re: MusicSequenceFileCreate fails to save tracks
  • Index(es):
    • Date
    • Thread