DeWss. Dual Dos/Windows Version 1.xx by Mikero
see fixes.txt
ReadMeGeneral contains important information regarding installation and usage that is not repeated, ad-nausea, for every application, including this one. You are strongly advised to read it.
All Mikero tools 'behave', install, and operate in an identical manner. Learn once, learn em all,
General
A sound file is a wss, wav, or ogg. All are treated equally.
DeWss converts any sound file to any one of the other types.
If that's all you require then Either:
"DeWss Soundfile
Either method will produce Soundfile.wav or Soundfile.wss in the same folder and you can now stop reading. <grin>
Features:
File Dropping:
Dropping a sound file onto the exe will automatically produce a result. Eg wss is automatically written back as wav, and vice versa.
Dropping a sound file onto an opened gui will allow you to inspect or change it.
Playback
sound playback is accomplished by file association with an external playback program such as Microsoft's Windows Media player.
For wav files: Microsoft's Windows Media player or Winamp or ITunes.
For wss files: you need to install either Bis Arma2 Tools or Bis Arma3 steam tools.
For ogg, a suitable plugin, or VLC
The nitty gritty
Some things you might like to know.
The corner stone of all audio is pcm (pulse code modulated) data.
WAV files are the industry standard sound recording, file interchange, and file storage format for raw pcm data.
wav files can also contain huge chunks of extraneous data used only by the maker of the audio creation tool. This extraneous data has no meaning to audio playback and is quite useless outside of the unique editor that created the wav file.
There is an immediate benefit then converting wav to wss. The amount of benefit varies from a few bytes to enormous.
In addition, wss can optionally be compressed reducing the file size again, by as much as 75% of it's already stripped state.
If you understand above, you will understand that uncompressed wss might dramatically reduce your file size. Compressed wss will, dramatically reduced your file size in addition to simply making it wss in the first place.
Compressed wss comes in two flavors. Byte compressed and Nibble compressed. Each, respectively, halve, or quarter the file size, with, some loss of quality.
Windoze mode.
Windoze mode is accomplished simply by clicking on the exe. OR, passing no parameters to the exe when in a dos console.
The gui should be self explanatory.
The various options allow you to resample, and/or convert from one format to any other format.
More powerful use of this tool is restricted to the dos console version where entire folders can be converted in one go.
Selecting output type
Any file type can be converted to another. In the case of wss, it can be converted to another type of wss
Note that for wss compression, Input must be 16bit
Resampling
Input must be 16bit.
Resampling can be done to any file. Note Carefully, there is no parachute. The input file is affected if no destination is specified.
Resampling is another method of compressing the original file by reducing the samples per second. It can be used in conjunction with wss or ogg compression.
Dropping from a 'standard' rate of say 24000 to 8k will reduce the size by 1/3d (and etc)
Obviously, ymmv. And again note carefully the lack of a parachute
Create Lip
currently selected file produces lip sync (.lip) regardless of input type. Must be 16bit mono.
Dos Mode: Alias the Penguin.
Dos mode occurs by being in a dos prompt to begin with OR, via a batch command (.bat or .cmd processing).
Dos mode allows very fine grain control -options, and speed, in what you want to achieve.
Specialised
Like all dos tools, DeWss can utilise the powerful analytics available in the dll to achieve quite a bit more than simple output.
With that ability comes the responsibility to know your stuff, and to that end, like all dos tools, DeWss uses standard syntax common to all Mikero's tools to process what it is you actually want to achieve.
Syntax:
Type
dewss -?
This document is not constantly updated. Use above for the options available that affect your version. Below has *probably* changed.
DeWss [+|-options...] [SourceFolder] | [\*.ext] [DestinationFolder]
DeWss [+|-options...] File.ext [DestinationFileOrFolder]
-options
caseINsEnsITIve,
multiple -option arguments, AND/OR concatenated options are
both are permissible
-L: LIST HEADERS
Single file
DeWss -L some.wss
DeWss -L some.wav
DeWss -L some.ogg
Folder scans (Note that folder scans cause a summary of all files encountered. A bonus for tracking down oddballs)
DeWss -L some\folder // all sound files are scanned
DeWss -L
some\folder\*.wss
DeWss -L some\folder\*.wav
DeWss -L some\folder\*.ogg
alternate syntax:
DeWss -Lwss/0
some\folder
DeWss -Lwav/1 some\folder
DeWss -Logg/2 some\folder
CONVERSION
implicit (default) conversion no -option required
Dewss file.wav
// output is to file.wss
Dewss file.wss
// output is to file.wav
Dewss file.ogg
// output is to file.wav
explicit conversion.
DeWss -ogg/2 *.wss/wav // to ogg
DeWss -wav/1 *.wss/ogg // to wav
DeWss -wss/0 *.wav/ogg // to wss uncompressed
DeWss -nibble/4 *file // any files(s) to nibble compressed
DeWss -byte/8 *file // any file(s) to byte compressed
Resample
dewss -R=samplerate,quality
example:
DeWss -R=2050,1 *.wav/ogg/wss
if the sample rate is the same, it reports a warning only (not an error), so that all other files can carry on