Audio Unit Graph pause and repeating

前端 未结 2 657
悲&欢浪女
悲&欢浪女 2021-01-16 06:57

I\'ve been trying to implement Audio Unit Graph using Apple provided code: IphoneMixerEQGraphTest. So far I have encountered two problems:

1.) I can\'t find any way

2条回答
  •  没有蜡笔的小新
    2021-01-16 07:45

    AVAudioPlayer is a huge class, You can easily get duration from:

    Float64 fileDuration = PrepareFileAU (fileAU, fileFormat, audioFile);
    

    see ADC sample at:

    http://developer.apple.com/library/mac/#samplecode/PlayFile/Introduction/Intro.html

    avoiding including other frameworks.

提交回复
热议问题