I already found the first problem with your library. Your directx modules have module declarations in the form of:
module directx.xaudio2; but they are directly within the src directory.You should create a subfolder called "directx" and place all your modules in there so it is actually consistent with the module declarations.
-- Kind Regards Benjamin Thaut