Post

Replies

Boosts

Views

Activity

Disable reverb effect in immersive spaces
I'm developing an app where a user can bring a video or content from a WKWebView into an immersive space using SwiftUI attachments on a RealityView. This works just fine, but I'm having some trouble configuring how the audio from the web content should sound in an immersive space. When in windowed mode, content playing sounds just fine and very natural. The spatial audio effect with head tracking is pronounced and adds depth to content with multichannel or Dolby Atmos audio. When I move the same web view into an immersive space however, the audio becomes excessively echoey, as if a large amount of reverb has been put onto the audio. The spatial audio effect is also decreased, and while still there, is no where near as immersive. I've tried the following: Setting all entities in my space to use channel audio, including the web view attachment. for entity in content.entities { entity.channelAudio = ChannelAudioComponent() entity.ambientAudio = nil entity.spatialAudio = nil } Changing the AVAudioSessionSpatialExperience: And I've also tried every soundstage size and anchoring strategy, large works the best, but doesn't remove that reverb. let experience = AVAudioSessionSpatialExperience.headTracked( soundStageSize: .large, anchoringStrategy: .automatic ) try? AVAudioSession.sharedInstance().setIntendedSpatialExperience(experience) I'm also aware of ReverbComponent in visionOS 2 (which I haven't updated to just yet), but ideally I need a way to configure this for visionOS 1 users too. Am I missing something? Surely there's a way for developers to stop the system messing with the audio and applying these effects? A few of my users have complained that the audio sounds considerably worse in my cinema immersive space compared to in a window.
2
0
679
Jun ’24
Swift Student Challenge Winner Proof
I was a Swift Student Challenge winner in 2020 and 2021 and I was wondering if there was somewhere I could receive a confirmation of my winner status? I’m currently building a petition for an O1 visa, and my attorney told me that the screenshots I have of the website from when I won many years ago would probably not be sufficient as they’re cropped and not of the full screen. I have no way to go back to the old status page or even the events tab in the developer account page since it was removed. Is there somewhere on the developer website I should look? Is there a way to get something sent by Apple to help me out here? I've sent an email to swiftstudentchallenge@ apple.com but haven't received a response just yet so thought I'd ask here too. I feel like this should be possible somehow, even for just using on a resume for example. It's why I assumed the events tab existed.
1
1
616
Jun ’24
Getting status of individual team name change on developer account.
Hello! I'm really hoping that there's someone here that can help me as developer support over the phone has failed miserably in helping me with anything whatsoever. I requested a name change on my developer account and haven't heard anything in over 2 weeks. I would like an estimation on how long this process usually takes, but phone support refuse to give it to me. The "senior advisor" says it is in the hands of the operations team and there is nothing that can happen. Well is there a way to get into direct contact with the "operations team" or someone who does have contact with them? It seems unlikely that any of these requests just go into some black hole where they will never be found again, and there has to be a way to get some information. It honestly seems ridiculous and kind of insulting as a young developer who pays $160 per year out of my own money. So I'm hoping there is someone here who can maybe connect me with the right people to get some proper help? If it helps, the person I've been dealing with who has refused to check on the case for me is "Charlie", and supposedly there isn't anyone above him who could help (which I find incredibly hard to believe). Maybe another person had to go through the same thing as me and has some tips on what to do here?
1
0
771
Nov ’22
Bonjour discovery with NetServiceBrowser not working in iOS and iPadOS 14
My app has to find a certain bonjour service on the local network and my code works fine for iOS 12/13 as well as macOS Big Sur and Catalina. The exact same code fails on iOS and iPadOS 14 with this error: ["NSNetServicesErrorDomain": 10, "NSNetServicesErrorCode": -72000] Which I have looked into and -72000 is an "Unknown error". I am using NetServiceBrowser to find the service and here is my code: class Bonjour: NSObject {     var discovered: [DiscoveredInstance] = []     let bonjourBrowser = NetServiceBrowser()     var discoveredService: NetService?     override init() {         super.init()         bonjourBrowser.delegate = self         startDiscovery()     }     func startDiscovery() {         self.bonjourBrowser.searchForServices(ofType: "_some-service._tcp.", inDomain: "local")     } } extension Bonjour: NetServiceBrowserDelegate, NetServiceDelegate {     func netServiceBrowser(_ browser: NetServiceBrowser, didFind service: NetService, moreComing: Bool) {         discoveredService = service         discoveredService?.delegate = self         discoveredService?.resolve(withTimeout: 3)     }     func netServiceBrowser(_ browser: NetServiceBrowser, didNotSearch errorDict: [String : NSNumber]) {         print(errorDict)     }     func netServiceBrowser(_ browser: NetServiceBrowser, didRemove service: NetService, moreComing: Bool) {         self.discovered.removeAll { $0.name == service.name }     }     func netServiceDidResolveAddress(_ sender: NetService) {         if let data = sender.txtRecordData() {             let dict = NetService.dictionary(fromTXTRecord: data)             /// do stuff with txtRecord dict here and then add to discovered array.             discoveredService = nil         }     } } I have no idea what could be causing the error and have tried enabling networking permissions and capabilities but have not been able to stop the error from occurring. Thanks.
8
1
11k
Jul ’20
Cannot save .scn file changes in Xcode
In Xcode, I am not able to save changes to my .scn file. When editing any component inside the scene file or even changing its name I will get an error saying that the file could not be saved. I have tried restarting my Mac and Xcode multiple times as well as changing permissions for the file and entire project folder. Even moving to a new project gives this error. Nothing has worked though. Also creating a blank scene file and adding a cube doesn't even work so it's not a problem with my file. How can I make changes to a .scn file and have it actually save?
7
0
1.9k
Jun ’20