I have a method AudioServicesCreateSystemSoundID that according to the documentation seems to require a memory address passed in (*outSystemSoundID).
From Apple's Website...
OSStatus AudioServicesCreateSystemSoundID (
CFURLRef inFileURL,
SystemSoundID *outSystemSoundID
);
I have this code that works when I create a local object within the method. The object is assigned correctly to the memory location.
This returns myTest with code: 0 ( this is what I want )
SystemSoundID thisSoundID;
SystemSoundID myTest = AudioServicesCreateSystemSoundID
(
(__bridge CFURLRef)(url), &thisSoundID
);
But this is what I am trying to do. (self.theSound I have set up as a SystemSoundID property).
This returns myTest with error code : 4294967246 ( I do not want this )
SystemSoundID myTest = AudioServicesCreateSystemSoundID
(
(__bridge CFURLRef)(url), self.theSound
);