简体   繁体   中英

move sound from left to right

如何在 iPhone 中从左到右移动耳机的声音?

I think you want the pan property of the AVAudioPlayer. Check the AVAudioPlayer documentation

From the pan property:

By setting this property you can position a sound in the stereo field. A value of –1.0 is full left, 0.0 is center, and 1.0 is full right.

查看 Apple 网站上的示例应用程序: oalTouch

在 iPhone 4 iOS 5.0 上,如果您转到一般,然后可访问并向下滚动,则可以选择执行您需要的操作

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