Unity3d Audio Seamless Loop

Source: Internet
Author: User

When I was doing the car drift, the drifting sound was intermittent and I was depressed.

You can just grab a sound and loop it back and listen.

You'll notice that when the sound is played once, the second time loop is paused.

I do the car drift if the experience is very bad in the middle of the pause, so I started looking for reasons

First check the sound, no problem.

Check the code, write the test code, or no problem

Is it a u3d bug? It's not a good cycle, why is there a pause?

Later in the official document see a gapless looping (seamless loop) Parameters!!

Soga, originally had this option, thought finally can be solved

But things don't seem so easy.

Gapless looping This parameter no matter how I set it, he just can't tick

I was depressed, looked at a lot of information we all just introduced him why use, but did not say can not check this question

Am I the only one who meets? Or we have no such demand!!

Helpless, I directly change the audio of the. Mata file

Find the audio. Mata open with text, find "loopable"

It defaults to 0, manual change to 1, save back to U3d will find the audio has been checked gapless looping

Test if it really works! Well, it's really good.

Fileformatversion:2
Guid:1e8c12c16ca11524984902b8af6f86c4
Audioimporter:
Serializedversion:4
format:0
Quality:. 5
Stream:1
3d:0
forcetomono:0
usehardware:0
Loopable:1
UserData:

Although it solves the problem, it is a wonderful thing

If a small partner knows how to check gapless looping please let me know, thank you.

This article link: http://www.cnblogs.com/shenggege/p/5126651.html

Unity3d Audio Seamless Loop

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.