美文网首页
vDSP_vfix16

vDSP_vfix16

作者: 程序员都是傻子呀 | 来源:发表于2020-03-13 11:11 被阅读0次
        float scale = (float)INT16_MAX;
        vDSP_vsmul(self->_outData, 1, &scale, self->_outData, 1, numberOfFrames * self.numberOfChannels);
        
        for (int iBuffer = 0; iBuffer < ioData->mNumberBuffers; iBuffer++) {
            int thisNumChannels = ioData->mBuffers[iBuffer].mNumberChannels;
            for (int iChannel = 0; iChannel < thisNumChannels; iChannel++) {
                vDSP_vfix16(self->_outData + iChannel,
                            self.numberOfChannels,
                            (SInt16 *)ioData->mBuffers[iBuffer].mData + iChannel,
                            thisNumChannels,
                            numberOfFrames);
            }
        }

相关文章

网友评论

      本文标题:vDSP_vfix16

      本文链接:https://www.haomeiwen.com/subject/jwkqshtx.html