Re: system sounds in iOS
Re: system sounds in iOS
- Subject: Re: system sounds in iOS
- From: Donald Hall <email@hidden>
- Date: Sun, 21 Dec 2014 20:35:53 -0700
Thanks to all who replied.
What I ended up doing was finding a suitable sound file on the Internet at this place: http://www.mediacollege.com/downloads/sound-effects/beep/
These files are free to use (donation requested).
I also found this: http://raisedbeaches.com/octave/ as an alternate source.
I found sample code from Apple (quite out of date) that indicated in the “Read Me” we should provide our own sound files. The current documentation for System Sound Services under “AudioServicesPlayAlertSound” seems to indicate system sounds are not available to 3rd party apps.
Anyway, have it working now. My app makes a short beep when the user attempts to type a non-number character in a number only field.
John: Thanks for the pointer to Bfxr. My main machine doesn’t have Flash installed, so I’ll look at web site later.
Don
------------
Don Hall
Apps & More Software Design, Inc.
http://www.appsandmore.com
email@hidden
On Dec 21, 2014, at 4:32 PM, John Joyce <email@hidden> wrote:
> You could try the free download (or in-browser JavaScript version) of a simple sound fx generator called Bfxr at www.bfxr.net
>
>> On Dec 21, 2014, at 3:53 AM, Maxthon Chan <email@hidden> wrote:
>>
>> There is nothing preventing you from pointing a microphone and hitting record button. If you can find some device, preferably mechanical, that produces those sounds point a microphone at it and use Garageband to touch it up a little bit.
>>
>> If you have you can also make your own sound effects with your preferred instrument. I have kept my MIDI keyboard just for this purpose, creating alert chords for my apps.
>>
>>> On Dec 21, 2014, at 02:28, Carl Hoefs <email@hidden> wrote:
>>>
>>> On Dec 19, 2014, at 11:12 PM, Donald Hall <email@hidden> wrote:
>>>
>>>> I want to play a sound indicating that the user has tried to type a non-allowed character (e.g. a letter where a number is needed) in conjunction with "textField:textField shouldChangeCharactersInRange:replacementString:” I was thinking of “tink.caf” or “tock.caf”
>>>
>>>
>>> #import <AVFoundation/AVAudioPlayer.h>
>>> #import <AssetsLibrary/AssetsLibrary.h>
>>>
>>> AudioServicesPlaySystemSound(1057);
>>>
>>> -Carl
>>>
>>>
>>> ___
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden