Search results for

“Popping Sound”

20,041 results found

Post

Replies

Boosts

Views

Activity

Positional audio from an SKVideoNode
My SceneKit app includes a SpriteKit scene which renders video via an SKVideoNode. The SpriteKit scene is assigned as a material on a SceneKit node, so the 3D scene has a video, along with its audio, playing in it. Very cool. Thanks Apple for such great integration between SpriteKit and SceneKit!I'm wondering if its possible to do positional audio here. Lets say the AV file offers 5.1 sound. I'd like to take the 6 audio tracks and assign them to SceneKit nodes (as 6 loudspeakers in the scene). This way, as the user rotates they'll hear the audio rotating with them.SpriteKit offers a listener node - but it only knows about 2D, rotation can't be specified for it.SceneKit offers an audioListener node, which'd be great; but I can't see a way to tell it about the audio playing via SpriteKit. I have the AVPlayer/AVPlayerItem.Any ideas on if this is possible?
1
0
624
Nov ’15
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
730
Apr ’23
Audio Alerts in background
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
3
0
1.9k
May ’17
A "Window" Suspicious Pop-up Element In The Startup
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.
0
0
403
Jan ’21
USB Audio Failing
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
2
0
1.2k
Nov ’15
IOS Mobile Safari - pop up window is not accessible
Hi Working on Appium 2.11.5 xcuitest - 7.1.0 (automationName ‘XCUITest’) iOS 15.5 Safari browser In my webflow i cam across a pop window and gets the alert message as follows This site is attempting to open a pop-up window Block Allow My capabilities are set as follows capabilities.setCapability(“platformName”, IOS); capabilities.setCapability(“deviceName”, “iPhone 15 Pro”); capabilities.setCapability(“autoWebview”, TRUE_STRING); capabilities.setCapability(“autoAcceptAlerts”, true); capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, “XCUITest”); capabilities.setCapability(CapabilityType.BROWSER_NAME, “Safari”); capabilities.setCapability(“SFSafariViewController”, true); capabilities.setCapability(“appium:includeSafariInWebviews”, true); capabilities.setCapability(“safariAllowPopups”, true); capabilities.setCapability(“waitForIdleTimeout”, 0); capabilities.setCapability(“isInspectable”, true); capabilities.setCapability(“webviewConnectTimeout”, 5000); Log.info(Before iOS capabil
1
0
403
Oct ’24
Lightning audio
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.
12
0
4k
Jul ’17
Record Audio Passively
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!
0
0
490
Feb ’19
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.4k
Apr ’23
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
629
Sep ’15
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
843
Sep ’16
Positional audio from an SKVideoNode
My SceneKit app includes a SpriteKit scene which renders video via an SKVideoNode. The SpriteKit scene is assigned as a material on a SceneKit node, so the 3D scene has a video, along with its audio, playing in it. Very cool. Thanks Apple for such great integration between SpriteKit and SceneKit!I'm wondering if its possible to do positional audio here. Lets say the AV file offers 5.1 sound. I'd like to take the 6 audio tracks and assign them to SceneKit nodes (as 6 loudspeakers in the scene). This way, as the user rotates they'll hear the audio rotating with them.SpriteKit offers a listener node - but it only knows about 2D, rotation can't be specified for it.SceneKit offers an audioListener node, which'd be great; but I can't see a way to tell it about the audio playing via SpriteKit. I have the AVPlayer/AVPlayerItem.Any ideas on if this is possible?
Replies
1
Boosts
0
Views
624
Activity
Nov ’15
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
730
Activity
Apr ’23
Audio Alerts in background
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
Replies
3
Boosts
0
Views
1.9k
Activity
May ’17
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
163
Activity
Mar ’25
A "Window" Suspicious Pop-up Element In The Startup
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.
Replies
0
Boosts
0
Views
403
Activity
Jan ’21
USB Audio Failing
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
Replies
2
Boosts
0
Views
1.2k
Activity
Nov ’15
IOS Mobile Safari - pop up window is not accessible
Hi Working on Appium 2.11.5 xcuitest - 7.1.0 (automationName ‘XCUITest’) iOS 15.5 Safari browser In my webflow i cam across a pop window and gets the alert message as follows This site is attempting to open a pop-up window Block Allow My capabilities are set as follows capabilities.setCapability(“platformName”, IOS); capabilities.setCapability(“deviceName”, “iPhone 15 Pro”); capabilities.setCapability(“autoWebview”, TRUE_STRING); capabilities.setCapability(“autoAcceptAlerts”, true); capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, “XCUITest”); capabilities.setCapability(CapabilityType.BROWSER_NAME, “Safari”); capabilities.setCapability(“SFSafariViewController”, true); capabilities.setCapability(“appium:includeSafariInWebviews”, true); capabilities.setCapability(“safariAllowPopups”, true); capabilities.setCapability(“waitForIdleTimeout”, 0); capabilities.setCapability(“isInspectable”, true); capabilities.setCapability(“webviewConnectTimeout”, 5000); Log.info(Before iOS capabil
Replies
1
Boosts
0
Views
403
Activity
Oct ’24
Lightning audio
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.
Replies
12
Boosts
0
Views
4k
Activity
Jul ’17
Garbled FaceTime audio.
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
Replies
2
Boosts
0
Views
470
Activity
Jul ’15
How do I trim audio from URL?
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.
Replies
3
Boosts
0
Views
2.8k
Activity
Jan ’19
Record Audio Passively
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!
Replies
0
Boosts
0
Views
490
Activity
Feb ’19
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.4k
Activity
Apr ’23
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
629
Activity
Sep ’15
Sounds with volume off
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?
Replies
0
Boosts
0
Views
772
Activity
May ’22
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
843
Activity
Sep ’16