Search Issue Tracker

Fixed in Unity 5.3.8

Votes

90

Found in

5.4.1f1

Issue ID

832578

Regression

Yes

[iOS] Audio with 'Streaming' Load Type does not play on some devices running iOS 10

iOS

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 2No workaround

If an Audio Clip has its Load Type set to 'Streaming' it does not play on some older devices running iOS 10.

Steps to reproduce:
1) Open the attached project (streamingTest_832578).
2) Build for iOS.
3) Run on a device via Xcode.
4) When the app launches, press any of the UI buttons on the screen.

A sound should be played, however it does not. An error message is displayed in the Xcode's console:
Error: Cannot create FMOD::Sound instance for resource resources.resource, (An error occured that wasn't supposed to. Contact support. )

It does not occur if the Load Type is set to 'Decompress On Load' or 'Compressed In Memory'. This only happens with iOS 10.
It seems that only older devices (like iPhone 5, iPad 4) are affected.

Reproduced on:
5.5.0b4, 5.4.1p1, 5.3.6p5, 5.3.5p6

Did not reproduce:
5.2.4f1

I was able to reproduce it on iPhone 5, running iOS 10.0.1
Devices running iOS 10 that did not reproduce:
iPhone 6, iPhone 6 Plus, iPad Mini 2, iPhone SE.
Other users reported that this is also reproducible on iPad 4th gen and iPhone 5C.

Comments (45)

  1. 8806ec25301eaf931e63e9df853a4d6d?d=mm

    pro3dgamestudio7

    Sep 21, 2017 05:38

    Hi
    problem Solved :
    your Audio file must Standard Setting .
    if you convert a Audio file to Other format ,you should not change setting in convertor , Because unity Not Support other setting and show follow Error :

    Error: Cannot create FMOD::Sound instance for resource Ȝ B , (Unsupported file or audio format. )

  2. 7bf805548843da09822921a402ee6559?d=mm

    SoapboxCloudBuild

    Mar 24, 2017 12:46

    I am encountering a similar issue in Unity 5.5.2f1.

    Device: iPad Air 2
    OSX version: 10.1.1

    It occurs when I attempt to load a wav file saved under Application.persistentDataPath using WWW. Relevant code snippet and debug output included below. Note - the issue is not experienced during the session the files are originally saved in, only during subsequent sessions.

    The file is definitely being loaded by WWW, as localFile.audioClip is not null. What seems odd to me is that the error message occurs between the LOAD COMPLETE and FILE LOADED SUCCESSFULLY output, when they should be executed immediately after each other.

    Code:

    WWW localFile = new WWW(path);

    Debug.LogWarning("LOADING FILE AT " + path);
    yield return localFile;

    Debug.LogWarning("LOAD COMPLETE");
    if (!string.IsNullOrEmpty(localFile.error) && OnFileLoadFailed != null) {
    if ((SBSettings.DebugOutput & DebugFlag.FileManager) != 0) {
    string message = "File manager: File not loaded - " + localFile.error;
    SoapBoxManager.AddToLog(message);
    Debug.Log(message);
    }

    OnFileLoadFailed(localFile.error);
    }
    else if (localFile.audioClip == null && OnFileLoadFailed != null) {

    if ((SBSettings.DebugOutput & DebugFlag.FileManager) != 0) {
    string message = "File manager: File at path " + path + " is not an audio file";
    SoapBoxManager.AddToLog(message);
    Debug.Log(message);
    }

    OnFileLoadFailed("File at " + Application.persistentDataPath + "/" + path + " is not an audio file");
    }
    else if (OnFileLoadSuccess != null) {
    Debug.LogWarning("CLIP LOADED SUCCESSFULLY: " + localFile.audioClip);
    yield return 0;
    OnFileLoadSuccess(localFile.audioClip);
    }

    Log output:

    LOAD COMPLETE
    SoapBoxLabs.<_LoadFile>c__Iterator0:MoveNext()
    UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

    (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

    Error: Cannot create FMOD::Sound instance for resource `9, (Operation could not be performed because specified sound/DSP connection is not ready. )
    SoapBoxLabs.<_LoadFile>c__Iterator0:MoveNext()
    UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

    [ line 878]
    (Filename: Line: 878)

    Error: Cannot create FMOD::Sound instance for resource `9, (Operation could not be performed because specified sound/DSP connection is not ready. )
    SoapBoxLabs.<_LoadFile>c__Iterator0:MoveNext()
    UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

    [ line 878]
    (Filename: Line: 878)

    CLIP LOADED SUCCESSFULLY: (UnityEngine.AudioClip)
    SoapBoxLabs.<_LoadFile>c__Iterator0:MoveNext()
    UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

    (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

    Error: Cannot create FMOD::Sound instance for resource `9, (Operation could not be performed because specified sound/DSP connection is not ready. )
    SoapBoxLabs.<_LoadFile>c__Iterator0:MoveNext()
    UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

  3. D3df694ee57c7130911b2a01afbe7b7d?d=mm

    JasonAtUnity

    Mar 17, 2017 08:38

    @TIM-BLUENOSE , I have the same question as you, Do you find any way to solve yet?

  4. A9884656b627f4ba8f9cbbe4d9e2ac45?d=mm

    rebelincontrol

    Jan 10, 2017 18:50

    @Firtina

    I have posted a response on the existing forum as I feel that it is a related yet separate matter to this one.

    https://forum.unity3d.com/threads/fmod-sound-instance-for-resource-error-with-asset-bundles.431456/

    Thanks

  5. Dda046f5309abdfdea1f7029d797a208?d=mm

    firtina

    Jan 05, 2017 18:42

    @REBELINCONTROL yes it ( specifically: some types of audio not loading for older ios 10 devices ) has been fixed in the 5.5 release and in patches for it. This has also been confirmed by our QA. If you are continuing to have problems please upload a repro project as a new case; it could be a different issue.

  6. A9884656b627f4ba8f9cbbe4d9e2ac45?d=mm

    rebelincontrol

    Jan 03, 2017 18:59

    Can anyone confirm 5.5 or any of its subsequent patches contain the fix? I upgraded after releasing an update in 5.3.x and the issue is occurring again. I've tried 5.5.0f3 and 5.5.0p2. Has anybody actually tried and tested 5.5 for this?

    Thanks

  7. Dda046f5309abdfdea1f7029d797a208?d=mm

    firtina

    Dec 12, 2016 14:40

    QA has confirmed that it was indeed fixed in 5.5 as well as the other versions.

  8. Dda046f5309abdfdea1f7029d797a208?d=mm

    firtina

    Dec 03, 2016 21:55

    Looks like it may have been missed from the release notes, I will be notifying the team to get it added in there after confirming myself that it's in

  9. Dda046f5309abdfdea1f7029d797a208?d=mm

    firtina

    Dec 03, 2016 21:44

    It should have been fixed in 5.5 as well as the latest patches for 5.3 and 5.4

  10. 4f1b8997ca3509f1b3582386a1ce36ad?d=mm

    jkqs

    Dec 01, 2016 02:16

    The latest 5.5.0f3 version of the release notes, or did not mention repair the bug, 5.3.8 version is not on-line, this bug to my project continued delay

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.