what is the simpliest way to play sound from array data in delphi

后端 未结 4 1630
说谎
说谎 2020-12-31 21:01

Is there any simple function? I am searching something like that

Play(@data, 44000, 100 {time});

4条回答
  •  滥情空心
    2020-12-31 21:21

    Microsoft has a Knowledge Base article telling you how you can play sound from memory using MCI. You'll probably need to have the wave file header in your array, or otherwise copy in the right data during the first read, but other than that it should be fairly easy to port over.

提交回复
热议问题