How to play a raw PCM data?

Is there a way to create/play sounds using raw PCM data in memory (in run time)? It seems that the documentation only describes APIs regarding static audio resources and reading the source code didn’t help much.


You can subclass hxd.res.Sound and implement your own data source by overriding getData()