So I am working on an app that requires different audio files to be played using an NSTimer every X amount of time. Yes, it needs to play the audio in the background as well, but I have had inconsistent results trying to do so. I have searched the web thoroughly to find a solution to this problem, but I have had no luck.I have enabled background modes and checked off item 0(audio) and made sure it was in my info.plist. I have set the App does not run in background key to NO in the info.plist. In the viewDidLoad method of the VC, I have set the AVAudioCategory to categoryPlayback and set the AVAudioSession to active. I have also moved these lines of code around in different places of the app to look for different results, and the best results I have gotten is that the app will continue to run in the background sometimes and at other times it will suspend.Through all of my searching, I have seen forums explaining how to play audio in the background. However, I have not found
Search results for
Popping Sound
19,744 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
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?
Just like this thread (https://forums.developer.apple.com/thread/4273), I'me having huge problems with USB Audio.My Plantronics .Audio 995 USB headset disconnects after a while (funny that's usually when I launch an Android Studio project or a more heavy workload) with the message:USB Sound assertion in /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleUSBAudio/AppleUSBAudio-301.52/AppleUSBAudioStream.cpp at line 2867I have the remove the USB dongle and insert it again to have sound. This is huge mess with USB Audio, please fix it. El Capitan 10.11.1
For me, I like to create an aggregate device so I can use 2 sets of headphones inside of Logic Pro X to mix my songs with whatever artist is in my studio. I like for them to hear the instrumental and their voice while recording, and I also want to be able to hear them as they record simultaneously through the use of the aggregate device that I create with the audio Midi Setup on the computer. So I add in my case my Scarlett 2i2 audio interface along with my pair of headphones(it should pop up as External Headphones inside of the audio Midi Setup app) which I plug directly into my MacBook and my artist that I'm recording will use the headphones that plug directly into the audio interface. When you do this however, you have to make sure to tick Drift Correction for both of the devices that are being linked or however many devices you may have. If you only have 1 ticked, then you will experience weird crackling noise when you try to playback things. As soon as I ticke
Topic:
App & System Services
SubTopic:
Core OS
Tags:
How do I turn off that annoying pop-up banner?This webpage is using significant energy. Closing it may improve the responsiveness of your MacBad user interface, too much information, it is useless having to dismiss it is a waste of time.please advise
Has anyone come across garbled audio thru facetime? All other audio from other source is good.Any fixes ore suggestion welcome.Bug report has been filed.Late Macpro 201310.11.x beta 5.Thank YouWill
Hi,Im using UIDocumentPicker to import an audio from my Files,I’m getting a URL which I upload it to the Firebase Storage.How do I trim this audio URL to 30 seconds, and get a new URL to be uploaded to the Storage?Thank you.
For an app built on ResearchKit, is it possible to record audio at pre-programmed intervals throughout the day? Does anyone have examples of this? The patient would actively consent to the audio recording prior to study start date.Any advice would be greatly appreciated- thank you!
So noticed this on beta 2 and reported it through bug reporter. Having come up with an interim solution, using a bluetooth adpater instead, I decided to see if Beta 4 had corrected the issue - no such luck. In my one vehicle I have a 3.5mm to 30 PIN DOCK (from the old days) and the gets adapted using the Apple 30PIN to Lightning adapter. With 10.3.3, the audio routes through that setup into my aux port on my stereo without issue. However, with 11 beta 4, it doesn't work still. You don't even see the dock connector as a possibility for audio routing within the music app. Interesting enough, I plugged into our other vehicle that simply use a standard Lightening to USB cable and it works fine.
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) } }
How is the Facebook app able to make sounds when the user clicks on things with the sound on the device completely off? Does the API really allow this? Doesn’t this violate some UI standard that Apple should be enforcing apps to follow?
One of the users of an app I have developed tells me that a Redeem Code window is popping up every time he starts the app. I have not seen this in any of the testing I have done. How do I make sure that this pop up window will not appear? (The app is a fixed price app without in In-App Purchase or Subscription.)
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}}
Today I realized that when I start up my iMac (Big Sur 11.1) It usually takes longer than usual to load the startup applications and there is a suspicious element that is an empty window called Window then it disappears as quickly from the Dock as the element itself, which is a quarter-space screen, so fast that I can't get a screenshot to show you. I have tried disabling all the initial apps one by one, and still this item keeps popping up. Anyone know if this is normal? A Big Sur anomaly perhaps? Thank you and I would appreciate your help to solve this problem.
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