Search results for

“Popping Sound”

20,844 results found

Post

Replies

Boosts

Views

Activity

AVCustomRoutingController and background audio
Hi, I have implemented a custom audio streaming protocol in my iOS app using AVCustomRoutingController to select my custom device. Playback and streaming works. However when the app is the background, it gets killed in a couple of seconds, like if it was not playing audio. My app has the Audio/AirPlay/PIP background mode and can play audio from the background when the route is a normal AVRoute from the system (Speaker/AirPlay/Bluetooth, etc). I tried starting an AVAudioSession (playback category, activated, with and without MPRemoteCommandCenter bindings and with and without populating NowPlayingInfoCenter) was hoping that if that is active, my app won't be killed. But it seems like it does get killed if the app is not producing audio using AudioOutputUnit/AVAudioEngine/AVPlayer. How does one supposed to stream audio from an app in the background using a custom protocol? The infamous let's play silence to not get killed solution works, but obviously that c
0
0
315
Aug ’26
Audio MIDI Set Up wont load
Hi - I've been using logic for a few years now. Three days ago I whilst opening it, a pop up said MIDICORE was not working and I haven't been able to fix it since. I read online that booting up in safe mode + opening audio MIDI set up would fix it, thing is audio MIDI set up wont load up. Anyone knows how I can fix it? I am on the verge of tears as I cannot seam to find any information online about audio MIDI set up not opening. And I cannot seam to fix the MIDI issue without it. Thanks!
0
0
497
Feb ’25
Multi Channel Audio With AVAudioEngine, Flipping Audio Channels
Hi, I have multiple audio files I want to decide which channel goes to which output. For example, how to route four 2-channel audio files to an 8-channel output. Also If I have an AVAudioPlayerNode playing a 2-channel track through headphones, can I flip the channels on the output for playback, i.e flip left and right? I have read the following thread which seeks to do something similar, but it is from 2012 and I do not quite understand how it would work in modern day. Many thanks, I am a bit stumped.
1
0
3.1k
Sep ’22
Custom sound effects?
Hey all,Is this possible in WatchOS 2? I've found various ways of playing audio through bluetooth headphones and via media players (which flip out my application), but haven't managed to find anything which would allow me to get the watch to make ANY sound?What am I missing? There has to be some way to do this, even if it's system sounds?Cheers,BRS
1
0
322
Oct ’15
Streaming Audio with AVPlayer disables audio after 42 minutes.
I'm trying to stream audio from aws using AVPlayer. However, after ~42 minutes of flawless streaming (the audio tracks are all an hour long or more) AVPlayerItem fires a didPlayToEndTime event. After this happens, the app isn't allowed to play audio any more. Trying to play any audio at all appears to just kick out didPlayToEndTime events almost immediately.It appears to work fine when targeting local files.Is there something I'm missing? I'm instaniating new players, a new avaudiosession doesn't do anything, nothing is throwing any errors, and failedToPlayToEndTime is never evoked.
4
0
580
Nov ’17
iOS 15.1 - Notification sound is not playing when only .sound option
We have an issue when we tried to fire only the sound in the push notification in iOS 15. Sound does not play when UNNotificationPresentationOptions is only set as sound. [.sound] (see snippet code attached) It seems iOS 15 silence this. It was working before in iOS 14 but stopped working for iOS 15. The following StackOverflow's URLs recommend playing a sound with AudioServicesPlaySystemSound. https://stackoverflow.com/questions/69023854/ios-15-notification-sounds-are-not-playing-for-foreground-notifications https://stackoverflow.com/questions/69277080/before-ios-15-i-was-able-to-send-sound-only-local-notification-now-i-have-to-s Any tips/recommendations on how to resolve this? Does anyone know if Apple does not allow this anymore? func taskNotificationCenter(_ center: TaskNotificationCenterType, willPresent notification: UNNotificationType, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) { compl
2
0
3.1k
Nov ’21
No Audio
Hi All,I've read the other comments but haven't figured this out. Is it possible to play audio to the watch speaker as of beta 1? I can get the mp3 file to tell me I need an external bluetooth speeker on the simulator but my watch just crashes. I just can't figure it out and it looks like others can't fix it either. Then I see a hack for nanoFlappy that plays all audio to the watch speaker...***? I have tried the code on other post but it just doesn't work. So if anyone has code (Swift) that actually works, I would appreciate seeing it...Thanks.
6
0
647
Jun ’15
How do I pop views from inside the GameScene class?
I am a noob to swift and programming in general and i am trying to make my first app.I have made it using a navigation controller which has a root view controller (MainViewController.swift). on this view controller i have a button which pushes the game view controller on to the scene: @IBAction func moveToGame(_ sender: Any) { let gameVC = self.storyboard?.instantiateViewController(withIdentifier: gameVC) as! GameViewController navigationController?.pushViewController(gameVC, animated: true) }I have then made the GameScene class conform to the SKPhysicsContactDelegate protocol and sat up this function inside the GameScene class: func didBegin(_ contact: SKPhysicsContact) { if contact.bodyA.node?.name == asteroide || contact.bodyA.node?.name == starman { } }what i then want to do, is to move back to the first view controller when this function is called. I first tried the function:navigationController?.popViewController(animated: true)but this doesn't seem to work inside the GameScene class. (It works when i p
0
0
615
Jun ’18
The pop order of the xcode file stack is wrong
When Xcode is located in the file A , and jump to the definition of function B of file B, and repeat this conduction until xcode stop at file C(the jump order is file A->file B -> file C ) . But when I left slide from file C, then Xcode return to the file A instead of file B. (the correct pop order should be file C -> file B , not file C -> file A) Both Xcode 12.5.1 and the newest Xcode 13.0 beta 3 have the same bug issue, which has been already posted by one developer, but apple does not give any response or feedback about it. This is unbelievable.
0
0
258
Jul ’21
Is UIBackgroundModes audio required for WKWebView to play audio/airplay etc in the background?
I know WKWebview is in another process from the main app. My question is is the UIBackgroundModes audio entry in Info.plist required on the main app for WKWebview to play audio/video/airplay in the background? Or is simply setting WKWebViewConfiguration allowsAirPlayForMediaPlayback and allowsPictureInPictureMediaPlayback enough? I recall having issues with background audio from WKWebView on older versions of iOS a couple years ago so I added the audio entry to the Info.plist.... but I just removed the key from the Info.plist and background audio from WKWebview seems to be working fine...maybe audio background mode is not required? Or does it only seem to be working because my app is attached to the debugger? Or is this a bug?
1
0
1.7k
Aug ’22
Play Audio for a Metronome
Hi, I am looking for a good way to play sounds at a high frequency. At the moment I am using the AVAudioEngine, and create a couple AVAudioPlayerNode and for each sound I need to play I create a AVAudioPCMBuffer. When the app needs to play a sound, I get the correct AVAudioPCMBuffer for the sound and use the first available AVAudioPlayerNode and feed it to the buffer. The timing for a metronome app has to be very precise because if it's of by about 16ms the user can hear that it is not playing had the right interval. For low speeds this is working without any problems, but at high speeds it is getting worse. Maybe anyone has an idea on how I can improve my method. Its a Plugin for Flutter. import AVFoundation class FastSoundPlayer { private var audioPlayers: [SoundPlayer?] = [] private var sounds: [String: Sound] = [:] private var engine = AVAudioEngine() let session = AVAudioSession.sharedInstance() init() { do { try session.setCategory(AVAudioSession.Cat
1
0
601
Mar ’25
pop-up menu
What would be a way to allow the user to hold down on a control and a menu pops up above the control that allows the user to pick one of the icons on the menu to select the state of the control, which then causes the control to look like the icon the user selected?
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
255
Jun ’17
AVCustomRoutingController and background audio
Hi, I have implemented a custom audio streaming protocol in my iOS app using AVCustomRoutingController to select my custom device. Playback and streaming works. However when the app is the background, it gets killed in a couple of seconds, like if it was not playing audio. My app has the Audio/AirPlay/PIP background mode and can play audio from the background when the route is a normal AVRoute from the system (Speaker/AirPlay/Bluetooth, etc). I tried starting an AVAudioSession (playback category, activated, with and without MPRemoteCommandCenter bindings and with and without populating NowPlayingInfoCenter) was hoping that if that is active, my app won't be killed. But it seems like it does get killed if the app is not producing audio using AudioOutputUnit/AVAudioEngine/AVPlayer. How does one supposed to stream audio from an app in the background using a custom protocol? The infamous let's play silence to not get killed solution works, but obviously that c
Replies
0
Boosts
0
Views
315
Activity
Aug ’26
Shazam audio from HLS
Hi There, What would be the best approach to Shazam audio coming from an HLS asset? Is it possible to process the audio in real-time or would be better to download an audio segment and generate the Shazam signature from it? Especially on Apple TV where the mic is not an option. Thanks!!
Replies
1
Boosts
0
Views
847
Activity
Jun ’21
What of Audio Books?
All the talk of splitting iTunes, but what happens to audiobooks in one's iTunes library. TV has its app, music has its app, podcasts has its app. Have they moved audio books into books with this split?Thanks!-Aaron
Replies
5
Boosts
0
Views
769
Activity
Jun ’19
Audio MIDI Set Up wont load
Hi - I've been using logic for a few years now. Three days ago I whilst opening it, a pop up said MIDICORE was not working and I haven't been able to fix it since. I read online that booting up in safe mode + opening audio MIDI set up would fix it, thing is audio MIDI set up wont load up. Anyone knows how I can fix it? I am on the verge of tears as I cannot seam to find any information online about audio MIDI set up not opening. And I cannot seam to fix the MIDI issue without it. Thanks!
Replies
0
Boosts
0
Views
497
Activity
Feb ’25
Connecting sound gone?
Did Apple remove the sound if you connect the iPhone to the lightning cable? IP6/6S no sound.
Replies
3
Boosts
0
Views
456
Activity
Jun ’16
Multi Channel Audio With AVAudioEngine, Flipping Audio Channels
Hi, I have multiple audio files I want to decide which channel goes to which output. For example, how to route four 2-channel audio files to an 8-channel output. Also If I have an AVAudioPlayerNode playing a 2-channel track through headphones, can I flip the channels on the output for playback, i.e flip left and right? I have read the following thread which seeks to do something similar, but it is from 2012 and I do not quite understand how it would work in modern day. Many thanks, I am a bit stumped.
Replies
1
Boosts
0
Views
3.1k
Activity
Sep ’22
Custom sound effects?
Hey all,Is this possible in WatchOS 2? I've found various ways of playing audio through bluetooth headphones and via media players (which flip out my application), but haven't managed to find anything which would allow me to get the watch to make ANY sound?What am I missing? There has to be some way to do this, even if it's system sounds?Cheers,BRS
Replies
1
Boosts
0
Views
322
Activity
Oct ’15
Streaming Audio with AVPlayer disables audio after 42 minutes.
I'm trying to stream audio from aws using AVPlayer. However, after ~42 minutes of flawless streaming (the audio tracks are all an hour long or more) AVPlayerItem fires a didPlayToEndTime event. After this happens, the app isn't allowed to play audio any more. Trying to play any audio at all appears to just kick out didPlayToEndTime events almost immediately.It appears to work fine when targeting local files.Is there something I'm missing? I'm instaniating new players, a new avaudiosession doesn't do anything, nothing is throwing any errors, and failedToPlayToEndTime is never evoked.
Replies
4
Boosts
0
Views
580
Activity
Nov ’17
iOS 15.1 - Notification sound is not playing when only .sound option
We have an issue when we tried to fire only the sound in the push notification in iOS 15. Sound does not play when UNNotificationPresentationOptions is only set as sound. [.sound] (see snippet code attached) It seems iOS 15 silence this. It was working before in iOS 14 but stopped working for iOS 15. The following StackOverflow's URLs recommend playing a sound with AudioServicesPlaySystemSound. https://stackoverflow.com/questions/69023854/ios-15-notification-sounds-are-not-playing-for-foreground-notifications https://stackoverflow.com/questions/69277080/before-ios-15-i-was-able-to-send-sound-only-local-notification-now-i-have-to-s Any tips/recommendations on how to resolve this? Does anyone know if Apple does not allow this anymore? func taskNotificationCenter(_ center: TaskNotificationCenterType, willPresent notification: UNNotificationType, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) { compl
Replies
2
Boosts
0
Views
3.1k
Activity
Nov ’21
No Audio
Hi All,I've read the other comments but haven't figured this out. Is it possible to play audio to the watch speaker as of beta 1? I can get the mp3 file to tell me I need an external bluetooth speeker on the simulator but my watch just crashes. I just can't figure it out and it looks like others can't fix it either. Then I see a hack for nanoFlappy that plays all audio to the watch speaker...***? I have tried the code on other post but it just doesn't work. So if anyone has code (Swift) that actually works, I would appreciate seeing it...Thanks.
Replies
6
Boosts
0
Views
647
Activity
Jun ’15
How do I pop views from inside the GameScene class?
I am a noob to swift and programming in general and i am trying to make my first app.I have made it using a navigation controller which has a root view controller (MainViewController.swift). on this view controller i have a button which pushes the game view controller on to the scene: @IBAction func moveToGame(_ sender: Any) { let gameVC = self.storyboard?.instantiateViewController(withIdentifier: gameVC) as! GameViewController navigationController?.pushViewController(gameVC, animated: true) }I have then made the GameScene class conform to the SKPhysicsContactDelegate protocol and sat up this function inside the GameScene class: func didBegin(_ contact: SKPhysicsContact) { if contact.bodyA.node?.name == asteroide || contact.bodyA.node?.name == starman { } }what i then want to do, is to move back to the first view controller when this function is called. I first tried the function:navigationController?.popViewController(animated: true)but this doesn't seem to work inside the GameScene class. (It works when i p
Replies
0
Boosts
0
Views
615
Activity
Jun ’18
The pop order of the xcode file stack is wrong
When Xcode is located in the file A , and jump to the definition of function B of file B, and repeat this conduction until xcode stop at file C(the jump order is file A->file B -> file C ) . But when I left slide from file C, then Xcode return to the file A instead of file B. (the correct pop order should be file C -> file B , not file C -> file A) Both Xcode 12.5.1 and the newest Xcode 13.0 beta 3 have the same bug issue, which has been already posted by one developer, but apple does not give any response or feedback about it. This is unbelievable.
Replies
0
Boosts
0
Views
258
Activity
Jul ’21
Is UIBackgroundModes audio required for WKWebView to play audio/airplay etc in the background?
I know WKWebview is in another process from the main app. My question is is the UIBackgroundModes audio entry in Info.plist required on the main app for WKWebview to play audio/video/airplay in the background? Or is simply setting WKWebViewConfiguration allowsAirPlayForMediaPlayback and allowsPictureInPictureMediaPlayback enough? I recall having issues with background audio from WKWebView on older versions of iOS a couple years ago so I added the audio entry to the Info.plist.... but I just removed the key from the Info.plist and background audio from WKWebview seems to be working fine...maybe audio background mode is not required? Or does it only seem to be working because my app is attached to the debugger? Or is this a bug?
Replies
1
Boosts
0
Views
1.7k
Activity
Aug ’22
Play Audio for a Metronome
Hi, I am looking for a good way to play sounds at a high frequency. At the moment I am using the AVAudioEngine, and create a couple AVAudioPlayerNode and for each sound I need to play I create a AVAudioPCMBuffer. When the app needs to play a sound, I get the correct AVAudioPCMBuffer for the sound and use the first available AVAudioPlayerNode and feed it to the buffer. The timing for a metronome app has to be very precise because if it's of by about 16ms the user can hear that it is not playing had the right interval. For low speeds this is working without any problems, but at high speeds it is getting worse. Maybe anyone has an idea on how I can improve my method. Its a Plugin for Flutter. import AVFoundation class FastSoundPlayer { private var audioPlayers: [SoundPlayer?] = [] private var sounds: [String: Sound] = [:] private var engine = AVAudioEngine() let session = AVAudioSession.sharedInstance() init() { do { try session.setCategory(AVAudioSession.Cat
Replies
1
Boosts
0
Views
601
Activity
Mar ’25
pop-up menu
What would be a way to allow the user to hold down on a control and a menu pops up above the control that allows the user to pick one of the icons on the menu to select the state of the control, which then causes the control to look like the icon the user selected?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
0
Boosts
0
Views
255
Activity
Jun ’17