Algorithm to mix sound

后端 未结 20 2119
囚心锁ツ
囚心锁ツ 2020-11-29 16:55

I have two raw sound streams that I need to add together. For the purposes of this question, we can assume they are the same bitrate and bit depth (say 16 bit sample, 44.1k

20条回答
  •  南笙
    南笙 (楼主)
    2020-11-29 17:12

    If you need to do this right, I would suggest looking at open source software mixer implementations, at least for the theory.

    Some links:

    Audacity

    GStreamer

    Actually you should probably be using a library.

提交回复
热议问题