sfx.d 238 B

12345678910111213
  1. module audio.sfx;
  2. import raylib;
  3. import std.string;
  4. import system.abstraction;
  5. Sound sfx;
  6. void playSfx(string filename) {
  7. debug debugWriteln("Loading & playing SFX");
  8. sfx = LoadSound(filename.toStringz());
  9. PlaySound(sfx);
  10. }