Did you ever get .MOD sound files working? #1

Closed
opened 2021-04-26 01:43:22 -04:00 by ryandakid · 2 comments
ryandakid commented 2021-04-26 01:43:22 -04:00 (Migrated from github.com)

I just recently came across this github repository because I had just picked this book back up myself. Beforehand, I had already gotten the source code working to an extent, but I then found that you had fixed it all the way.

I could never get sound working on Dosbox or the Windows 95 virtual machine. The sound would work with the precompiled executable, but when I would try and play either the one I compiled or the one that you provided on this repository, I could never get sound working on anything I compiled myself.

It didn't work with my source code and it didn't work with your source code.

I was just wondering if you ever got the sound working, and whether you could provide some assistance for me in getting sound to work.

I have run out of ideas. I honestly feel that it could be something wrong with the library itself, but I am not sure.

Thank you in advance for responding to this! I know that adults are usually quite busy during the week, so if you cant help, then that is fine too.

-Ryan

I just recently came across this github repository because I had just picked this book back up myself. Beforehand, I had already gotten the source code working to an extent, but I then found that you had fixed it all the way. I could never get sound working on Dosbox or the Windows 95 virtual machine. The sound would work with the precompiled executable, but when I would try and play either the one I compiled or the one that you provided on this repository, I could never get sound working on anything I compiled myself. It didn't work with my source code and it didn't work with your source code. I was just wondering if you ever got the sound working, and whether you could provide some assistance for me in getting sound to work. I have run out of ideas. I honestly feel that it could be something wrong with the library itself, but I am not sure. Thank you in advance for responding to this! I know that adults are usually quite busy during the week, so if you cant help, then that is fine too. -Ryan
ryandakid commented 2021-04-26 01:50:30 -04:00 (Migrated from github.com)

I figured it out... I had some code that I had forgotten to put in the main file. :P

I figured it out... I had some code that I had forgotten to put in the main file. :P
gered commented 2021-04-28 21:23:36 -04:00 (Migrated from github.com)

Glad you figured it out!

I'm curious though about something you mentioned:

The sound would work with the precompiled executable

Which precompiled executable are you referring to? The FDEMO/MALL exes included on the book's CD-ROM? That's interesting if so! I know the music never played for me with those exes. Once I found that the modplay.asm code was slightly broken here, I just assumed that was the reason (since the code is most definitely broken).

Anyway, I can 100% confirm that the code included in this repository for the FDEMO and MALL projects absolutely should be playing .MOD files (works perfectly on my 486 PC). As mentioned in the readme files included in this repository, the existing code is configured to use your sound card using address 220h, IRQ 5, DMA 1 though, so if this is not correct for you, obviously you will not hear any sound. I don't use Dosbox so I don't know what it defaults to.

Glad you figured it out! I'm curious though about something you mentioned: > The sound would work with the precompiled executable Which precompiled executable are you referring to? The FDEMO/MALL exes included on the book's CD-ROM? That's interesting if so! I know the music never played for me with those exes. Once I found that the `modplay.asm` code was slightly broken here, I just assumed that was the reason (since the code is most definitely broken). Anyway, I can 100% confirm that the code included in this repository for the FDEMO and MALL projects absolutely **should** be playing .MOD files (works perfectly on my 486 PC). As mentioned in the readme files included in this repository, the existing code is configured to use your sound card using address 220h, IRQ 5, DMA 1 though, so if this is not correct for you, obviously you will not hear any sound. I don't use Dosbox so I don't know what it defaults to.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: gered/ack3d#1
No description provided.