Search results for

“Popping Sound”

20,619 results found

Post

Replies

Boosts

Views

Activity

Custom notification sounds for app
Is it possible to use the iOS sound (and vibration) library to create custom notifications for an app, independent of standard iOS notifications, etc. as is made available to Airdrop, Facebook and Twitter? I would like to use 2-4 sounds in an app, distinct from other apps and standard iOS sounds like Reminder Alerts, Calendar Alerts, Sent Mail, Ringtone, Text Tone, etc. I prefer not to have the app share sounds configured for Reminder Alerts.
0
0
1k
Aug ’15
AudioToolBox how to make sound repeat
I used these codes so that my app plays sound when I turn on the switch:-(IBAction)play:(id)sender{ if (_soundSwitch.on) { CFBundleRef mainBundle = CFBundleGetMainBundle(); CFURLRef soundFileURLRef; soundFileURLRef = CFBundleCopyResourceURL(mainBundle, (CFStringRef) @my sound name, CFSTR (wav), NULL); UInt32 soundID; AudioServicesCreateSystemSoundID(soundFileURLRef, &soundID); AudioServicesPlaySystemSound(soundID); }else { //I didn't write any code here } }And it works. But the sound doesn't repeat and if I turn it off, the sound is still playing. Can anyone please tell me how to make the sound repeat and able to stop it when I switch it off or give me sample code? Thanks
1
0
570
Mar ’17
When is the "default alert sound" played?
Hi there, My app plays the default alert sound when received Remote Push Notification and other timing. I understand the default alert sound plays when received Remote Push Notification. However, it plays at some timing which is not the timing my app received Remote Push Notification. I have no idea what makes the default alert sound play. Is there any trigger to make the default alert sound play other than receiving Remote Push Notification?
1
0
568
Apr ’24
Custom sound for UNMutableNotificationContent | MacOS
Hello, I'm developing a macOS bar app and the goal is to fire a notification. For the notification, I want a specific sound to be played. However, while I see the notification with the wanted title and body, the sound is always the default notification sound , even though I set it to a custom one ! I looked in the Apple Documentation and verified that everything is correct with the sound file. I tried different files (.wav and .caf) and nothing worked. In the code block below, the print(Sound URL: (soundURL)) is seen in the console, which means that the file is indeed in the bundle. Xcode version : 14.3.1 macOS used : Ventura 13.4 Any help would be appreciated : code-block if let soundURL = Bundle.main.url(forResource: mixkit, withExtension: wav) { print(Sound URL: (soundURL)) content.sound = .init(named: UNNotificationSoundName(soundURL.lastPathComponent)) } else { print(Sound URL not found for mixkit.wav) } let trigger = UNTimeIntervalNotificati
0
0
387
Aug ’23
UILocalNotifications custom sound ....
Dear developers,Since several days, I'm trying to work with a UILocalNotifications in order to perform tests of a my app. When I created the XCode project, in it i included several sounds file *.mp4a and the app worked perfectly. Succcesively I try to include some audio files, with same extension, in the Documents directory of the app. But writing in the code for example: notif.soundName=[[@%@/Documents/MySound.m4a lastPathComponent] copy];, when the app is in the background modality, the notification sound is the default. Kindly I would like if anyone could help me in solving this problem if it is possible.The UILocalNotification settings are the following: UIUserNotificationType types = UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert; UIUserNotificationSettings *mySettings = [UIUserNotificationSettings settingsForTypes:types categories:nil]; [[UIApplication sharedApplication] registerUserNotificationSettings:mySettings]; UILocalNotification
1
0
559
Sep ’15
Stream Audio from URL
Hi All. Writing a swift iOS app (target iOS 13.1) and wanted to know if AVAudioPlayer or something else would fit these requirements:- Stream from URL (with auto-reconnect if network hiccups)- Stop and Start button (obviously)- Ability to choose the stop/start button images- Volume slider- Ability to use the switch object to switch between two audio streams (two different URLs)- Audio plays when app is in background- Display title/track metadata- And would really like an audio level meterI pieced together all these (with help of freelancers) when the app was in Obj-C. Now rebuilding in Swift.P.S. I'm an advanced newbie (a notch above newbie) so go easy on me :-)Thank-you!
2
0
5.7k
Oct ’19
iOS 18 Bug: NavigationStack, paths, searchable and popping to root
Hello everyone, I wanted to post this as a sanity check before I create a Feedback for this bug. I'm using Xcode 16.1 Beta (167B5001e) along with iOS 18.1 Beta. When using a NavigationStack with a bindable path and navigating to another view while searching, it won't allow you to pop to root by resetting the path. Here's some simple code: // Base code from: // https://sarunw.com/posts/how-to-pop-to-root-view-in-swiftui/ import SwiftUI struct ContentView: View { @State private var path: [Int] = [] var body: some View { NavigationStack(path: $path) { Button(Start) { path.append(1) } .navigationDestination(for: Int.self) { int in DetailView(path: $path, count: int) } .navigationTitle(Home) } } } struct DetailView: View { @Binding var path: [Int] @State private var searchText = let count: Int var body: some View { Button(Go deeper) { path.append(count + 1) } .navigationBarTitle(count.description) .toolbar { ToolbarItem(placement: .bottomBar) { Button(Pop to Root) { path = [] } } } .sea
2
0
1.1k
Aug ’24
html5 audio delay in Safari
Where: HTML5What: Audio tag (player) in conjunction with SafariIssue: Performance problemHi guys,There is a noticeable audio delay when using Safari in conjuction with onclick audio events. Specifically: the audio does not sync with the onclick event. The user may click on the icon, link, li etc. and the event takes place but the audio associated with the event does not occur until 1 - 4 secs later. This makes for cumbersom and awkward user experience.Example: https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_audio_autoplay2notice the slight delay after clicking on enable autoplay*no delay in other browsers such as firefox, chrome, etcI am new to development as well as Safari and Apple. Is this normal? or is there some specific code adjustment needed for Safari. (works fine in all other browsers).*Delay is much more pronouced depending on audio event such as games etc.
0
0
2.1k
May ’17
Visualization of Apple Music audio
Certain apps (eg. DJay) at least seem to have access to audio data from Apple Music streams, either directly or via an indirect dataset for visualization purposes either generated from audio data on the device or delivered from a remote service. Is there any framework provided by Apple or special agreement with Apple that gives access to Apple Music audio data, or sets of visualization meta data, or the ability to run processing of audio data on device or remotely (either on-demand or via preprocessing)?
0
0
270
Jun ’26
Is anybody able to actually record audio using presentAudioRecordingControllerWithOutputURL: on the device? The audio recording interface doesn't pickup audio AT ALL _ on device _.
It works fine in simulator. I can see that it picks up audio.However, when debugging on the device, the blue indicator is stuck to the left and doesn't pickup any audio. iPhone did ask for permission to use Microphone and that was allowed.Did it work for anyone so far?
11
0
3.1k
Jun ’15
Audio input on the AppleTV simulator
We're prototyping without the actual hardware, and I'm trying to port a portion of our iOS application to AppleTV. We use Audio Units for recording from the microphone.The Audio Units code seems to work fine. It's querying things like the recording frequency from the simulator, and initializing everything for recording. The hold up is the audio session. The play and record category for AVAudioSession (and all the recording based audio categories) are defined as part of AVFoundation on the AppleTV, but they're not marked as available at runtime.Does the simulator currently not support audio input? Is there a feature to enable it? And I'm assuming the hardware will allow recording for the remote microphone if these APIs are present. Is that the case?
2
0
1.1k
Sep ’15
When iOS17 has a bug and cannot record audio, play the audio to a Bluetooth device
let session = AVAudioSession.sharedInstance() do { try session.setCategory(AVAudioSession.Category.playback) try session.setActive(true) //playAndRecord //playback print(session.currentRoute.outputs) } catch { print(error) } when I ssession.setCategory(AVAudioSession.Category.playback) audio play output a2dp ble devices. session.currentRoute.outputs print bellow ` when I ssession.setCategory(AVAudioSession.Category.playAndRecord) output BluetoothA2DPOutput is gone. but it is normal in ios15-16. Is there any solution? I want to record audio and play music at the same time. And the music is output from the Bluetooth speaker
1
0
986
Dec ’23
Custom notification sounds for app
Is it possible to use the iOS sound (and vibration) library to create custom notifications for an app, independent of standard iOS notifications, etc. as is made available to Airdrop, Facebook and Twitter? I would like to use 2-4 sounds in an app, distinct from other apps and standard iOS sounds like Reminder Alerts, Calendar Alerts, Sent Mail, Ringtone, Text Tone, etc. I prefer not to have the app share sounds configured for Reminder Alerts.
Replies
0
Boosts
0
Views
1k
Activity
Aug ’15
AudioToolBox how to make sound repeat
I used these codes so that my app plays sound when I turn on the switch:-(IBAction)play:(id)sender{ if (_soundSwitch.on) { CFBundleRef mainBundle = CFBundleGetMainBundle(); CFURLRef soundFileURLRef; soundFileURLRef = CFBundleCopyResourceURL(mainBundle, (CFStringRef) @my sound name, CFSTR (wav), NULL); UInt32 soundID; AudioServicesCreateSystemSoundID(soundFileURLRef, &soundID); AudioServicesPlaySystemSound(soundID); }else { //I didn't write any code here } }And it works. But the sound doesn't repeat and if I turn it off, the sound is still playing. Can anyone please tell me how to make the sound repeat and able to stop it when I switch it off or give me sample code? Thanks
Replies
1
Boosts
0
Views
570
Activity
Mar ’17
How to handle audio ducking in a osx application, does osx provide any notification for handling audio ducking?
When voice over is working it audio ducking will happen it will reduce my app volume too. Is there any way to handle audio ducking?, when voice over is complete its speach, app volume wont get back. In my app created my own audio device demon for enhancing audio. Is there any solution for it?
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
0
Boosts
0
Views
335
Activity
Jun ’15
When is the "default alert sound" played?
Hi there, My app plays the default alert sound when received Remote Push Notification and other timing. I understand the default alert sound plays when received Remote Push Notification. However, it plays at some timing which is not the timing my app received Remote Push Notification. I have no idea what makes the default alert sound play. Is there any trigger to make the default alert sound play other than receiving Remote Push Notification?
Replies
1
Boosts
0
Views
568
Activity
Apr ’24
Custom sound for UNMutableNotificationContent | MacOS
Hello, I'm developing a macOS bar app and the goal is to fire a notification. For the notification, I want a specific sound to be played. However, while I see the notification with the wanted title and body, the sound is always the default notification sound , even though I set it to a custom one ! I looked in the Apple Documentation and verified that everything is correct with the sound file. I tried different files (.wav and .caf) and nothing worked. In the code block below, the print(Sound URL: (soundURL)) is seen in the console, which means that the file is indeed in the bundle. Xcode version : 14.3.1 macOS used : Ventura 13.4 Any help would be appreciated : code-block if let soundURL = Bundle.main.url(forResource: mixkit, withExtension: wav) { print(Sound URL: (soundURL)) content.sound = .init(named: UNNotificationSoundName(soundURL.lastPathComponent)) } else { print(Sound URL not found for mixkit.wav) } let trigger = UNTimeIntervalNotificati
Replies
0
Boosts
0
Views
387
Activity
Aug ’23
UILocalNotifications custom sound ....
Dear developers,Since several days, I'm trying to work with a UILocalNotifications in order to perform tests of a my app. When I created the XCode project, in it i included several sounds file *.mp4a and the app worked perfectly. Succcesively I try to include some audio files, with same extension, in the Documents directory of the app. But writing in the code for example: notif.soundName=[[@%@/Documents/MySound.m4a lastPathComponent] copy];, when the app is in the background modality, the notification sound is the default. Kindly I would like if anyone could help me in solving this problem if it is possible.The UILocalNotification settings are the following: UIUserNotificationType types = UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert; UIUserNotificationSettings *mySettings = [UIUserNotificationSettings settingsForTypes:types categories:nil]; [[UIApplication sharedApplication] registerUserNotificationSettings:mySettings]; UILocalNotification
Replies
1
Boosts
0
Views
559
Activity
Sep ’15
Stream Audio from URL
Hi All. Writing a swift iOS app (target iOS 13.1) and wanted to know if AVAudioPlayer or something else would fit these requirements:- Stream from URL (with auto-reconnect if network hiccups)- Stop and Start button (obviously)- Ability to choose the stop/start button images- Volume slider- Ability to use the switch object to switch between two audio streams (two different URLs)- Audio plays when app is in background- Display title/track metadata- And would really like an audio level meterI pieced together all these (with help of freelancers) when the app was in Obj-C. Now rebuilding in Swift.P.S. I'm an advanced newbie (a notch above newbie) so go easy on me :-)Thank-you!
Replies
2
Boosts
0
Views
5.7k
Activity
Oct ’19
iOS 18 Bug: NavigationStack, paths, searchable and popping to root
Hello everyone, I wanted to post this as a sanity check before I create a Feedback for this bug. I'm using Xcode 16.1 Beta (167B5001e) along with iOS 18.1 Beta. When using a NavigationStack with a bindable path and navigating to another view while searching, it won't allow you to pop to root by resetting the path. Here's some simple code: // Base code from: // https://sarunw.com/posts/how-to-pop-to-root-view-in-swiftui/ import SwiftUI struct ContentView: View { @State private var path: [Int] = [] var body: some View { NavigationStack(path: $path) { Button(Start) { path.append(1) } .navigationDestination(for: Int.self) { int in DetailView(path: $path, count: int) } .navigationTitle(Home) } } } struct DetailView: View { @Binding var path: [Int] @State private var searchText = let count: Int var body: some View { Button(Go deeper) { path.append(count + 1) } .navigationBarTitle(count.description) .toolbar { ToolbarItem(placement: .bottomBar) { Button(Pop to Root) { path = [] } } } .sea
Replies
2
Boosts
0
Views
1.1k
Activity
Aug ’24
No sound in macOS 10.13b5
Has anyone lost their sound with beta 5? I have a MacBook Pro (Retina, Mid 2012) and have lost all sound. Restart and reset PRAM have on effect. Any suggestions? Tunes play in iTunes, but no sound in Safari, Firefox etc...
Replies
3
Boosts
0
Views
1.7k
Activity
Aug ’17
Audio performance of Airplay2
Does/will the new AirPlay 2 audio support something better than Lossless16 bit / 44.1 kHz ?Kind regardsMichael Wilspang
Replies
0
Boosts
0
Views
760
Activity
Oct ’17
html5 audio delay in Safari
Where: HTML5What: Audio tag (player) in conjunction with SafariIssue: Performance problemHi guys,There is a noticeable audio delay when using Safari in conjuction with onclick audio events. Specifically: the audio does not sync with the onclick event. The user may click on the icon, link, li etc. and the event takes place but the audio associated with the event does not occur until 1 - 4 secs later. This makes for cumbersom and awkward user experience.Example: https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_audio_autoplay2notice the slight delay after clicking on enable autoplay*no delay in other browsers such as firefox, chrome, etcI am new to development as well as Safari and Apple. Is this normal? or is there some specific code adjustment needed for Safari. (works fine in all other browsers).*Delay is much more pronouced depending on audio event such as games etc.
Replies
0
Boosts
0
Views
2.1k
Activity
May ’17
Visualization of Apple Music audio
Certain apps (eg. DJay) at least seem to have access to audio data from Apple Music streams, either directly or via an indirect dataset for visualization purposes either generated from audio data on the device or delivered from a remote service. Is there any framework provided by Apple or special agreement with Apple that gives access to Apple Music audio data, or sets of visualization meta data, or the ability to run processing of audio data on device or remotely (either on-demand or via preprocessing)?
Replies
0
Boosts
0
Views
270
Activity
Jun ’26
Is anybody able to actually record audio using presentAudioRecordingControllerWithOutputURL: on the device? The audio recording interface doesn't pickup audio AT ALL _ on device _.
It works fine in simulator. I can see that it picks up audio.However, when debugging on the device, the blue indicator is stuck to the left and doesn't pickup any audio. iPhone did ask for permission to use Microphone and that was allowed.Did it work for anyone so far?
Replies
11
Boosts
0
Views
3.1k
Activity
Jun ’15
Audio input on the AppleTV simulator
We're prototyping without the actual hardware, and I'm trying to port a portion of our iOS application to AppleTV. We use Audio Units for recording from the microphone.The Audio Units code seems to work fine. It's querying things like the recording frequency from the simulator, and initializing everything for recording. The hold up is the audio session. The play and record category for AVAudioSession (and all the recording based audio categories) are defined as part of AVFoundation on the AppleTV, but they're not marked as available at runtime.Does the simulator currently not support audio input? Is there a feature to enable it? And I'm assuming the hardware will allow recording for the remote microphone if these APIs are present. Is that the case?
Replies
2
Boosts
0
Views
1.1k
Activity
Sep ’15
When iOS17 has a bug and cannot record audio, play the audio to a Bluetooth device
let session = AVAudioSession.sharedInstance() do { try session.setCategory(AVAudioSession.Category.playback) try session.setActive(true) //playAndRecord //playback print(session.currentRoute.outputs) } catch { print(error) } when I ssession.setCategory(AVAudioSession.Category.playback) audio play output a2dp ble devices. session.currentRoute.outputs print bellow ` when I ssession.setCategory(AVAudioSession.Category.playAndRecord) output BluetoothA2DPOutput is gone. but it is normal in ios15-16. Is there any solution? I want to record audio and play music at the same time. And the music is output from the Bluetooth speaker
Replies
1
Boosts
0
Views
986
Activity
Dec ’23