Custom sounds?
Moderator: Zyx
Forum rules
Please read the Forum rules and policies before posting.
Please read the Forum rules and policies before posting.
- Gambit37
- Should eat more pies
- Posts: 13720
- Joined: Wed May 31, 2000 1:57 pm
- Location: Location, Location
- Contact:
Custom sounds?
Has anyone yet cracked how to replace the sounds in graphics.dat?
Between them, Rain, Charlatan and Christophe seem to know the structure of this file. Rain's DMextract program extracts all the data files and there are a bunch of .dats that are clearly the sound data. The tool can recompile a graphics.dat to use new graphics, so...
How difficult is it to take it to the next step and add similar customisation of sounds?
Between them, Rain, Charlatan and Christophe seem to know the structure of this file. Rain's DMextract program extracts all the data files and there are a bunch of .dats that are clearly the sound data. The tool can recompile a graphics.dat to use new graphics, so...
How difficult is it to take it to the next step and add similar customisation of sounds?
- ChristopheF
- Encyclopedist
- Posts: 1544
- Joined: Sun Oct 24, 1999 2:36 pm
- Location: France
- Contact:
Changing sounds for the PC or Amiga versions would be very easy. The format is documented on my site. This is basically raw uncompressed digital sound data that you can open in sound editing programs like goldwave.
For the Atari ST version, though, this is more difficult. The sounds are compressed using something like ADPCM encoding I think, but I have never investigated enough in understanding the details (thus no documentation for ST sounds). Maybe Paul knows how the sounds are decoded in CSBwin.
For the Atari ST version, though, this is more difficult. The sounds are compressed using something like ADPCM encoding I think, but I have never investigated enough in understanding the details (thus no documentation for ST sounds). Maybe Paul knows how the sounds are decoded in CSBwin.
Christophe - Dungeon Master Encyclopaedia
-
- Artisan
- Posts: 178
- Joined: Wed Dec 17, 2003 1:39 am
- Location: Osaka, Japan
- Contact:
replacing snd1
hi.
i have just stealthily uploaded the tool at dmweb Encyclopaedia forum:
http://dmweb.free.fr/Forum/read.php?f=8&i=122&t=122
EDIT: next interpretation is brought from reverse engineering of CSBwin source code. thus, actual format may be different from original format representation.
snd1 is just 4-bit 6000Hz pcm wave form format, and accepts easy RLE compression. (all thanks for CSBwin source!)
i have just stealthily uploaded the tool at dmweb Encyclopaedia forum:
http://dmweb.free.fr/Forum/read.php?f=8&i=122&t=122
EDIT: next interpretation is brought from reverse engineering of CSBwin source code. thus, actual format may be different from original format representation.
snd1 is just 4-bit 6000Hz pcm wave form format, and accepts easy RLE compression. (all thanks for CSBwin source!)
Last edited by kentaro-k.21 on Fri May 14, 2004 9:12 pm, edited 1 time in total.
- Gambit37
- Should eat more pies
- Posts: 13720
- Joined: Wed May 31, 2000 1:57 pm
- Location: Location, Location
- Contact:
Woo Hoo -- thanks you very much! Am trying it at the moment...
I have a small problem -- when I import new sounds, they have a lot of noise on them. I am using Sound Forge to convert to 6,000Hz at 8-bit (I can't go down to 4-bit).
Is this the problem?
When I export a SND1 to a WAV, it creates a 6000Hz 8bit WAV. If I re-import that immediately, it sounds perfect.
What is the difference between my WAVs and the ones created by your tool??
I have a small problem -- when I import new sounds, they have a lot of noise on them. I am using Sound Forge to convert to 6,000Hz at 8-bit (I can't go down to 4-bit).
Is this the problem?
When I export a SND1 to a WAV, it creates a 6000Hz 8bit WAV. If I re-import that immediately, it sounds perfect.
What is the difference between my WAVs and the ones created by your tool??
- Gambit37
- Should eat more pies
- Posts: 13720
- Joined: Wed May 31, 2000 1:57 pm
- Location: Location, Location
- Contact:
I've done some investigating into this. I used StripWav to clean up my WAV headers in case they were wrong, and it made no difference. I also tried copying the headers from your WAVs into mine, and that made no difference either.
I don't understand this. Your tool imports it's own generated WAVs perfectly, but if they are changed in any way, or replaced with something different, then the new SND1 files are full of noise...
I don't understand this. Your tool imports it's own generated WAVs perfectly, but if they are changed in any way, or replaced with something different, then the new SND1 files are full of noise...
- Gambit37
- Should eat more pies
- Posts: 13720
- Joined: Wed May 31, 2000 1:57 pm
- Location: Location, Location
- Contact:
Here's a visual comparison.
The top file is my original sound file, resampled to 6000Hz / 8bit.
The bottom file is after i converted it to SND1 using your tool, then converted it back to WAV using the same tool.
You can clearly see that your tool has simplified the wave form and added a lot of noise. But it doesn't do this if you extract a SND1 file, convert it to WAV then convert it back again! The file is identical in every way. Very strange!
The top file is my original sound file, resampled to 6000Hz / 8bit.
The bottom file is after i converted it to SND1 using your tool, then converted it back to WAV using the same tool.
You can clearly see that your tool has simplified the wave form and added a lot of noise. But it doesn't do this if you extract a SND1 file, convert it to WAV then convert it back again! The file is identical in every way. Very strange!
Last edited by Gambit37 on Fri May 14, 2004 4:43 pm, edited 1 time in total.
- Paul Stevens
- CSBwin Guru
- Posts: 4319
- Joined: Sun Apr 08, 2001 6:00 pm
- Location: Madison, Wisconsin, USA
For what it is worth........I believe that if you look at
the CSBwin closely you will see that the 4-bit sound is
not exactly PCM in the same way that a .wav file is PCM.
The Atari sound system had an exponential response and
CSBwin attempts to reproduce this behaviour when it
converts the 4-bit samples to an in-memory wave file.
Whether I got it right is an open question.
the CSBwin closely you will see that the 4-bit sound is
not exactly PCM in the same way that a .wav file is PCM.
The Atari sound system had an exponential response and
CSBwin attempts to reproduce this behaviour when it
converts the 4-bit samples to an in-memory wave file.
Whether I got it right is an open question.
-
- Artisan
- Posts: 178
- Joined: Wed Dec 17, 2003 1:39 am
- Location: Osaka, Japan
- Contact:
hi.
---
i assumed the SND1 format is 4 bits PCM sound, and i coded the tool to exchange the data in that format. merely my guess.
Paul pointed that next description is not actual even if sound decoder exists in CSBwin, because it seems to be only quasi decoder.
> snd1 is just 4-bit 6000Hz pcm wave form format, and accepts easy RLE compression. (all thanks for CSBwin source!)
thus, this is my lying. i apologize for carelessness information supply.
---
> You can clearly see that your tool has simplified the wave form and added a lot of noise.
your point (about noise) is right (if there is implicit sympathy, that snd1 is just 4 bits PCM sound, between i and you).
because my tool just carries out thoughtless linear range conversion between 4 bits and 8 bits, as you point, converted dat file (quasi snd1) will contain noises.
about 'thoughtless linear range conversion', please look at the modified figure: http://homepage3.nifty.com/kkdf/0515_001.gif
if you hope, i will improve this behavior.
---
> For what it is worth
i guess it is worth that anyone can have their own sound on "CSBwin", even if CSBwin uses quasi sound decoder.
---
i assumed the SND1 format is 4 bits PCM sound, and i coded the tool to exchange the data in that format. merely my guess.
Paul pointed that next description is not actual even if sound decoder exists in CSBwin, because it seems to be only quasi decoder.
> snd1 is just 4-bit 6000Hz pcm wave form format, and accepts easy RLE compression. (all thanks for CSBwin source!)
thus, this is my lying. i apologize for carelessness information supply.
---
> You can clearly see that your tool has simplified the wave form and added a lot of noise.
your point (about noise) is right (if there is implicit sympathy, that snd1 is just 4 bits PCM sound, between i and you).
because my tool just carries out thoughtless linear range conversion between 4 bits and 8 bits, as you point, converted dat file (quasi snd1) will contain noises.
about 'thoughtless linear range conversion', please look at the modified figure: http://homepage3.nifty.com/kkdf/0515_001.gif
if you hope, i will improve this behavior.
---
> For what it is worth
i guess it is worth that anyone can have their own sound on "CSBwin", even if CSBwin uses quasi sound decoder.
-
- Artisan
- Posts: 178
- Joined: Wed Dec 17, 2003 1:39 am
- Location: Osaka, Japan
- Contact:
hi.
in Aug 2004, i had improved the encoder code a liitle bit, and new code was integrated into DM1GDED.
DM1GDED is still unpublished. development memo is available at my site: http://members.at.infoseek.co.jp/danmas ... M1GDED.htm
if anyone wanna try DM1GDED, i'll publish current development version. at least, it may help you to edit SND data easily.
DM1GDED has capable to edit some IMG/SND data in graphics.dat. it won't equip useful editor features found on ADGE (such as meaningful editor for 0558 raw data).
DM1GDED won't care for 0558 raw data, so your trial to change image size with DM1GDED causes messed up display in the game play. because ADGE has good features/UI to edit 0558 raw data effectively, DM1GDED won't support it for good.
if i continue to develop DM1GDED, i will improve so that it can cover weakness of ADGE.
in Aug 2004, i had improved the encoder code a liitle bit, and new code was integrated into DM1GDED.
DM1GDED is still unpublished. development memo is available at my site: http://members.at.infoseek.co.jp/danmas ... M1GDED.htm
if anyone wanna try DM1GDED, i'll publish current development version. at least, it may help you to edit SND data easily.
DM1GDED has capable to edit some IMG/SND data in graphics.dat. it won't equip useful editor features found on ADGE (such as meaningful editor for 0558 raw data).
DM1GDED won't care for 0558 raw data, so your trial to change image size with DM1GDED causes messed up display in the game play. because ADGE has good features/UI to edit 0558 raw data effectively, DM1GDED won't support it for good.
if i continue to develop DM1GDED, i will improve so that it can cover weakness of ADGE.
- ChristopheF
- Encyclopedist
- Posts: 1544
- Joined: Sun Oct 24, 1999 2:36 pm
- Location: France
- Contact:
-
- Artisan
- Posts: 178
- Joined: Wed Dec 17, 2003 1:39 am
- Location: Osaka, Japan
- Contact:
hi, Christophe.
i'll publish soon, and i just a qeustion for you.
DM1GDED always depends on map files in your file decoder package to edit any img/snd/text data.
would you mind if i attach the map files to published rar archive?
about features, please don't hold your breath, there won't be fresh features in DM1GDED.
the purpose of DM1GDED was to replace your hard working (extract files, editing images/sounds and rebuild graphics.dat) can be done by DMExtract with easy way... very straight motive. i had another purpose to write DM1GDED last summer, but i cannot remember it now.
i'll publish soon, and i just a qeustion for you.
DM1GDED always depends on map files in your file decoder package to edit any img/snd/text data.
would you mind if i attach the map files to published rar archive?
about features, please don't hold your breath, there won't be fresh features in DM1GDED.
the purpose of DM1GDED was to replace your hard working (extract files, editing images/sounds and rebuild graphics.dat) can be done by DMExtract with easy way... very straight motive. i had another purpose to write DM1GDED last summer, but i cannot remember it now.
- ChristopheF
- Encyclopedist
- Posts: 1544
- Joined: Sun Oct 24, 1999 2:36 pm
- Location: France
- Contact:
-
- Artisan
- Posts: 178
- Joined: Wed Dec 17, 2003 1:39 am
- Location: Osaka, Japan
- Contact:
thanks, i uploaded current dev ver on my file site, it is a little bit large (213k).
http://homepage3.nifty.com/kkdf/DM1GDED.Rev.0.rar
http://homepage3.nifty.com/kkdf/DM1GDED.Rev.0.rar
- ChristopheF
- Encyclopedist
- Posts: 1544
- Joined: Sun Oct 24, 1999 2:36 pm
- Location: France
- Contact:
- Paul Stevens
- CSBwin Guru
- Posts: 4319
- Joined: Sun Apr 08, 2001 6:00 pm
- Location: Madison, Wisconsin, USA
Noticed. You did it!
I cannot export from CSBgraphics.dat, it only allows bmp.
Also, which formats are supported for the import?
EDIT: found it, it's PCM 11,025 kHz; 8 bits; Mono
Playing a sound this way doesn't respect the general volume settings from the menu.
In CSBgraphics.exe, when importing, giving a name of more than 16 characters crashes the application.
Putting a space in the name gives an error with an unclear message.
I cannot export from CSBgraphics.dat, it only allows bmp.
Also, which formats are supported for the import?
EDIT: found it, it's PCM 11,025 kHz; 8 bits; Mono
Playing a sound this way doesn't respect the general volume settings from the menu.
In CSBgraphics.exe, when importing, giving a name of more than 16 characters crashes the application.
Putting a space in the name gives an error with an unclear message.
- Paul Stevens
- CSBwin Guru
- Posts: 4319
- Joined: Sun Apr 08, 2001 6:00 pm
- Location: Madison, Wisconsin, USA
- Paul Stevens
- CSBwin Guru
- Posts: 4319
- Joined: Sun Apr 08, 2001 6:00 pm
- Location: Madison, Wisconsin, USA
-
- Artisan
- Posts: 178
- Joined: Wed Dec 17, 2003 1:39 am
- Location: Osaka, Japan
- Contact:
- Paul Stevens
- CSBwin Guru
- Posts: 4319
- Joined: Sun Apr 08, 2001 6:00 pm
- Location: Madison, Wisconsin, USA
Volume will work next time I post an executable. The volume parameter is
a divisor of the PCM samples. The menu volume divides by 2, 4, 8 in addition (no
pun intended).
We should implement a sound filter so any sound can be modified. Should be easy.
Edit: Maybe we can provide monster movement sounds.
a divisor of the PCM samples. The menu volume divides by 2, 4, 8 in addition (no
pun intended).
We should implement a sound filter so any sound can be modified. Should be easy.
Edit: Maybe we can provide monster movement sounds.
Could you add a command parameter or a command line in the config.txt to set the "Attempt using DirectX" option by default? (even if it crashes the game when quiting, with long sounds it becomes almost obligatory to use a multichannel solution )
monster movement sounds: maybe a monster movement filter?
Does anyone have ripped the big steping sound from pc dm or amiga dm?
monster movement sounds: maybe a monster movement filter?
Does anyone have ripped the big steping sound from pc dm or amiga dm?