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

后端 未结 4 1593
说谎
说谎 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:32

    The Win32 API PlaySound function can play standard RIFF-encoded audio (such as WAV audio) from a memory block by using its SND_MEMORY flag. Alternatively, if the audio is in the app's resources, you can use the SND_RESOURCE flag instead.

提交回复
热议问题