Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
nickpittom's avatar
nickpittom
Protege
10 years ago

Unity 4.6.7p2 - GearVR - Big audio problem

This has been driving me crazy all day.

A project that worked fine on the old PC now will not build a project to Gear without the audio turning to crap - sounding like it's 'crunchy' and skipping.

I've got a new PC, with Unity 4.6.7p2, latest android sDK, Java etc.

Setting up a blank scene, with just the OVR intergration, a couple of cubes and a single .wav music audio file does the same - the audio is glitchy and skipping - playing back too fast.

Thing is, building with Unity 5 is fine - no audio issues. Bear in mind, this was all working on Unity 4 on the old machine, it's just on this one it is not.

Most of the shaders in the project are broken going to U5, so it doesn't make sense to go up to it when it is otherwise working fine in U4.

The strangest part is that if I press the 'home' button and go back to the main screen, then 'relaunch' it (basically just flipping back to it), it works fine.

This is on a Note 4. S6 version is even more problematic - going from too fast to too slow on flipping.

Any ideas?

6 Replies

Replies have been turned off for this discussion
  • mikeh9's avatar
    mikeh9
    Honored Guest
    I can confirm the same bug in my case is present on the Galaxy S6 Gear VR, but it does not occur for me on the Note 4 Gear VR.

    Unity 4.4.6f2 Free / Android Free
    Windows 7 PC
    Mobile SDK 0.6.0.1

    When the game is first loaded on the Galaxy S6 Gear VR, all the sound clips are played at approximately 2x, but they do sound clear. If the phone is removed from the Gear VR and the app is restarted from the recent apps. Then putting the S6 back into the gear vr, the sound works fine.

    I have also stopped all other apps and services not required for the gear vr and the problem still exists so it is not related to other services or apps running on the phone.
  • For Gear VR, Unity is able to play sound with reduced latency by using Android's audio "fast path". It's possible this code path isn't behaving on your hardware. Does your AndroidManifest.xml contain the following line? If so, try removing it.
    <meta-data android:name="com.samsung.android.vr.application.mode" android:value="vr_only"/>
    It would be interesting to know if this issue is new for 4.6.7p2. Does it also happen in 4.6.7f1?
  • mikeh9's avatar
    mikeh9
    Honored Guest
    It does have that line and I removed it.

    When you start the app, it no longer waits for you to put the phone into the gear vr before starting. I did notice the sound seems to be fixed though.Then if you put the phone into the gear vr, it goes back to the gear vr main screen to select the app you want from the catalog.

    This basically prevents you from running your app in the gear vr.

    Any other suggestions to fix the sound issue??
  • BBSL's avatar
    BBSL
    Honored Guest
    We had the same issue and fixed it by downgrading to Unity 4.6.5.
  • RGray's avatar
    RGray
    Honored Guest
    Is downgrading to 4.6.5 the only solution. I'm supersized nobody else has a fix for this problem.
  • Have you tried Unity 4.6.7p3? I was told it was fixed in this version.