简体   繁体   中英

Apportable soundeffect delay

I am have problems when playing sound effects using the Apportable SDK.

All of the wav sound effects are preloaded using SimpleAudioEngine.

This is the code i am using

- @ init
[[SimpleAudioEngine sharedEngine] preloadEffect:@"sound.wav"];

- @ event
[[SimpleAudioEngine sharedEngine] playEffect:@"sound.wav" pitch:1.0f pan:0.0f gain:1.0f];

It plays flawlessly on IPhone 4/4S/5S but when porting to android it gets a delay by 0.5 to 1 second.

usually this problem can be solved by lowering the sample rate of the sound effect or, unfortunately, using a better device. might i ask which device you're using?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM