Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

has Iphone built in beep sound effect

hi i need to use beep on iphone, but the only thing i have found is this

NSString *soundPath = [[NSBundle mainBundle] pathForResource:@"alert" ofType:@"wav"];

    SystemSoundID soundID;

    AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath: soundPath], &soundID);

    AudioServicesPlaySystemSound (soundID);

    [soundPath release]; 

it is working and good code but i need to import the alert.wav file.But i rather do this with native (built in) sounds if there exist.

thanks for all the answers cs.

like image 629
Csabi Avatar asked May 03 '11 08:05

Csabi


People also ask

Why is my iPhone making a beeping noise?

Sound Notifications Random beeping is usually because of notifications you've requested. Because every app can notify you visually and audibly, and in a number of ways that you control separately, notifications can be confusing.

Why does my iPhone beep when I mute it?

This beeping mute/unmute sound effect started playing after users updated their iPhone to iOS 15 or later. This is a feature of iOS 15 and later on iPhone. While the beeping sound effect on mute and unmute annoys some users, it's not a bug, it is a feature in iOS 15 for iPhone.

What is sound recognition on the iPhone?

First introduced as part of 2020's iOS 14 update, Sound Recognition is able to, well, recognise sounds. With the feature enabled, your iPhone can detect sounds such as a crying baby, doorbell, or siren, and notify you when it recognises these sounds.


1 Answers

Reading the documentation of Apple and this, I'm almost certain that you can play that wanted sound without carrying it.

You can do this:

AudioServicesPlaySystemSound(1005);

that should do.

Reference: here

like image 175
Diego Torres Avatar answered Dec 07 '22 09:12

Diego Torres