Questions tagged [system-sounds]
80 questions
1
vote
1 answer
How to play Play a system sound with macOS SwiftUI
I am trying to play a system sound with a MacOS SwiftUI application.
What I wish is just to play a system sound when an image appears...
My code (part of it) is the following
import Foundation
import Cocoa
import SwiftUI
import…

Giuseppe Biondo
- 23
- 1
- 5
1
vote
2 answers
kAudioSessionCategory_MediaPlayback is silenced with ringer off?
according to the documentation the correct way to allow sounds to be played even if the ringer switch is set to off is like so:
UInt32 sessionCategory = kAudioSessionCategory_MediaPlayback;
…

user7865437
- 812
- 14
- 28
1
vote
1 answer
List of default SystemSoundID
I'm trying to implement AudioServicesPlaySystemSound(SystemSoundID(****)) therefor I need a list of existing IDs for Apples SystemSounds. Searching through various posts I found this on GitHub. I couldn't find a fitting sound in this list for my…

Fynnwind
- 31
- 1
- 3
1
vote
1 answer
system sounds aren't affected by device volume for some users
I have a universal app that uses a combination of SystemSounds and AVAudioPlayer sounds. Everything works fine on all of my devices. However, I've had a couple reports from users that the system sounds play at what seems to be the device's full…

arlomedia
- 8,534
- 5
- 60
- 108
1
vote
1 answer
How to play SystemSound in c# and wait for it to complete?
You can play a system sound as follows:
SystemSounds.Asterisk.Play();
But it plays asynchronously. This is usually ok, but I want to wait for it to complete, and then run some other code afterwards. How to do this?

1800 INFORMATION
- 131,367
- 29
- 160
- 239
1
vote
1 answer
How to turn off NFC sound
I have a problem with NFC. Is there any posible way to turn off the NFC sound in Android API 16 and higher?
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
…

amir houshmand
- 23
- 1
- 6
1
vote
0 answers
Can i play default button sound if system sound is OFF
I am getting the default button sound using the following code. But I want to play the default button sound to my button click. If the system sound is off.
I am using this code to get the default sound and play in my button on…

Lassie
- 984
- 11
- 25
1
vote
1 answer
iOS System Volume Control
AudioServicesPlaySystemSound() is playing my sounds using ringer volume.
I want them to play according to system volume instead.
How to?
user444854
1
vote
1 answer
Tick sound to be kept in memory. AVAudioPlayer? SystemSounds? Core Audio?
I'm trying to play a very small audio file - it's roughly 0.05s in length, and it's an uncompressed .wav file.
Rgiht now, I'm using AVAudioPlayer to play the sound.
I intend to play the sound with high rapidity alongside a spinner, a la The Price Is…

MikeyWard
- 1,123
- 9
- 19
1
vote
0 answers
button for mute every SystemSound
I used AVAudioPlayer, but it's too laggy, if I use this code:
NSString *soundFile = [[NSBundle mainBundle] pathForResource:@"MySound" ofType:@"caf"];
NSURL *soundFileURL = [NSURL…

Magyar Miklós
- 4,182
- 2
- 24
- 42
1
vote
1 answer
How to play a System Sound on the iPhone/iPad?
What is the code to play a (one of the) system sound(s)?
Not my own sound file, not an included (in my app) one. A system sound (like Basso, Blow, Bottle, Frog, etc - the .aiff ones).
I found their names to the Link but now I want to play them.
Code…

Gik
- 528
- 5
- 18
1
vote
1 answer
How Can I repeat a System Sound
I want to repeat the sounds that are send to this method?
- (void) playSound:(CFURLRef)soundFileURLRef {
SystemSoundID soundID;
OSStatus errorCode = AudioServicesCreateSystemSoundID(soundFileURLRef, &soundID);
if (errorCode != 0) {
…

John Wilund
- 339
- 4
- 13
1
vote
1 answer
MonoTouch Play System Sound
I would like to play a beep sound, when my alert dialog appears. How do I play the sound when a push notification appears? The code I need is similar to these links:
http://iosdeveloperzone.com/2011/05/23/snippet-playing-a-system-sound/
I cannot…

Joseph Anderson
- 4,114
- 4
- 45
- 99
0
votes
0 answers
AudioServicesPlaySystemSounds and Notification Sounds Have Stopped Working
All of a sudden, none of the sounds in the iOS app I'm developing (with Swift) are working. This goes for the AudioServicesPlaySystemSounds calls as well as notification sounds with a custom .aiff file. No sounds. They were working great until just…

MultiGuy
- 912
- 2
- 17
- 34
0
votes
0 answers
How control "system sounds" volume (NOT Masetvolume) of windows?
i have certain problem, since i am using a custom windows design (retro), which comes with wallpaper, cursor icons and sounds for Windows system sounds like alert or closing windows.
(Basically simple stuff)
Now i got the problem my "System Sounds"…

Reke Unhs
- 9
- 4