A
A
astatium1352018-04-06 15:15:56
API
astatium135, 2018-04-06 15:15:56

How to play sound from a char buffer on WinAPI?

Good afternoon! It is necessary to play a wav sound represented by a char array. PlaySound and its sibling sndPlaySound allow you to play either a file or a resource. Of course, there is a crutch in the form of writing the contents of the buffer to disk with subsequent reading and playback, but this is very crutch, and it creates delays. So can you tell me how to feed PlaySound or some of his fellow char array, or convert this very array into a resource?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question