Stagefright中关于audio的部分由AudioPlayer处理,输出使用AudioSink 或AudioTrack。

AwesomePlayer在initAudioDecoder方法中建立audio decoder

status_t AwesomePlayer::initAudioDecoder() {
    ...
    if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_RAW)) {
        mAudioSource = mAudioTrack;
    } else {
        mAudioSource = OMXCodec::Create(
                mClient.interface(), mAudioTrack->getFormat(),
                false, // createEncoder
                mAudioTrack);
    }    
    ...
}

相关文章:

  • 2021-12-19
  • 2021-06-23
  • 2022-12-23
  • 2021-08-11
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2021-12-15
  • 2022-03-07
  • 2022-01-16
相关资源
相似解决方案