Search results for

“Popping Sound”

20,616 results found

Post

Replies

Boosts

Views

Activity

Bundle.main.url(forResource: sound, withExtension: "wav", subdirectory: "Resources/Sounds") returns nil
Hi everyone, I'm trying to play sounds in my playground, but whenever I try to get the path, nothing comes out. I've tried everything possible to fix the error, but somehow it doesn't work Here my Sound File: import Foundation import AVFoundation var audioPlayer: AVAudioPlayer! /// Play sounds /// - Parameter sound: Sound filename func playSound(sound: String) { let url = Bundle.main.url(forResource: sound, withExtension: wav, subdirectory: Resources/Sounds) guard url != nil else { print(error) return } do { audioPlayer = try AVAudioPlayer(contentsOf: url!) if !audioPlayer.isPlaying { audioPlayer?.play() } else { audioPlayer?.stop() } } catch { print(error) } }
4
0
1.5k
Apr ’23
Custom sounds
I have an app that has been working fine but since iOS10 the custom sound of an APNS does not seem to work.This is my APNS payload...{aps:{alert:{loc-args:[TEST ALERT,TEST,TEST/TEST],loc-key:APNS_MSG2},sound:cabinbong.aiff,badge:0,category:testAlert},custom:{a:b,c:0,d:54.1}}
5
0
862
Sep ’16
AVAudioEngine no sound from Mac mini built-in audio devices
Hi,I've tried to get some audio things going on a new Mac mini 8,1 macOS 10.14.2 (18C54), and ran into an issue where there is no output from the built-in audio devices when using AVAudioEngine.Xcode prints this while setting up the AVAudioEngine:[AudioHAL_Client] HALC_ShellDriverPlugIn.cpp:104:Open: HALC_ShellDriverPlugIn::Open: opening the plug-in failed, Error: 2003329396 (what)If the built-in speaker or the headphone jack is selected as sound output device, no sound comes out from my AVAudioEngine app.If I select output via DisplayPort or AirPlay, sound is working, even though above error is also being printed.Here's repo with an example project: https://github.com/nsdvr/avaudioengine_basic_outputIt just plays a .wav file when you press the button. My own project uses a custom AudioUnit generator, and its internalRenderBlock is getting called, so the engine seems to be running fine, there's just silence at the physical outputs.Relevant setup code:- (void) setup
7
0
6.5k
Dec ’18
Periodic sounds from the background
I appreciate that very similar questions have been asked already, but users of my app have requested certain functionality that simply doesn’t seem possible given the current background mode regulations in iOS. However, many similar apps do have this functionality. So, could it be that I am missing something.Basically, a meditation timer app needs to be able to play bell sounds periodically. Some users, those who meditate for long periods of time for example, like to switch their screens off to preserve the battery charge, and because of that the app needs to play these bell sounds from the background.So far, my solution has been to use Local Notifications to play the sounds as they can be timed accurately and also can play custom sounds.However, there are two issues that my users are unhappy about:1. They want the bell sounds to play even when the silent switch is on (they don't want to be disturbed by other notifications, but do want the meditation bells)2. They want the
0
0
1k
Mar ’19
NavigationStack does not pop back if NavigationLink disappears
Imagine a SwiftUI View having an @ObservedObject var someObject that can update anytime in the background (for example via network connection) and showing a NavigationLink based on some condition of it: if someObject.someCondition { NavigationLink(destination: { DetailView() }, label: { ... }) } If you now tapped the NavigationLink, DetailView will be pushed on the current NavigationView. Now if afterwards someCondition would change to false, DetailView would be popped off again, since the Link to the View would not exist anymore: This was always the behaviour of NavigationViews with .navigationViewStyle(.stack) set since I use them. navigationViewStyle is deprecated now, but by using NavigationStack I don't get this behaviour anymore. The DetailView would stay on the Stack, even if the NavigationLink would not exist anymore at all. Is there a way to reproduce this old behavior again?
0
0
753
Apr ’23
How to record output audio
I have an app that produce kind of sounds / music taping buttons. I need to record those sounds as I play with the app. I cannot find any doc or example about this issue. I have tried with many approaches but I couldn't get any good result. Any insight ?
0
0
263
Apr ’16
Bluetooth Audio Streaming
Does anyone else have to put their watch into airplane mode when streaming music via Bluetooth. I have already completely factory reset my watch and iPhone and continue to have this issue. If the watch is allowed to be connected while Bluetooth audio streaming is occurring, the audio becomes choppy.
6
0
850
Jun ’16
NSUserNotification no sound ?
(OSX Sierra) The only time a banner or sound shows / plays is when the app is not in focus, when in focus a message still appears in the desktop notification center but I would like at least a sound when it arrives, preferably including the alert banner. Any suggestions ?
0
0
175
Feb ’17
Audio Volume increases by itself
I am using an AVAudioPlayer to play a tick sound once per second in a SwiftUI app. When running the app on an iPhone 16 (18.2.1) the tick sounds increase in volume after a few seconds. This does not happen in the simulator nor on an iPhone SE 2020 (18.1.1).
2
0
324
Jan ’25
Real-time Audio Analysis of Audio Played by Other Apps on iPhone
I’m evaluating a simple iOS application that would perform real-time beat detection and audio analysis. My question is: Can an App Store-compliant iOS application access or analyze audio that is being played by other applications on the same device (e.g. Spotify, Apple Music, YouTube, TikTok, Safari, etc.) in real time, without using the microphone? Specifically: Is there any Apple-supported framework that allows access to system audio for real-time beat detection or frequency analysis? Can ReplayKit be used to analyze audio buffers from other applications in real time without recording or saving the audio? If direct access is not permitted, what Apple-approved architecture would be recommended for synchronizing external hardware with music being played on the iPhone? Would such an implementation be acceptable under App Store Review Guidelines? I am trying to determine whether real-time beat detection from audio played by other apps is technically and poli
0
0
390
Jun ’26
web audio api
When I start the app in iOS 13.X, the Audio Context starts in a state of “suspended”.after the user clicked the “play” button (which has ‘onclick’ or ‘touchend’ event to trigger the context.resume() and wait until resolved), the audio context state turning into ‘running’.Then I use the method ‘createMediaElementSource’ and provide the HTML audio element and connect the source to the context.destination, but it doesn’t make any difference, because the audio fails to put out any sound.However, in iOS 12.X it works, so I can assume that the nodes connected properly.Is there something else i should do to make it work on iOS 13?Thanks in advance.
Topic: Safari & Web SubTopic: General Tags:
2
0
1.8k
Nov ’19
Background Player() audio
Is it possible to use the javascript Player() api to play a sound file (mp3) in the background just like the background audio element<background> <audio> <asset src=<URL> /> </audio> </background>I am trying to use a catalog template for all the video assets in a show and want to play the show theme music lightly in the background. My challenge is that when the user clicks on a tile for a video I push a new view with all the video information and the background audio element stops since a new view was pushed.My thought was to use the player api, call the music file on the initial view and can stop the player and load the video element when they finally hit the play button on the asset viewer page.The example below works to play audio elements but when the play command is called it takes over the view and I don't see anywhere in the docs where you can call a player with audio assets to play in the background. var
2
0
639
Sep ’15
Bundle.main.url(forResource: sound, withExtension: "wav", subdirectory: "Resources/Sounds") returns nil
Hi everyone, I'm trying to play sounds in my playground, but whenever I try to get the path, nothing comes out. I've tried everything possible to fix the error, but somehow it doesn't work Here my Sound File: import Foundation import AVFoundation var audioPlayer: AVAudioPlayer! /// Play sounds /// - Parameter sound: Sound filename func playSound(sound: String) { let url = Bundle.main.url(forResource: sound, withExtension: wav, subdirectory: Resources/Sounds) guard url != nil else { print(error) return } do { audioPlayer = try AVAudioPlayer(contentsOf: url!) if !audioPlayer.isPlaying { audioPlayer?.play() } else { audioPlayer?.stop() } } catch { print(error) } }
Replies
4
Boosts
0
Views
1.5k
Activity
Apr ’23
Custom sounds
I have an app that has been working fine but since iOS10 the custom sound of an APNS does not seem to work.This is my APNS payload...{aps:{alert:{loc-args:[TEST ALERT,TEST,TEST/TEST],loc-key:APNS_MSG2},sound:cabinbong.aiff,badge:0,category:testAlert},custom:{a:b,c:0,d:54.1}}
Replies
5
Boosts
0
Views
862
Activity
Sep ’16
Play spatial audio
I'm developing the VisionOS app. I want to know how to play spatial audio in addition to RealityKit? If it's iOS or macOS, how to play spatial audio in addition to RealityKit?
Replies
2
Boosts
0
Views
297
Activity
Mar ’25
Audio input sources.
Is it possible for an external microphone to work as an audio input for a session?I'm wondering if a microphone on a monitor can be used as an input device,which will work with audio units and the AV frameworks. Regards,Brian
Replies
1
Boosts
0
Views
381
Activity
Oct ’15
No notification sound
Hello All,I'm having an app works on the background recording sounds all the time, when its running will block all notifcations sonds (No Sound no vibration) Please advice further.BestAnwar
Replies
0
Boosts
0
Views
157
Activity
Jun ’16
AVAudioEngine no sound from Mac mini built-in audio devices
Hi,I've tried to get some audio things going on a new Mac mini 8,1 macOS 10.14.2 (18C54), and ran into an issue where there is no output from the built-in audio devices when using AVAudioEngine.Xcode prints this while setting up the AVAudioEngine:[AudioHAL_Client] HALC_ShellDriverPlugIn.cpp:104:Open: HALC_ShellDriverPlugIn::Open: opening the plug-in failed, Error: 2003329396 (what)If the built-in speaker or the headphone jack is selected as sound output device, no sound comes out from my AVAudioEngine app.If I select output via DisplayPort or AirPlay, sound is working, even though above error is also being printed.Here's repo with an example project: https://github.com/nsdvr/avaudioengine_basic_outputIt just plays a .wav file when you press the button. My own project uses a custom AudioUnit generator, and its internalRenderBlock is getting called, so the engine seems to be running fine, there's just silence at the physical outputs.Relevant setup code:- (void) setup
Replies
7
Boosts
0
Views
6.5k
Activity
Dec ’18
Periodic sounds from the background
I appreciate that very similar questions have been asked already, but users of my app have requested certain functionality that simply doesn’t seem possible given the current background mode regulations in iOS. However, many similar apps do have this functionality. So, could it be that I am missing something.Basically, a meditation timer app needs to be able to play bell sounds periodically. Some users, those who meditate for long periods of time for example, like to switch their screens off to preserve the battery charge, and because of that the app needs to play these bell sounds from the background.So far, my solution has been to use Local Notifications to play the sounds as they can be timed accurately and also can play custom sounds.However, there are two issues that my users are unhappy about:1. They want the bell sounds to play even when the silent switch is on (they don't want to be disturbed by other notifications, but do want the meditation bells)2. They want the
Replies
0
Boosts
0
Views
1k
Activity
Mar ’19
NavigationStack does not pop back if NavigationLink disappears
Imagine a SwiftUI View having an @ObservedObject var someObject that can update anytime in the background (for example via network connection) and showing a NavigationLink based on some condition of it: if someObject.someCondition { NavigationLink(destination: { DetailView() }, label: { ... }) } If you now tapped the NavigationLink, DetailView will be pushed on the current NavigationView. Now if afterwards someCondition would change to false, DetailView would be popped off again, since the Link to the View would not exist anymore: This was always the behaviour of NavigationViews with .navigationViewStyle(.stack) set since I use them. navigationViewStyle is deprecated now, but by using NavigationStack I don't get this behaviour anymore. The DetailView would stay on the Stack, even if the NavigationLink would not exist anymore at all. Is there a way to reproduce this old behavior again?
Replies
0
Boosts
0
Views
753
Activity
Apr ’23
How to record output audio
I have an app that produce kind of sounds / music taping buttons. I need to record those sounds as I play with the app. I cannot find any doc or example about this issue. I have tried with many approaches but I couldn't get any good result. Any insight ?
Replies
0
Boosts
0
Views
263
Activity
Apr ’16
Bluetooth Audio Streaming
Does anyone else have to put their watch into airplane mode when streaming music via Bluetooth. I have already completely factory reset my watch and iPhone and continue to have this issue. If the watch is allowed to be connected while Bluetooth audio streaming is occurring, the audio becomes choppy.
Replies
6
Boosts
0
Views
850
Activity
Jun ’16
NSUserNotification no sound ?
(OSX Sierra) The only time a banner or sound shows / plays is when the app is not in focus, when in focus a message still appears in the desktop notification center but I would like at least a sound when it arrives, preferably including the alert banner. Any suggestions ?
Replies
0
Boosts
0
Views
175
Activity
Feb ’17
Audio Volume increases by itself
I am using an AVAudioPlayer to play a tick sound once per second in a SwiftUI app. When running the app on an iPhone 16 (18.2.1) the tick sounds increase in volume after a few seconds. This does not happen in the simulator nor on an iPhone SE 2020 (18.1.1).
Replies
2
Boosts
0
Views
324
Activity
Jan ’25
Real-time Audio Analysis of Audio Played by Other Apps on iPhone
I’m evaluating a simple iOS application that would perform real-time beat detection and audio analysis. My question is: Can an App Store-compliant iOS application access or analyze audio that is being played by other applications on the same device (e.g. Spotify, Apple Music, YouTube, TikTok, Safari, etc.) in real time, without using the microphone? Specifically: Is there any Apple-supported framework that allows access to system audio for real-time beat detection or frequency analysis? Can ReplayKit be used to analyze audio buffers from other applications in real time without recording or saving the audio? If direct access is not permitted, what Apple-approved architecture would be recommended for synchronizing external hardware with music being played on the iPhone? Would such an implementation be acceptable under App Store Review Guidelines? I am trying to determine whether real-time beat detection from audio played by other apps is technically and poli
Replies
0
Boosts
0
Views
390
Activity
Jun ’26
web audio api
When I start the app in iOS 13.X, the Audio Context starts in a state of “suspended”.after the user clicked the “play” button (which has ‘onclick’ or ‘touchend’ event to trigger the context.resume() and wait until resolved), the audio context state turning into ‘running’.Then I use the method ‘createMediaElementSource’ and provide the HTML audio element and connect the source to the context.destination, but it doesn’t make any difference, because the audio fails to put out any sound.However, in iOS 12.X it works, so I can assume that the nodes connected properly.Is there something else i should do to make it work on iOS 13?Thanks in advance.
Topic: Safari & Web SubTopic: General Tags:
Replies
2
Boosts
0
Views
1.8k
Activity
Nov ’19
Background Player() audio
Is it possible to use the javascript Player() api to play a sound file (mp3) in the background just like the background audio element<background> <audio> <asset src=<URL> /> </audio> </background>I am trying to use a catalog template for all the video assets in a show and want to play the show theme music lightly in the background. My challenge is that when the user clicks on a tile for a video I push a new view with all the video information and the background audio element stops since a new view was pushed.My thought was to use the player api, call the music file on the initial view and can stop the player and load the video element when they finally hit the play button on the asset viewer page.The example below works to play audio elements but when the play command is called it takes over the view and I don't see anywhere in the docs where you can call a player with audio assets to play in the background. var
Replies
2
Boosts
0
Views
639
Activity
Sep ’15