From 30c5cb8d435540e8e6f8a00c1939e2c0022a0bbd Mon Sep 17 00:00:00 2001 From: Klaas Date: Wed, 12 Jul 2017 22:38:35 +0200 Subject: [PATCH 1/2] Added link to similar project written in Swift --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 94d50e0..356efca 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ -iOSSystemSoundsLibrary -====================== +#iOSSystemSoundsLibrary - List of all system sounds used in iOS - Run project on your iOS device to test all available system sounds - iOS Simulator does NOT play system sounds @@ -22,6 +21,9 @@ AudioServicesCreateSystemSoundID((__bridge_retained CFURLRef)fileURL,&soundID); AudioServicesPlaySystemSound(soundID); ``` +# Swift version +see https://github.com/klaas/SwiftySystemSounds + List of SystemSoundIDs ------------------------- From 10c04f22fe15ff298e2749197950c48e3c704a19 Mon Sep 17 00:00:00 2001 From: Klaas Date: Wed, 12 Jul 2017 22:41:08 +0200 Subject: [PATCH 2/2] Fixed markdown syntax --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 356efca..d644263 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,19 @@ -#iOSSystemSoundsLibrary +# iOSSystemSoundsLibrary - List of all system sounds used in iOS - Run project on your iOS device to test all available system sounds - iOS Simulator does NOT play system sounds - [Screenshot](#screenshot) -##How to use in your project: +## How to use in your project: - add ``AudioToolbox.framework`` to your project - import ``#import `` -####Play sound using SystemSoundID +#### Play sound using SystemSoundID ```objective-c AudioServicesPlaySystemSound (1003); // SMSReceived (see SystemSoundID below) ``` -####Play sound using file url +#### Play sound using file url ```objective-c NSURL *fileURL = [NSURL URLWithString:@"/System/Library/Audio/UISounds/ReceivedMessage.caf"]; // see list below SystemSoundID soundID;