core audio offline rendering GenericOutput

后端 未结 4 587
盖世英雄少女心
盖世英雄少女心 2020-11-29 01:36

Anybody successfully done offline rendering using core-Audio.?

I had to mix two audio files and apply reverb(used 2 AudioFilePlayer,MultiChannelMixer,Reverb2 and Rem

4条回答
  •  半阙折子戏
    2020-11-29 02:06

    I followed Abdusha's approach but my output file had no audio plus the size was very small as compared to the input. After looking into it, a fix I made was in "pullGenericOutput" function. After AudioUnitRender call:

    AudioUnitRender(genericOutputUnit,
                                       &flags,
                                       &inTimeStamp,
                                       busNumber,
                                       numberFrames,
                                           bufferList);
    
    inTimeStamp.mSampleTime++; //Updated
    

    increment the timeStamp by 1. After doing this, the output file was perfect with effects working. Thanks. Your answer helped a lot.

提交回复
热议问题