当前位置:网站首页>Unity3d C # development of wechat games audio / sound playback problem solving process sharing
Unity3d C # development of wechat games audio / sound playback problem solving process sharing
2022-06-11 23:08:00 【Shi Yao Bu Ru】
Preface
I wrote an article before u3d Turn to the blog of wechat small game development tutorial , Received a lot of feedback from developers , I personally try my best to reply to what I know , Because the plug-in is in public beta , There will be many problems and unstable factors ; The plug-in will be updated frequently during development . I have encountered many problems that others have encountered , Many people are also asking about audio :

And I also met , Finally, it was solved by turning to the authorities .
Audio optimization
Due to export to WEBGL The game of , Audio processing upper There is a certain performance loss , It is recommended to call SDK In the audio API Direct control of playback , Can achieve good results . Use wechat audio API There is no need to monitor the rear audio onAudioInterruptionBegin,onAudioInterruptionEnd event , The plug-in automatically handles .
The way developers recommend is SDK Play the audio :
problem
I don't use SDK Of api Play the audio , It is Unity Self contained AudioSource Playing form , But in the Unity There's nothing wrong with the end , It is also normal in wechat developer tools after conversion , After running on the real machine, all audio reports the following errors :
Loading FSB failed for audio clip “****”.
Someone asked me this question , I couldn't answer the question at that time , Finally, I added customer service for small game development , And feed back the problem to him :
Today, he contacted me and told me that it was ok , I tried it and it really worked :
More tests may be needed , But now it seems that it should be basically normal , Otherwise, the game without sound effect is very painful .
summary
This process seems to be related to the platform version , After all, it is in the public beta , It is normal to have problems , If you have a problem , And you can't find it on the Internet , You can contact the customer service personnel , take Problem feedback , Maybe we can solve our problems .
边栏推荐
- 【delphi】判断文件的编码方式(ANSI、Unicode、UTF8、UnicodeBIG)
- Wireless communication comparison of si4463, si4438 and Si4432 schemes of wireless data transmission module
- 2022 online summit of emerging market brands going to sea will be held soon advance AI CEO Shou Dong will be invited to attend
- H.265编码原理入门
- 【Day6-7 文献精读】A unifying Bayesian framework accounting for spatiotemporal interferences with a ...
- [day1/5 literature intensive reading] speed constancy or only slowness: what drives the kappa effect
- 2022 operation of simulation examination platform for safety officer C certificate
- Application of Lora technology in long distance wireless transmission of water meter reading
- 2022年安全员-B证理论题库及模拟考试
- Unity3d C#开发微信小游戏音频/音效播放问题解决过程分享
猜你喜欢

直播预告|FeatureStore Meetup V3 重磅来袭!

Small program startup performance optimization practice
![[Day8 literature extensive reading] space and time in the child's mind: evidence for a cross dimensional symmetry](/img/c2/e70e7c32c5dc5554dea29cb4627644.png)
[Day8 literature extensive reading] space and time in the child's mind: evidence for a cross dimensional symmetry

2022 high voltage electrician test question simulation test question bank and online simulation test
![[day1/5 literature intensive reading] speed constancy or only slowness: what drives the kappa effect](/img/17/5481a9e05de96eb0a2f89709e6120d.png)
[day1/5 literature intensive reading] speed constancy or only slowness: what drives the kappa effect

Huawei equipment configuration hovpn

Discrete mathematics attention points, priority problems

Method for WiFi wireless transmission module to access cloud platform using esp8266 chip scheme

【Day6-7 文献精读】A unifying Bayesian framework accounting for spatiotemporal interferences with a ...

Meetup回顾|DevOps&MLOps如何在企业中解决机器学习困境?
随机推荐
Getting started with message queuing MQ
[day15 literature extensive reading] numerical magnetic effects temporary memories but not time encoding
2022年低压电工上岗证题目及在线模拟考试
2022年安全员-A证考题模拟考试平台操作
2022年起重机司机(限桥式起重机)考试题模拟考试题库及模拟考试
postgresql10 进程
Two way leading circular linked list (C language)
JsonParseException: Unrecognized token ‘username‘: was expecting表单提交登陆数据报错
2022 high voltage electrician test question simulation test question bank and online simulation test
IEEE floating point mantissa even round - round to double
Alibaba cloud server MySQL remote connection has been disconnected
消息队列存储消息数据的 MySQL表
[day4 literature intensive reading] space – time interdependence: evidence against Asymmetric mapping between time and space
Analysis on the market prospect of smart home based on ZigBee protocol wireless module
小程序启动性能优化实践
16 | floating point numbers and fixed-point numbers (Part 2): what is the use of a deep understanding of floating-point numbers?
Solution to page locking caused by xshell accidentally pressing ctrl+s
The key to the safe was inserted into the door, and the college students stole the mobile phone numbers of 1.1 billion users of Taobao alone
[solution] solution to asymmetric and abnormal transformation caused by modifying the transform information of sub objects
Mobile terminal - picture timeline of swipe effect