Menu

#8 Add WASAPI driver for Windows

v1.0 (example)
closed
nobody
None
5
4 days ago
2026-04-20
No

This introduces a new drv_wasapi.c driver using Windows Audio Session API (WASAPI), the modern audio backend on Windows 10/11.

The driver has been tested and works correctly with the current mixer. It aligns the mixing rate with the device mix format to avoid playback speed issues in shared mode.

For full integration details and related changes, see:
https://github.com/execomrt/mikmod/commit/08e8d00c4ea496c7ad9ba4009ec9360ff78364cd

Additional header updates may be required; I can prepare those if desired.

Note: DirectSound appears to behave incorrectly on Windows 11 (mono output). WASAPI should be preferred as the default backend when available.

Reference: https://learn.microsoft.com/en-us/windows/win32/coreaudio/wasapi

Discussion

  • Ozkan Sezer

    Ozkan Sezer - 2026-04-21
    • status: open --> closed
     
  • Ozkan Sezer

    Ozkan Sezer - 2026-04-21

    New driver now fully integrated: See git current master (also miiroed at github.)

    Closing the ticket.

    P.S.: The directsound issue needs resolving. (Not tested myself, yet.)

     
  • Ozkan Sezer

    Ozkan Sezer - 2026-05-07

    @realtech: Got a segfault upon MıkMod_Reset() -- see https://sourceforge.net/p/mikmod/bugs/30/
    Please resolve.

     
  • Stephane Denis

    Stephane Denis - 4 days ago

    This is complete, i've wrote this implementation based from my existing codebase.

     
    • Ozkan Sezer

      Ozkan Sezer - 4 days ago

      Great, thanks!

       

Log in to post a comment.

MongoDB Logo MongoDB