research/cutoff
Simon Howard e03a39b233 Add some test sound effects at other sample rates, and revise README.
Subversion-branch: /research
Subversion-revision: 2273
2011-02-21 19:30:11 +00:00
..
notsiln2.lmp Add some test sound effects at other sample rates, and revise README. 2011-02-21 19:30:11 +00:00
notsiln4.lmp Add some test sound effects at other sample rates, and revise README. 2011-02-21 19:30:11 +00:00
notsilnt.lmp Add DMX sound cutoff investigation files. 2011-02-21 18:58:59 +00:00
README Add some test sound effects at other sample rates, and revise README. 2011-02-21 19:30:11 +00:00
silent.lmp Add DMX sound cutoff investigation files. 2011-02-21 18:58:59 +00:00
silent2.lmp Add some test sound effects at other sample rates, and revise README. 2011-02-21 19:30:11 +00:00
silent4.lmp Add some test sound effects at other sample rates, and revise README. 2011-02-21 19:30:11 +00:00

Investigation of DMX sound length cutoffs.

The DMX sound library seems to discard sound effects that are less
than a certain number of samples in length.  The number of samples
depends on the sample rate of the sound effect ...

Included here are various sound files. Rename to dspistol.lmp and run with
doom2.exe -file dspistol.lmp to try out.

11025Hz

silent.lmp         - 48 samples long, not played
notsilnt.lmp       - 49 samples long, played

22050Hz

silent2.lmp        - 49 samples long, not played
notsiln2.lmp       - 50 samples long, played

44100Hz

silent4.lmp        - 51 samples long, not played
notsiln4.lmp       - 52 samples long, played

-----

Looks like:

cutoff = 48 + samplerate / 11025

if length < cutoff:
    discard