简体   繁体   中英

Play audio from float arrays iOS Swift

I have 2 float arrays one representing the left channel values and the other representing the right channel values. How can I create and play music from these two arrays?(Sample Rate = 44100) TIA

Here is an example of what you want to do. You just have to change it to use 2 channels instead of 1 and change the fillBuffer function to fill the buffers using your values.

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