Commit graph

87 commits

Author SHA1 Message Date
Eric Wasylishen
2b9e341904 cubic interpolator: actually sounds way better than linear, i must have screwed up my previous attempt 2012-01-04 19:56:39 -07:00
Eric Wasylishen
d4ae16ee48 refactor resampling code 2012-01-04 18:14:14 -07:00
Eric Wasylishen
d1fc2c314b Merge branch 'audio'
* audio:
  comment code a bit better
  box filter: set the box width only based on the final sample frequency. we don't care what the original frequency was.
  box filter: handle start and end of sample by repeating the first and last sample
  choose box filter width based on ratio of sampling rates
  make the box filter work in-place (O(box-width) memory instead of O(sound-length) memory)
  add a comment
  lowpass filter: read samples centered around the dest sample
  force loading samples as 16-bit
  add a "low-pass filter"
  fix stupid bug and linear interpolation sounds OK but not amazing, as expected
  try linearly interpolating between samples for 11025->44100 upsampling. sounds like crap.

Conflicts:
	Quake/snd_mem.c
2011-12-30 11:56:44 -07:00
Eric Wasylishen
6b33701404 comment code a bit better 2011-12-30 11:55:20 -07:00
Eric Wasylishen
caab884744 box filter: set the box width only based on the final sample frequency. we don't care what the original frequency was. 2011-12-30 11:48:18 -07:00
Eric Wasylishen
07532b1a37 box filter: handle start and end of sample by repeating the first and last sample 2011-12-30 11:41:39 -07:00
Eric Wasylishen
a8e2811dc2 choose box filter width based on ratio of sampling rates 2011-12-29 20:25:00 -07:00
Eric Wasylishen
2367fe2c23 make the box filter work in-place (O(box-width) memory instead of O(sound-length) memory) 2011-12-29 20:24:41 -07:00
Eric Wasylishen
ecaa3007b2 add a comment 2011-12-29 20:24:33 -07:00
Eric Wasylishen
34079f1ae1 lowpass filter: read samples centered around the dest sample 2011-12-29 20:24:22 -07:00
Eric Wasylishen
873cacda47 force loading samples as 16-bit 2011-12-29 20:24:17 -07:00
Eric Wasylishen
0264ed1e22 add a "low-pass filter" 2011-12-29 20:24:06 -07:00
Eric Wasylishen
b8b5a7ed1c fix stupid bug and linear interpolation sounds OK but not amazing, as expected 2011-12-29 20:23:56 -07:00
Eric Wasylishen
ed345c7d25 try linearly interpolating between samples for 11025->44100 upsampling. sounds like crap. 2011-12-29 20:23:12 -07:00
Eric Wasylishen
2fae63eef2 choose box filter width based on ratio of sampling rates 2011-12-29 19:33:43 -07:00
Eric Wasylishen
382b135cca reapply autosave patch 2011-12-28 22:10:50 -07:00
Eric Wasylishen
aedfb9636d make the box filter work in-place (O(box-width) memory instead of O(sound-length) memory) 2011-12-28 21:39:31 -07:00
Eric Wasylishen
7e56c24345 add a comment 2011-12-28 20:56:27 -07:00
Eric Wasylishen
5d3752948c lowpass filter: read samples centered around the dest sample 2011-12-28 01:18:17 -07:00
Eric Wasylishen
3873e8ac54 force loading samples as 16-bit 2011-12-28 00:43:31 -07:00
Eric Wasylishen
97f7bd902e add a "low-pass filter" 2011-12-27 23:18:00 -07:00
Eric Wasylishen
3230c48375 fix stupid bug and linear interpolation sounds OK but not amazing, as expected 2011-12-27 21:23:33 -07:00
Eric Wasylishen
228078e361 try linearly interpolating between samples for 11025->44100 upsampling. sounds like crap. 2011-12-27 21:01:47 -07:00
Eric Wasylishen
273c024aec xcode crap 2011-12-27 17:03:59 -07:00
Eric Wasylishen
c0a3a3fa4a Mac OS X: disable mouse acceleration (borrowed from ioquake3) 2011-12-27 15:05:46 -07:00
Eric Wasylishen
300db7705b Set NSApplication subclass in Info.plist instead of using poseAsClass 2011-12-27 14:24:25 -07:00
Eric Wasylishen
7280fd356f fresh checkout of svn r564 2011-12-27 13:50:56 -07:00
Eric
13a6d072f8 Update linux makefile 2011-01-20 13:37:34 -07:00
Eric Wasylishen
143fbe8ea8 Hack to play allow playing named cd tracks
from the worldspawn sounds key
2011-01-20 13:03:40 -07:00
Eric Wasylishen
57f67bc798 Edit warning message 2011-01-20 12:32:01 -07:00
Eric Wasylishen
946fb4aefd Get rid of the USE_CODEC_VORBIS ifdef; we always
want vorbis.
2011-01-20 12:27:02 -07:00
Eric Wasylishen
be88ebbf15 Remove debug check 2011-01-19 23:18:37 -07:00
Eric Wasylishen
109bfc1ccf fix wrong malloc size 2011-01-19 23:12:56 -07:00
Eric Wasylishen
6f44bebff8 Take away choices for music track and standardize
on music/cdtracks/track01.ogg.

We can only support one search location so that
mods can override tracks.
2011-01-19 23:09:43 -07:00
Eric Wasylishen
01556256fa Fix the OGG codec code to deal with OGGs in
pak files
2011-01-19 16:04:03 -07:00
Eric Wasylishen
1276aa62cd Warn when a CD track can't be played 2011-01-19 15:50:46 -07:00
Eric Wasylishen
fa8a6f88f2 Allow playing oggs using 'play soundname' 2011-01-19 15:10:12 -07:00
Eric Wasylishen
f908623606 Mark OGGs as non looping 2011-01-19 15:09:59 -07:00
Eric Wasylishen
e052ab19a2 Undo some debugging code 2011-01-19 14:44:48 -07:00
Eric Wasylishen
396ff706ed remove some unneeded stuff 2011-01-19 14:02:42 -07:00
Eric Wasylishen
30825d4d0a fix last commit 2011-01-19 14:02:28 -07:00
Eric Wasylishen
4ad3c2d0ee Remove unused function 2011-01-19 13:50:44 -07:00
Eric Wasylishen
f2de795e5e Cleanup/refactor of resampling code.
Use resampler for background music.
Should work with 8 or 16 bit output.
2011-01-19 13:41:51 -07:00
Eric Wasylishen
a0f74edc77 Update copyright notices 2011-01-19 01:19:09 -07:00
Eric Wasylishen
dc494fad2e Upadte Xcode project to use embedded
copy of Ogg Vorbis
2011-01-19 01:14:28 -07:00
Eric Wasylishen
7fbb90771d Undo the autosave patch so it's not mixed
in with the ogg patch
2011-01-19 01:00:03 -07:00
Eric Wasylishen
eefff871a2 Get build working on Ubuntu 2011-01-19 00:15:43 -07:00
Eric Wasylishen
fda9ec2962 Add ogg/vorbis COPYING and README 2011-01-18 23:12:11 -07:00
Eric Wasylishen
5bcea42cb9 Include an embedded copy of OggVorbis 2011-01-18 21:29:13 -07:00
Eric Wasylishen
84a8e4c899 Update windows project 2011-01-18 16:17:17 -07:00