Coder Social home page Coder Social logo

Comments (3)

AndrewRH avatar AndrewRH commented on May 30, 2024

Thanks for reporting this. We do not support alpha versions of Unity (we support up until Unity 2019.1.11 right now), but we will correct the script so this error doesn't occur in future versions.

For now you can edit the script UnityAudioCapture.cs and changing the follow.

line 59 from:

			if (AudioSettings.speakerMode != AudioSpeakerMode.Raw &&
				AudioSettings.speakerMode < AudioSettings.driverCapabilities)

to:

			if (
#if !UNITY_2019_2_OR_HIGHER				
				AudioSettings.speakerMode != AudioSpeakerMode.Raw &&
#endif
				AudioSettings.speakerMode < AudioSettings.driverCapabilities)`

line 159 from:

				case AudioSpeakerMode.Raw:
					break;

to:

#if !UNITY_2019_2_OR_HIGHER
				case AudioSpeakerMode.Raw:
					break;
#endif

Thanks,

from unityplugin-avpromoviecapture.

yepthatsjason avatar yepthatsjason commented on May 30, 2024

We just purchased the asset and bumped into this with 2019.2, is there a plan to push a fix to the Unity Asset Store?

from unityplugin-avpromoviecapture.

yepthatsjason avatar yepthatsjason commented on May 30, 2024

@AndrewRH Ah, I see you did make the change, however, I think your fix has a bug in it. I think you used the wrong macro.

You're using "UNITY_2019_2_OR_HIGHER" and the actual macro is "UNITY_2019_2_OR_NEWER"

It's documented by Unity here.

Changing your macro conditions fixed the compilation error for me. It'd be great to see this fix get submitted soon.

from unityplugin-avpromoviecapture.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.