Dissonance icon indicating copy to clipboard operation
Dissonance copied to clipboard

Is there a plan to support VisionOS?

Open cracker999999 opened this issue 1 year ago • 9 comments

cracker999999 avatar Apr 30 '24 06:04 cracker999999

At the moment no this isn't planned.

martindevans avatar Apr 30 '24 14:04 martindevans

So far i think the only thing that breaks is the opus library since it's obviously missing. Is it possible to just add it and try testing it? We're developing an app that relies on Dissonance for audio and we're entering final stages of development so it would be awesome if there was something we could do about it

Dioinecail avatar May 10 '24 06:05 Dioinecail

You can modify the settings on the native files in Assets/Plugins/Dissonance/Plugins to specify Vision OS support if you want to try that. Either the MacOS or iOS ones might work without recompiling.

If you do need to recompile them for the new platform please email me ([email protected]) your invoice number. I'll can add you to the repo which contains the Dissonance C++ source (opus codec & audio preprocessor) and our build scripts for all the supported platforms.

martindevans avatar May 10 '24 14:05 martindevans

I've tested iOS libraries of opus and AudioPluginDissonance and it worked! But i've had to manually copy and paste them from an iOS xcode project, i guess the post process for copying them is locked behind UNITY_IOS define? Because i've had to change both of those defines in external lib calls from UNITY_IOS to (UNITY_IOS || UNITY_VISIONOS)

Dioinecail avatar May 10 '24 15:05 Dioinecail

I've tested iOS libraries of opus and AudioPluginDissonance and it worked! But i've had to manually copy and paste them from an iOS xcode project, i guess the post process for copying them is locked behind UNITY_IOS define? Because i've had to change both of those defines in external lib calls from UNITY_IOS to (UNITY_IOS || UNITY_VISIONOS)

@Dioinecail I have not been able to replicate your success. Can you add some more specifics as to what you had to do? Even though I see the iOS plugins in the Xcode project, when running on device I still get error that the plugins are not found.

astaikos-hp avatar Sep 09 '24 21:09 astaikos-hp

If you select the files in Assets/Plugins/Dissonance/Plugins/iOS and look in the inspector, you should see the settings where you define per-platform whether or not they are copied. Does VisionOS appear there?

martindevans avatar Sep 09 '24 21:09 martindevans

Those are set in the Unity project. When checking the debugger of the running application I get errors that opus and the audio plugin are not found. I double checked that the plugins are in the Xcode project and they are.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Martin Evans @.> Sent: Monday, September 9, 2024 5:57:41 PM To: Placeholder-Software/Dissonance @.> Cc: Aristides Staikos @.>; Comment @.> Subject: Re: [Placeholder-Software/Dissonance] Is there a plan to support VisionOS? (Issue #287)

If you select the files in Assets/Plugins/Dissonance/Plugins/iOS and look in the inspector, you should see the settings where you define per-platform whether or not they are copied. Does VisionOS appear there?

— Reply to this email directly, view it on GitHubhttps://github.com/Placeholder-Software/Dissonance/issues/287#issuecomment-2339225967, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BIZIWBNZ53R6ZAC47KZ5FBLZVYKVLAVCNFSM6AAAAABG7U23RKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZZGIZDKOJWG4. You are receiving this because you commented.Message ID: @.***>

astaikos-hp avatar Sep 09 '24 22:09 astaikos-hp

This is the error I get on the headset:

[Dissonance:Core] (15:49:42.893) DissonanceComms: Dependency Error: Unable to load DLL 'opus'. Tried the load the following dynamic libraries: Unable to load dynamic library '/opus' because of 'Failed to open the requested dynamic library (0x06000000) dlerror() = dlopen(/opus, 0x0005): tried: '/opus' (no such file)

  • Codec: [Codec: Opus, FrameSize: 1920, SampleRate: 48kHz]

astaikos-hp avatar Sep 11 '24 15:09 astaikos-hp

The iOS files are not dynamic libraries at all (everything on iOS is statically linked), so that error message is interesting! Any more details on what you did @Dioinecail?

martindevans avatar Sep 11 '24 21:09 martindevans