سؤال

How do I play multiple audio and change its volume using Novocaine?

thanks!

هل كانت مفيدة؟

المحلول

There is similar question which I wrote quite a lengthy response for

Using Novocaine in an audio app

Basically playing multiple sounds at once involves mixing the various sounds down sample by sample. Changing volume involves multiplying samples in the audio buffer by some amplitude value. That is if you want your output to be twice as loud simply multiply every sample by 2.0f. Accelerate framework can help you with this.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top