How can I generate continuous tones of varying frequencies?

后端 未结 2 1861
青春惊慌失措
青春惊慌失措 2020-12-30 10:26

I want to generate and play a continuous sound with specific frequencies and amplitudes that change over time. I don\'t want to have a delay between sounds. How can I do thi

2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-30 10:42

    By using WaveAudio library it's possible to generate a continous cosinus wave.

    I was gonna post some code but I can't figure out how to do it properly so I won't.

    But all you need to do is use TLiveAudioPlayer and then override the OnData event.

    And also set Async to true if there is no message pump.

提交回复
热议问题