Skip to content

[Bug] Unable to manually play sample using Sample_Play when using SB driver and targetting DOS #87

@CloakedAlien

Description

@CloakedAlien

Hi!

At this point it seems like I have have encountered an issue where the combination of Sample_Play and the SB-driver refuses to work, but WAV output produces the expected results.

My setup is as follows:
*) Using Open Watcom V2 under linux
*) Compiling libmikmod-3.3.13 DOS library using included Makefile.wat without modifications (thank you for this!)
*) Targetting 32-bit DOS using DOS32A or PMODEW (DOS4GW seems to crash out for me)
*) Modifying and using included libmikmod-3.3.13/examples/soundeffects/soundeffects.c
*) Compiled using wcl386 -cc++ -oi+ -l=dos32a -5s -bt=dos -fp5 -fpi87 -mf -oeatxh -w4 -ei -zp8 -zq -dMIKMOD_STATIC=1 -i=./libmikmod-3.3.13/include soundfx.c ./libmikmod-3.3.13/dos/mikmod.lib
*) Running the resulting EXE under Dosbox and real hardware

Playing a module seems to work just fine, however I cannot get manual sound effects to play either in combination with a module or using the standalone example.

However using WAV writer output the resulting music.wav does contain sound effects!

So the issue seems t be the combination of Sample_Play / Voice_Play and SB driver, but module playback works. I am not getting any loading or playback errors, it simply does not play the sample at all.

My samples does not seem to be the issue (since WAV output works and they are all mono and PCM) nor does the SB output seem to be an issue since module playback works and I'm afraid this is a little over my head.

I will try to test this using a PicoGUS as soon as I can to see if I can further narrow it down.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions