Sounds often not playing

I’m using the D programming language (dlang.org) on macOS.

Using SDL_Mixer the sounds played with ID don’t always make any sound!