How to program a real-time accurate audio sequencer on the iphone?

后端 未结 9 600
北荒
北荒 2021-01-30 02:56

I want to program a simple audio sequencer on the iphone but I can\'t get accurate timing. The last days I tried all possible audio techniques on the iphone, starting from Audio

9条回答
  •  -上瘾入骨i
    2021-01-30 03:26

    Really the most precise way to approach timing is to count audio samples and do whatever you need to do when a certain number of samples has passed. Your output sample rate is the basis for all things related to sound anyway so this is the master clock.

    You don't have to check on each sample, doing this every couple of msec will suffice.

提交回复
热议问题