Search results for

“Popping Sound”

20,025 results found

Post

Replies

Boosts

Views

Activity

Alarmkit custom sound plays once
When setting a custom sound in AlarmKit, the alarm only plays the audio file once. I can understand why push notifications would play a sound only once, but I don’t understand why alarms can only play the sound for less than 30 seconds. We’re already at beta 6, so I’m wondering if Apple still hasn’t fixed this or if they have no intention of fixing it.
5
0
841
Aug ’25
#pragma clang attribute pop with no matching push
I have just upgraded a workspace from 8 to 9.1. It has a mixture of Objective-C and Swift.I've gone through the changes to convert everything to Swift 4. The app builds and runs without error.When I try to run the unit tests, I receive a compile error in my <module_name>-Swift.h generated file.// Generated by Apple Swift version 4.0.2 (swiftlang-900.0.69.2 clang-900.0.38)#pragma clang diagnostic push#pragma clang diagnostic ignored -Wgcc-compat...#if __has_attribute(external_source_symbol)# define SWIFT_STRINGIFY(str) #str# define SWIFT_MODULE_NAMESPACE_PUSH(module_name) _Pragma(SWIFT_STRINGIFY(clang attribute push(__attribute__((external_source_symbol(language=Swift, defined_in=module_name, generated_declaration))), apply_to=any(function, enum, objc_interface, objc_category, objc_protocol))))# define SWIFT_MODULE_NAMESPACE_POP _Pragma(clang attribute pop)#else# define SWIFT_MODULE_NAMESPACE_PUSH(module_name)# define SWIFT_MODULE_NAMESPACE_POP#endif...SWIFT_MODULE_NAMESPACE_PUSH(<module_name
2
0
2.0k
Nov ’17
Persisting Audio Options in AVPlayerViewController
Hi,I am working on a video application for tvOS. Our streams include multiple options for both subtitles and audio options. The subtitles just work. When I change a subtitle option, the subtitle language in the system Settings app also changes. However, the same is not true for audio options. When I choose an audio option for a video in my app, the audio option setting in Settings.app remains unchanged. Is this known/expected behavior, or do I need to configure my app to work with audio options?Thanks,Halen
0
0
406
May ’17
Javascript Audio iOS
Hi, how can I fade out the background music (html5 audio element) of my browser game under iOS? Neither can I set audio.volume nor does it work to pipe it through the Web Audio API and modify the gain value. Both solutions work great on basically every non-Apple OS and browser. But it fails on Safari/OSX and in my experience on any browser under iOS. This is quite frustrating. So: how can I fade out music in my browser game under iOS? Thanks Leander
0
0
650
Sep ’21
Core Audio in watchOS 3
If you take a look at the differences document on watchOS 3, Apple has posted that Core Audio is now available in watchOS 3: The Core Audio framework (CoreAudio.framework) provides data types that help you represent audio streams, complex buffers, and time values.So can we use this to capture sample buffers as it is recording audio and if so, is there any sample code on how to do this?Thanks!
0
0
493
Sep ’16
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
372
Aug ’23
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
882
Dec ’23
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
541
Apr ’24
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.6k
Oct ’19
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
554
Mar ’17
Alarmkit custom sound plays once
When setting a custom sound in AlarmKit, the alarm only plays the audio file once. I can understand why push notifications would play a sound only once, but I don’t understand why alarms can only play the sound for less than 30 seconds. We’re already at beta 6, so I’m wondering if Apple still hasn’t fixed this or if they have no intention of fixing it.
Replies
5
Boosts
0
Views
841
Activity
Aug ’25
Audio Unit logo for website
hi, Is there an Audio Unit logo I can show on my website? I would love to show that my application is able to host Audio Unit plugins. regards, Joël
Replies
0
Boosts
0
Views
463
Activity
Sep ’25
#pragma clang attribute pop with no matching push
I have just upgraded a workspace from 8 to 9.1. It has a mixture of Objective-C and Swift.I've gone through the changes to convert everything to Swift 4. The app builds and runs without error.When I try to run the unit tests, I receive a compile error in my <module_name>-Swift.h generated file.// Generated by Apple Swift version 4.0.2 (swiftlang-900.0.69.2 clang-900.0.38)#pragma clang diagnostic push#pragma clang diagnostic ignored -Wgcc-compat...#if __has_attribute(external_source_symbol)# define SWIFT_STRINGIFY(str) #str# define SWIFT_MODULE_NAMESPACE_PUSH(module_name) _Pragma(SWIFT_STRINGIFY(clang attribute push(__attribute__((external_source_symbol(language=Swift, defined_in=module_name, generated_declaration))), apply_to=any(function, enum, objc_interface, objc_category, objc_protocol))))# define SWIFT_MODULE_NAMESPACE_POP _Pragma(clang attribute pop)#else# define SWIFT_MODULE_NAMESPACE_PUSH(module_name)# define SWIFT_MODULE_NAMESPACE_POP#endif...SWIFT_MODULE_NAMESPACE_PUSH(<module_name
Replies
2
Boosts
0
Views
2.0k
Activity
Nov ’17
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
Persisting Audio Options in AVPlayerViewController
Hi,I am working on a video application for tvOS. Our streams include multiple options for both subtitles and audio options. The subtitles just work. When I change a subtitle option, the subtitle language in the system Settings app also changes. However, the same is not true for audio options. When I choose an audio option for a video in my app, the audio option setting in Settings.app remains unchanged. Is this known/expected behavior, or do I need to configure my app to work with audio options?Thanks,Halen
Replies
0
Boosts
0
Views
406
Activity
May ’17
Javascript Audio iOS
Hi, how can I fade out the background music (html5 audio element) of my browser game under iOS? Neither can I set audio.volume nor does it work to pipe it through the Web Audio API and modify the gain value. Both solutions work great on basically every non-Apple OS and browser. But it fails on Safari/OSX and in my experience on any browser under iOS. This is quite frustrating. So: how can I fade out music in my browser game under iOS? Thanks Leander
Replies
0
Boosts
0
Views
650
Activity
Sep ’21
Core Audio in watchOS 3
If you take a look at the differences document on watchOS 3, Apple has posted that Core Audio is now available in watchOS 3: The Core Audio framework (CoreAudio.framework) provides data types that help you represent audio streams, complex buffers, and time values.So can we use this to capture sample buffers as it is recording audio and if so, is there any sample code on how to do this?Thanks!
Replies
0
Boosts
0
Views
493
Activity
Sep ’16
Import Sound to Reality Composer?
i want to import Sound into Reality Composer... ... so how to prepare and convert Audio Files on my Device, before import new Sound to my Composition. usually there are many options in .mp3 or .wav available, also in different qualities and length?
Replies
1
Boosts
0
Views
1.9k
Activity
Jul ’20
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
372
Activity
Aug ’23
WatchOS Core Audio
I saw in the watchOS 3 API differences that CoreAudio was added. Is there now a way to stream audio from the watch to the phone as it is recorded?Thanks,Sam
Replies
0
Boosts
0
Views
434
Activity
Aug ’16
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
882
Activity
Dec ’23
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
541
Activity
Apr ’24
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.6k
Activity
Oct ’19
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
750
Activity
Oct ’17
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
554
Activity
Mar ’17