2009-09-29 6 views

Répondre

3

J'ai trouvé quelques sons à cet endroit:

/System/Library/Audio/UISounds/ 

Vous pouvez charger une façon suivante:

tickSound = [[SoundEffect alloc] initWithContentsOfFile: @"/System/Library/Audio/UISounds/Tock.caf"]; 

Ou procurez-vous une liste:

- (void) getSoundNames 
{ 
    NSArray *array = [filemanager contentsOfDirectoryAtPath:@"/System/Library/Audio/UISounds/" error:nil]; 
    self.soundNamesArray = array; 
} 

Cela dit, je Je ne suis pas sûr si Apple approuve l'utilisation de ces sons.

Questions connexes