This reverts commit 5977cb04d9.
- It breaks at least one mod (Complex Doom) and who knows how many others.
Considering how long A_Die has been around, a random "fix" like this is
probably not a good idea. [P.S. Missiles have health and can be damaged
by P_DamageMob, so it's not like it never did anything on missiles.]
- 'monster' and 'items' can now filter the list if an argument is passed (like with 'kill');
- added 'countitems', which will show only the 'count items' in the current map, with the same filter parameter as 'monster' and 'items'.
- reorganize the code to reduce the duplication.
- Member variables are now declared all in one place: InitThingdef(). They
are not partially defined in thingdef_expression.cpp and further refined
in actor.txt.
- This left ParseNativeVariable() parsing only functions, so it has been
renamed to ParseNativeFunction().
- Note that their declarations in InitThingdef() are expected to be
temporary.
- I kept getting confused trying to read these instructions, so now their
disassembly looks more MIPS-like:
* All mnemonics have had 'b' prepended to them for "branch".
* The CMP_CHECK bit alters the displayed mnemonic for the inverted
versions. e.g. BEQ can be displayed as BNE.
* The following JMP instruction that encodes the branch destination has
been folded into the disassembly of the branch instruction. Unlike
MIPS, I chose to display it offset from the branch check with =>
instead of another comma.
- GetSystemMetrics can lie about the window border sizes, so we can't
trust it if the executable is flagged as Vista-targetting
(default behavior for VS2012/2013).
- Clang's optional runtime array bounds checking doesn't understand when we
intentionally "overflow" by doing this:
RGB32k[0][0][colorval]
It will warn that it was accessed at an index will past the bounds
of type 'BYTE [32]', which makes it less than useful for catching real
array bounds overflows. So now do this:
RGB32k.All[colorval]
And if you want this:
RGB32k[r][g][b]
Now do this:
RGB32k.RGB[r][g][b]
Squashed commit of the following:
commit f961d7764ccab2dbed8166706896b4b3750e5ab9
Author: Randy Heit <rheit@users.noreply.github.com>
Date: Sat Mar 7 23:09:24 2015 -0600
Was missing some files from the dumb_static project
commit fb6b709c903687015fe775cac5ea1146dfd47051
Author: Randy Heit <rheit@users.noreply.github.com>
Date: Sat Mar 7 22:59:38 2015 -0600
Update CMakeLists.txt for new DUMB
commit 8201b9aee8cc6e8d7fb7043a0e7062e26b9891b1
Author: Randy Heit <rheit@users.noreply.github.com>
Date: Sat Mar 7 22:32:44 2015 -0600
Change the default DUMB quality to cubic
commit 0bd9e1858642dd03cf9633ac1fd69e0e54c67c06
Author: Randy Heit <rheit@users.noreply.github.com>
Date: Sat Mar 7 22:30:17 2015 -0600
Update mod_volramp for new DUMB volume ramping settings
commit 622a67044e3a0aea560e397622b3c6138a8a8cb9
Author: Randy Heit <rheit@users.noreply.github.com>
Date: Sat Mar 7 22:14:04 2015 -0600
Add new DUMB quality levels to the menu
commit b23a3862b9fba672d2c966d8eebcab7ade951498
Author: Randy Heit <rheit@users.noreply.github.com>
Date: Sat Mar 7 21:50:03 2015 -0600
Speed up resamplers by removing lots of implicit function calls
commit 9b884676b9c6afbc4bbe889e7e33a10cffa0e90c
Author: Randy Heit <rheit@users.noreply.github.com>
Date: Sat Mar 7 21:49:57 2015 -0600
Remove direct access to the FP aliasing mixer
The original integer one is faster, and using floats gains nothing here,
so don't bother offering it.
commit 8f9fc8d3317f0db3480577b2c92963dc88f609d0
Author: Randy Heit <rheit@users.noreply.github.com>
Date: Sat Mar 7 20:14:34 2015 -0600
Use unsigned phase counters in the resampler
- delta should always be positive
commit d1228954405bbcd036de66e9bcbe443657cfc590
Author: Randy Heit <rheit@users.noreply.github.com>
Date: Fri Mar 6 23:09:14 2015 -0600
Restore DUMB's original resamplers
- The all-in-one resamplers in resampler.c have more overhead than the
originals, so bring them back. Specifically, the aliasing, linear, and
cubic resamplers have been restored to their previous form. Also, this
is the original aliasing filter and not the blip_buf one. The
resampler.c resamplers are still accessible but at different quality numbers.
commit 730e5d98a0c127b9177e5364752d47a82416a0e4
Author: Randy Heit <rheit@users.noreply.github.com>
Date: Fri Mar 6 22:00:06 2015 -0600
Convert phase back to integers
- Having to call functions to convert to integer and chop off the
non-decimal part of the phase for every sample is super heavyweight.
commit a6325a54e77d2c523f3637c963a41314287b1b0f
Author: Randy Heit <rheit@users.noreply.github.com>
Date: Fri Mar 6 20:16:29 2015 -0600
Remove fir_resampler files
- What are these still doing here?
commit 7f3ebf9b7fa9c9ba9e579b081a263f0e7f949da5
Author: Randy Heit <rheit@users.noreply.github.com>
Date: Fri Mar 6 20:01:53 2015 -0600
Try to eek out some more performance from new resamplers
- Change some floats to doubles to avoid extra conversions.
- Use modf() instead of fmod(), since it seems at least marginally faster.
commit 87047ef20068ee394a3132f173bf12ead8aae8b2
Author: Randy Heit <rheit@users.noreply.github.com>
Date: Fri Mar 6 19:19:09 2015 -0600
Add DUMBCALLBACK to filesystem functions in music_dumb.cpp
commit 36a39ead8109660e1c6054ab91799a765b1ca219
Merge: 92473a0 68d6ef8
Author: Randy Heit <rheit@users.noreply.github.com>
Date: Thu Mar 5 21:48:17 2015 -0600
Merge branch 'dumb_branch' into newdumb2
Conflicts:
dumb/include/dumb.h
dumb/src/core/dumbfile.c
dumb/src/helpers/blip_buf.c
dumb/src/helpers/fir_resampler.c
dumb/src/helpers/resamp3.inc
dumb/src/helpers/resample.inc
dumb/src/it/itread.c
dumb/src/it/itrender.c
dumb/src/it/loadmod.c
dumb/src/it/loadmod2.c
dumb/src/it/readam.c
dumb/src/it/readdsmf.c
dumb/src/it/readmod.c
dumb/src/it/readmod2.c
dumb/src/it/readokt.c
dumb/src/it/readpsm.c
dumb/src/it/readptm.c
dumb/src/it/readstm.c
commit 92473a05517ba36c632236f08a36d4b1870e526a
Author: Randy Heit <rheit@users.noreply.github.com>
Date: Thu Mar 5 15:08:15 2015 -0600
Add seek and get_size functions to mem_dfs
commit 7635e05007df7415d07cc202c2f082424687a0c4
Author: Randy Heit <rheit@users.noreply.github.com>
Date: Thu Mar 5 14:17:25 2015 -0600
Restore ZDoom customizations to DUMB
commit cfdb14c4bbb43410a1549e45f54be1e5872759ae
Merge: fe3c5bd f900c65
Author: Randy Heit <rheit@users.noreply.github.com>
Date: Thu Mar 5 19:00:05 2015 -0600
Merge commit 'f900c65e79c089755013d84cf7f8' into newdumb2
commit fe3c5bdf270c2b1ab65cd8e96bfc16bc88025ae6
Author: Randy Heit <rheit@users.noreply.github.com>
Date: Thu Mar 5 18:59:41 2015 -0600
Remove old DUMB to make way for new DUMB
commit 68d6ef8731e2499bd99790c40cf0dcd179c9903b
Merge: f900c65 2424469
Author: Randy Heit <rheit@users.noreply.github.com>
Date: Thu Mar 5 14:19:19 2015 -0600
Merge remote-tracking branch 'dumb_remote/master' into dumb_branch
commit f900c65e79c089755013d84cf7f856da78c0bc39
Author: Chris Moeller <kode54@gmail.com>
Date: Thu Jun 20 22:27:52 2013 -0700
Fixed C++11 compilation error on Mac OS X
commit 24244696518e81dccac26d13e0acfdaeec56b79e
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Feb 10 00:07:32 2015 -0800
Revert default resampling quality to cubic, as it's a nice trade-off between speed and quality
commit 766a20f4816f5d08275a430ed68d788aefb23e5b
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Jan 16 20:52:57 2015 -0800
Fixed compilation with -fPIC on x86 and x64
commit 1f2c97ef13d66e4787ea1da86a75c6ab7d3b66a7
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 12 02:01:36 2015 -0800
Fixed non-SIMD blep and blam handlers
commit 7f3dd7ed3c97b1f0030ac24753ab248a8d8374b4
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 12 01:25:45 2015 -0800
Sanity fix for ARM NEON code: vmlaq always adds onto the first input parameter
commit 189c55a1eb5902b09579efb79ed9a5b0f960b6c0
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 12 00:03:36 2015 -0800
Typo fix that I only caught by trying to build for ARM
commit 85297714b9f89914a04c39c340a2433a20925f2c
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Jan 11 17:18:53 2015 -0800
Fixed a bug with resampler not clearing blep/blam state variables
commit a39b4d41f63ed34754bcfe94e1638ab2fe9ecb71
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Jan 10 22:15:47 2015 -0800
Added a way to configure the load-time panning separation of hard panned channels, now defaulting to 25%
commit 80e1e1a33c3b1b64012ef24a6537176ea0cc7fd0
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Jan 10 21:50:15 2015 -0800
Overhauled resampler quite a bit, and implmented a new band-limited linear interpolation mode
commit 8ea3282ceaf9e2915d60310fc74fed6951e2b754
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Jan 6 22:44:59 2015 -0800
Fixed STM trying to seek and read non-existing samples
commit f3d6e8f9b1718b1ec1791c49150a0e140ea83911
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Nov 23 00:46:57 2014 -0800
Revert to MSVC 2013
commit a2e6f8de924377007fdd014945e0ce74e44dac78
Author: Chris Moeller <kode54@gmail.com>
Date: Thu Nov 20 21:38:31 2014 -0800
Updated project file to MSVC 2015
commit 7ee625748304ef158460633439c153724171eb3e
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Sep 28 17:48:43 2014 -0700
Updated bit array source and enabled decoration on both bit array and resampler functions
commit 97ef9342913d3ea48e8682bf80a3154631fd481d
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Aug 15 06:10:31 2014 -0700
Fix for MSVC 2013, which now provides its own log2
commit 2069bbc7ae0aa2b395b844f3085db5b3b989d8fc
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Aug 15 05:46:02 2014 -0700
Updated project for MSVC 2013
commit c7f726980b257e127cb0fc788674cc5958005588
Author: Chris Moeller <kode54@gmail.com>
Date: Wed Jul 2 12:24:31 2014 -0700
Fixed dead note dropping when volume ramping is active
commit c08c5988a0f2106660dd61734d91541a0d894e49
Merge: 2c21da5 3b31096
Author: Chris Moeller <kode54@gmail.com>
Date: Wed May 21 22:53:31 2014 -0700
Merge pull request #10 from realistschuckle/master
Move the block for adding the Mac OS X specific properties to after the registration of the library
commit 3b310960c80638e07863de76db5bfdf828577491
Author: Curtis Schlak <realistschuckle@gmail.com>
Date: Thu May 22 00:44:09 2014 -0500
Move the block for adding the Mac OS X specific properties to after the registration of the library.
commit 2c21da52cbd096f3d7409b58b47d8cddcad6b84b
Author: Chris Moeller <kode54@gmail.com>
Date: Sun May 11 17:29:13 2014 -0700
Increased precision of resampler phase variable, greatly reducing the incidence of sample rate rounding errors
commit 9aa0dc277e1360b918aa62f87c92841f25f141ab
Merge: 47337ba 143ac6b
Author: Chris Moeller <kode54@gmail.com>
Date: Wed May 7 21:09:09 2014 -0700
Merge pull request #9 from Vagabond/adt-valgrind-uninitialized-memory
Fix 2 places valgrind warns about unintialized memory being used
commit 143ac6b1311c738587defa65016358fa71be0e31
Author: Andrew Thompson <andrew@hijacked.us>
Date: Thu May 8 00:02:39 2014 -0400
Fix 2 places valgrind warns about unintialized memory being used
commit 47337ba425c79771a522050f85d17db804619ac7
Merge: 5b36c39 57614d0
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Apr 18 16:38:36 2014 -0700
Merge pull request #8 from katajakasa/ttv-cmake-header-path
Change dumb.h install subdirectory in cmake script
commit 57614d0c3f4e160d73676f422e1ba282cc135bbf
Author: Tuomas Virtanen <katajakasa@gmail.com>
Date: Sat Apr 19 02:16:48 2014 +0300
Change dumb.h install subdirectory in cmake script
commit 5b36c39238d02c7f1fa8df791ae54935830300ca
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Apr 11 16:34:13 2014 -0700
Adjusted tempo timing a bit, now rounding samples per tick down instead of up
commit 7a0d05c002c7ced72ceba489fc603b10b6d72d2b
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Apr 8 15:15:29 2014 -0700
Updated license from the original project with clause 8
commit 8c6f27a159f53fbf7a622dfd3ac59bb1df23d206
Merge: 6cb73ee 5ed52e6
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Apr 8 15:10:19 2014 -0700
Merge pull request #6 from Vagabond/adt-unix-debug
Don't include the MSVC debug header if we aren't using MSVC
commit 5ed52e609b8fc32e00cb46330a0c08d5f01a0ea5
Author: Andrew Thompson <andrew@hijacked.us>
Date: Tue Apr 8 13:10:54 2014 -0400
Don't include the MSVC debug header if we aren't using MSVC
commit 6cb73ee3430f7ba10376286a06f28eeb2ed598a2
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Apr 4 21:45:39 2014 -0700
Attempt to fix issue #5 with compiling cpuid inline assembly on any platform using PIC
commit 651e5235b72883f8480bb8138fad01bb168c16f4
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Apr 4 20:25:43 2014 -0700
Updated sinc resampler with unscaled windowing, which fixes a lot of the previous aliasing
commit 9e2c91079ddbbc3d968f17e78b734d529af2afcd
Merge: 07c545a 98e7d70
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Apr 4 19:46:41 2014 -0700
Merge pull request #4 from katajakasa/ttv-cmake-improvements
CMake readme+improvements
commit 07c545a6b7437f30c2864892a1709efcb50b521b
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Apr 4 17:14:38 2014 -0700
MSVC fix again
commit 84ac89922d6fed2d363254965111a0c3222811f1
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Apr 4 16:50:51 2014 -0700
Resampler now adds input delay and subtracts output delay according to whichever quality is selected, rather than being fixed for sinc only. This fixes blep synthesis mode defeating note on and off volume ramping.
commit 98e7d70de745097165e1ea40ded2d3d7e16699b4
Author: Tuomas Virtanen <katajakasa@gmail.com>
Date: Fri Apr 4 16:08:13 2014 +0300
Add readme file for cmake building.
This adds a simple readme file for building the cmake project.
It includes the most common flags and quick build/install commands.
commit 33bc39397f3bef48d5c1c688bfec929db653c9d5
Author: Tuomas Virtanen <katajakasa@gmail.com>
Date: Fri Apr 4 16:05:43 2014 +0300
CMake improvements and cleanups
Add missing "-msse" flag, clean up old BUILD_SHARED flags (cmake has its own
system for doing this) and add a couple more build targets.
commit fa1413c69747f35c396fce8bbd8d2fba005bb11e
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Mar 28 17:50:30 2014 -0700
Changed volume ramping so normal transitions to or from zero volume are quicker
commit 58556af70c7d3ad68657cbda7ff3d4d74aefb70e
Author: Chris Moeller <kode54@gmail.com>
Date: Wed Mar 26 20:58:26 2014 -0700
Removed blip_buf.c from remaining projects
commit 74390bd111b0496a25967cd1418e6f7ec0a4a868
Author: Chris Moeller <kode54@gmail.com>
Date: Wed Mar 26 20:51:43 2014 -0700
Implemented blep synthesis into resampler.c, and removed blip_buf.c and code which referenced the old resamplers
commit cb8ab8c6f6ddef8a0938f771e3fad9d0ca6b2735
Author: Chris Moeller <kode54@gmail.com>
Date: Wed Mar 26 02:12:33 2014 -0700
Derp
commit 56093a31621a65b1f9aae21fbb34cf62e7918a15
Author: Chris Moeller <kode54@gmail.com>
Date: Wed Mar 26 02:04:50 2014 -0700
Another meh fix
commit 23f4dc1b6d64df60fea10eae1d6bf0a88c6d9c0c
Author: Chris Moeller <kode54@gmail.com>
Date: Wed Mar 26 01:40:41 2014 -0700
Oops, I somehow seriously broke volume ramping prior to the previous release
commit 3bcbb6a94a73e0d782e63055a20e7d90860a8b70
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Mar 25 20:19:21 2014 -0700
Made disabling volume ramping actually work correctly
commit 4fcf162e992167d875978ce829f4d8347b1297f4
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Mar 25 20:04:09 2014 -0700
Forgot to re-add missing function
commit dfdf86be5e69122bb1ed4aa34cb6ecc6a7158672
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Mar 25 20:01:37 2014 -0700
Oops, typo
commit 477011d74059eac39f530737ad73b98da24085f1
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Mar 25 19:50:19 2014 -0700
Made volume ramping configurable once again, now configurable between note on/off declicking only or full ramping
commit 52a88bedf98d7582e1efda99782534dab0d3f089
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Mar 24 18:07:52 2014 -0700
Oops, accidentally made DUMB twice as loud as it should be
commit c052e6a45599edc6401e3c3b4513d903f6917e92
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Mar 24 17:24:51 2014 -0700
Fixed resampler for large increments; fixes spx-troughtheinfinite.it
commit 243233d3977da6693aeb131dce03c03cd74ead75
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Mar 24 17:23:44 2014 -0700
Reworked volume ramping a bit
commit a15a906131e89bc8b7fb43dc0c54f704f743d7df
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Mar 23 20:58:27 2014 -0700
Changed sinc window to Nuttal 3 term, and added pre-fill of silence to account for half the window size minus one
commit 3e3c7e15806ba01fc6a680def36ee0df4a3bc6da
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Mar 23 20:58:03 2014 -0700
Removed a stale file from project
commit 3aaf281a82702411ba77067784afb6ba936f8a46
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Mar 23 13:24:54 2014 -0700
Forgot to remove last vestiges of now unused linear and cubic code
commit ee94f03e1d576e6879122dc992f01f2df0b0078c
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Mar 23 13:05:08 2014 -0700
Oops wrong header
commit e1e2edd45fe09a616b336f4e59fcff069da6af4e
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Mar 23 01:30:23 2014 -0700
Oops
commit 6937b61cc57d839278f6ee73bc9471eaa07c7f87
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Mar 23 01:28:04 2014 -0700
Replaced built-in linear and cubic resamplers with new routines
commit a8d9baafc008bc851bce7b0aef799b74b9732a76
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Mar 22 16:29:27 2014 -0700
Renamed lanczos_resampler to sinc_resampler, changed to Blackman window
commit 0d21e1317cb204c4975cb98f7ab3ca5685aca910
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Mar 21 16:15:28 2014 -0700
Remove comments which are no longer correct
commit a2f7fccb2b2cd6b504990b09f784d74b3bb9e8bd
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Mar 21 15:55:46 2014 -0700
Optimized SSE with optional SSE convolving loop, and doubled the kernel size
commit f7e4d06555e314a0b831d8a44a802043d16df69e
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Mar 21 07:06:51 2014 -0700
Overhauled volume ramping and note start/end declicking, now volume ramping is mandatory
commit 02b855c989a02ddf757cf87110857cf376b879e4
Author: Chris Moeller <kode54@gmail.com>
Date: Thu Mar 20 22:26:06 2014 -0700
Work around two possible issues in XM reader; Fixes dark_lighthouse.xm.
commit b661a11b09185a8e8b8a2c4a5c64021cc928ef12
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Mar 4 17:11:22 2014 -0800
Fixed offset effect limiting edge case due to samples being 64 points longer due to LPC processing
commit 7e4d1331dee5772d6eb91073ac68f18b1bd4a55d
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Feb 28 17:51:32 2014 -0800
Revert last change as file was actually broken
commit 70c9d7e03ed210010c88acb2024c94fc60d74cdc
Merge: 3ec1cc5 b068221
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Feb 28 17:06:13 2014 -0800
Merge branch 'master' of github.com:kode54/dumb
commit 3ec1cc5db70c2f782b9e4b1f199bfb04ceae8718
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Feb 28 17:05:33 2014 -0800
Added a workaround for pattern 255 in the order list
commit b0682214bba89f1a6386ed891495a53f74bb67d9
Merge: 3a25c20 3a9b6c7
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 13 23:54:15 2014 -0800
Merge pull request #3 from Vagabond/adt-cmake-install-name
Set the dylib install name on OSX
commit 3a9b6c7cb585c6b1328a97a8befe2f979a1b009d
Author: Andrew Thompson <andrew@hijacked.us>
Date: Tue Jan 14 02:54:22 2014 -0500
Set the dylib install name on OSX
commit 3a25c206f5610e2626926be036b1ffaa8afab5ef
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Dec 2 23:17:42 2013 -0800
Fixed panning and sample loops
commit 16c119ad546665eef86579cefd2a6501c0e3059f
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Nov 25 17:05:36 2013 -0800
Fixed assertion checks in case of envelope loops on the last node
commit b456e20491ea5edc1c052d21e1c105f2d2d5815b
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Nov 25 17:05:02 2013 -0800
Added extra safety checking to aliased resampling mode
commit 55217b9408a6d8d47e9aed12276d096711d3e8f4
Merge: e5df9e9 30dc8c8
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Nov 10 23:41:07 2013 -0800
Merge branch 'ttv-cmake-v2' of https://github.com/omf2097/dumb
commit 30dc8c8c9ead24734d0a42994d2fd3186bf05874
Author: Tuomas Virtanen <katajakasa@gmail.com>
Date: Mon Nov 11 09:29:52 2013 +0200
Remove unnecessary USE_SSE option from cmake file.
commit e5df9e9bec0ff82bce7930ee2dadd5a925cd8342
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Nov 10 23:21:34 2013 -0800
Added more architecture type guards to _USE_SSE blocks
commit 14bf151cba840ea4db29226c1bcfb07c286b1afa
Author: Tuomas Virtanen <katajakasa@gmail.com>
Date: Sat Nov 2 21:24:06 2013 +0200
Add initial CMake script and directory
commit 094cfcc27187a209a5b457b15276d618fea08658
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Nov 10 22:35:24 2013 -0800
Made the inline assembly cpuid function specific to GCC/Clang like it should have been in the first place.
commit 2c9ca950a32cd2de05ed8ae384ad08248793fecd
Author: Chris Moeller <kode54@gmail.com>
Date: Thu Nov 7 19:36:22 2013 -0800
Pan and pitch envelopes carry regardless of NNA being note cut
commit e07088e5f65186f78681116f3337a89d9db3f5ae
Author: Chris Moeller <kode54@gmail.com>
Date: Thu Nov 7 19:06:43 2013 -0800
It is now possible to use both Gxx/Lxx and hx in the volume column in the same row
commit ee34129043d15e9cb9f980ab73585bbec8b40314
Author: Chris Moeller <kode54@gmail.com>
Date: Thu Nov 7 18:20:52 2013 -0800
Fixed IT mixing Dxx regular volume slide with cx/dx volume column slide effect
commit b85fdab6f8102a7df5925d58a4e07b98ed69dd4a
Author: Chris Moeller <kode54@gmail.com>
Date: Thu Nov 7 17:52:50 2013 -0800
Simplified pan law calculation a bit
commit da31373331b91be6d6dd7e83a1e6eee94b0a585a
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Oct 7 08:11:57 2013 -0700
Fixed Asylum Music Format panning effect
commit 5945794aff46562478ff764a841e085448046125
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Oct 4 13:14:52 2013 -0700
Fixed a C11 warning by adding a macro lock around blip_t declaration
commit bf5dd80894f947d3eca15960ca1b329e9ccde677
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Oct 4 10:16:35 2013 -0700
Copied LONG_LONG definition inside of tarray header so it doesn't need to include the main dumb header
commit 8298eb20f77e77c92012ca880e479456d0d1112c
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Oct 4 10:15:52 2013 -0700
Made resampler and SSE filter setup functions public, in case anyone wants to call them early to prevent possible but harmless race conditions
commit 23f9ebdf1a385e01b365598527c0a59458a4c99d
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Oct 4 10:15:00 2013 -0700
Implemented automatic detection of SSE support
commit a5652e854199c29a6c06493515d20b0cb939a173
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Oct 4 10:12:17 2013 -0700
Renamed init_cubic function in preparation to make it public
commit af75f07ccc9813ad19ba5b9a7f488c07834f7e9c
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Oct 4 10:10:32 2013 -0700
Fixed compilation errors/warnings
commit 46a337c17f1921640757007c67f5af3ca2a3ba19
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Sep 27 19:59:47 2013 -0700
Envelopes do not carry when New Note Action is Cut
commit fed6a743dd695249dde84369b09ac8a4e6facfe7
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Sep 27 19:57:03 2013 -0700
Reworked declicker final volume propagation a bit
commit 9fc8f92d437a8132e90d53c94e6ca019b928dd1c
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Sep 27 19:55:52 2013 -0700
Fixed declicker handling cases where a declicking operation lasts longer than the current block
commit 5fedef969bbde33acedc5be6dad13e943e3aa98e
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Sep 27 19:53:31 2013 -0700
Removed start of note ramp when raising volume from zero on a running note, as normal volume ramping will already kick in
commit 3a3375f808ee166c78315e1005cd82203e356b3c
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Sep 27 19:51:13 2013 -0700
Fixed IT envelope loop pickup when the loop start is not on the first tick
commit f8dfb33eeaf570b29580736dd1d5092e49ae9ddf
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Sep 27 19:49:44 2013 -0700
Moved internal headers out of public dumb.h
commit 75c25767bcae8a13eb08b00fd46c4922619c34b6
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Sep 27 11:21:57 2013 -0700
Added documentation from the original project
commit 50e839d4f51e1ff6fcbe68d39519475d7da74c4a
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Sep 16 15:48:04 2013 -0700
Fixed 8xx effect for MODs, which have a range of 00...FF, not 00...7F or 80 or whatever
commit 4a26a05d107a1aee0cc21bf5a41344da35acc3bf
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Aug 27 15:26:30 2013 -0700
Fixed IT note cut and note off commands
commit 7a16e6a7caf6c001064e47e5da9c19f9e2c75d43
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Aug 26 22:50:32 2013 -0700
Invalid notes correctly cause note fade, and range of valid notes increased to include 120/B-9
commit 5c5fedc5f76277abc281066b26dd7463a06841b4
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Aug 25 23:06:43 2013 -0700
Normalized the indentation in the Lanczos resampler, and optimized the resampler a bit
commit b3596083ebba5974d1a5b9052145394eae980948
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Aug 25 09:49:55 2013 -0700
IT NFx/NxF should not affect background voices
commit 2fcecb0f960dc6d206a480bc882ce430054350e2
Merge: ea96b85 d244b87
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Aug 25 07:55:15 2013 -0700
Merge branch 'master' of bitbucket.org:kode54/dumb
commit ea96b859192e9db25968d290b19e57ef25b62a1c
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Aug 25 07:50:31 2013 -0700
Channel volume effect should only apply to foreground voices
commit d244b8790af5c8caee2eacff1cda8380390eba93
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Aug 23 16:46:43 2013 -0700
Fixed row played tracking and row timekeeping information for orders with skip commands
commit d1fe0fdbd105df23a2f879b54385074a3891ce2d
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Aug 23 15:56:35 2013 -0700
Fixed XM arpeggio
commit 1c44d72e13bbd62790f71206fb061c606ec96337
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Aug 3 17:46:19 2013 -0700
Meh
commit 01b9e3faabace3855a6fcd8cae6c253aeee28206
Author: Chris Moeller <kode54@gmail.com>
Date: Thu Aug 1 09:29:49 2013 -0700
- I didn't realize that sigrenderer->tick counted down from speed to 1, rather
than up from 0 to speed-1, so every other format's arpeggios were backwards
except for XM. Fixed.
- Mask tick count to 0-31 so it can't overflow the arpeggio tables.
commit 29c3c9e5c9ce8debcd419eac92d841a2e26c7483
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Jul 28 18:05:04 2013 -0700
Apply delta to compressed samples regardless of creating tracker version
commit 52caa06214b5b09c8e69b56fb769f6ea93c941b2
Merge: 0fc04de ee557fc
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Jul 28 18:02:51 2013 -0700
Merge branch 'master' of github.com:kode54/dumb
commit 0fc04dec175327cc0f99c011690bafa4a3c2ccf5
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Jul 28 18:01:28 2013 -0700
- Rewrote arpeggio implementation to use note offset tables
- Implemented Fast Tracker II arpeggio bug (ticks count backwards from
speed minus one, speeds greater than 15 result in note offsets reading
from the vibrato table, which gets clamped to 2)
commit ee557fc6f24807d7383ea025c99e81efed3c9ef2
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Jul 27 16:30:29 2013 -0700
Meh.
commit 951ce0752e9c64a792551b2868613a1b5b85f884
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Jul 26 11:11:39 2013 -0700
Fixed songs with envelope loops on the last tick
commit eaad8176c626959111f3c13fc82b1c4ad02a1e83
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jul 22 19:56:28 2013 -0700
Fixed envelope start and end shortcuts
commit 27406abff56cb47d39c1a9e2d4f50336a882be49
Merge: 5698ac5 f2cd234
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jul 22 19:28:27 2013 -0700
Merge branch 'master' of github.com:kode54/dumb
commit 5698ac532ffe1e01f7e23a476a6ea52341276b26
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jul 22 19:28:15 2013 -0700
Fixed envelope loop timing
commit f2cd2349a4a2b49960f4193be7377dbdd9547a95
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Jul 19 15:56:51 2013 -0700
Fixed so it only initializes envelopes when instruments are enabled
commit 01f8ce4b56e460057d6cca3bfc2d58e3600300aa
Author: Chris Moeller <kode54@gmail.com>
Date: Thu Jul 18 08:23:11 2013 -0700
Fixed envelope carry to only occur if the running note has not already been cut or released
commit b9aea1412d1645766b9373c432ac498abed34b63
Author: Chris Moeller <kode54@gmail.com>
Date: Wed Jul 17 18:53:55 2013 -0700
Further fixes to IT envelope behavior
commit a42b6bcdc28e200a751baf4414e6f4c6ebb36c71
Author: Chris Moeller <kode54@gmail.com>
Date: Wed Jul 17 18:34:09 2013 -0700
Reimplemented envelope carry to be more like other players
commit 0bc29b4eb63b5758cf0d174258b6b072a3041a33
Author: Carlos Rafael Giani <dv@pseudoterminal.org>
Date: Sun Jun 30 16:43:31 2013 +0200
various fixes to address GCC warnings
commit 991ce8202643a296969d9a623e9702966a957e69
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Jun 22 15:16:04 2013 -0700
Moved DUMBFILE structure to its own header file to unify the rare cases where it needs to be visible outside of dumbfile.c
commit bfb8fea251124760b834c36e5eabd2aff24494b4
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Jun 21 00:14:19 2013 -0700
Whoops.
commit f5a1c5ec318cd7c17fb54f2ed2cb70d72cd549f6
Author: Chris Moeller <kode54@gmail.com>
Date: Thu Jun 20 22:28:11 2013 -0700
Eliminated all clang compilation warnings
commit d31fb2084659b64d07eb0644d9bacfd67059d066
Author: Chris Moeller <kode54@gmail.com>
Date: Thu Jun 20 22:27:52 2013 -0700
Fixed C++11 compilation error on Mac OS X
commit d2d6f48b2bdecc96a60c7e7dfab2b83bf72dc143
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Jun 16 09:55:19 2013 -0700
Fixed another stupid error
commit 9b377f8d7f76159d7f227c727aeae7e16fd1db7b
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Jun 15 19:48:23 2013 -0700
Cleaned up several warnings, including a buffer
overflow in the DSMF reader
commit e12facc69845ef4f16bc70f755dc7cb898cede41
Author: Chris Moeller <kode54@gmail.com>
Date: Wed Jun 12 07:19:13 2013 -0700
Disabled MSVC 2012 default of SSE2
commit 5b83c82c3cc13dd2eeec47758fde4cd61d455bd6
Author: Chris Moeller <kode54@gmail.com>
Date: Wed Jun 12 05:56:32 2013 -0700
Fixed intermittent noise with SSE resonant filters by special casing zero length render calls
commit 796c801be6b1db3a800a844ab58b9a5454951ace
Author: Chris Moeller <kode54@gmail.com>
Date: Wed Jun 12 04:06:19 2013 -0700
Subsong scanner always tries to play the first order now
commit b5f940169c2968b54e8d48cf880f5999c5932922
Author: Chris Moeller <kode54@gmail.com>
Date: Wed Jun 12 03:45:06 2013 -0700
Re-enabled SSE support and rewrote SSE filter function
commit cf2577d4bc284fb5c5b71377413a47c72a1362dc
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Jun 9 11:22:34 2013 -0700
Fixed timekeeping when starting a sigrenderer with a time offset
commit 89724f7ac8c7b5395df41443c504f7a3c486f144
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Jun 9 10:47:48 2013 -0700
Coding consistency fixes
commit 68f8a3aa8fb53b98625232d99cc5bd040e67dd96
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Jun 9 10:33:32 2013 -0700
Fixed timekeeping
commit 3e73bae5e9ddd3a44d9b0767093d93dfd45df1fc
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Jun 9 10:33:16 2013 -0700
Enabled SSE compilation
commit 2e0b1fae827b0cf771049e8697f0e8c98df87f96
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Jun 9 02:58:16 2013 -0700
Disabled SSE as MSVC 2012 breaks it
commit ca9fae207ca4505560ac9f0a3f25cd076179e5dc
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Jun 7 20:24:38 2013 -0700
Fixed position status reset on callback-aborted loop
commit 852b2b9d01fa0f31dd004d5acc19035401faf6f3
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Jun 7 20:23:41 2013 -0700
Added MSVC 2012 v110_xp platform
commit a6c23d0bd4ab4a4e28fe4bbb112f4f56c68488b9
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Jun 4 19:15:25 2013 -0700
Fixed Qt project file
commit 381ce8ea4237a64d63ac447d1e42463edde356da
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Jun 4 11:00:52 2013 -0700
Fixed duplicating some timekeeping state variables
commit 7c1e30edb5700a7751281cc0f8e5e3bb4934989f
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Jun 4 10:57:59 2013 -0700
Small fix for possible issue with time reporting for looped modules if callback ends playback
commit 153721b1c9f4cde62fa17d6aef56f782b37384bf
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jun 3 18:41:31 2013 -0700
- Implemented loop-accurate time position reporting into DUMB
- Implemented get samples stopping short on loops
commit 99111038210a07af485be94a6e85dc43faa10eff
Author: Carlos Rafael Giani <dv@pseudoterminal.org>
Date: Wed May 22 17:37:36 2013 +0200
M_PI may not be defined
When building with gcc 4.7.2 and -std=c99 , M_PI is not defined
commit db4dcf6c1581496e336062c866ce522544d25849
Author: Carlos Rafael Giani <dv@pseudoterminal.org>
Date: Wed May 22 17:36:35 2013 +0200
the MEMFILE filesystem didn't have seek and get_size functions
This caused crashes if read_any was used
commit 4e0faec2b81698376b78c4715d633de23140cd10
Author: Carlos Rafael Giani <dv@pseudoterminal.org>
Date: Wed May 22 17:35:47 2013 +0200
renamed "restrict" parameters to "restrict_"
"restrict" is a keyword since C99
commit e65a86fc81352fbd667269f22878365606e2cf2c
Author: Chris Moeller <kode54@gmail.com>
Date: Mon May 6 17:08:39 2013 -0700
Removed unnecessary optimization function
commit 1fe80f166e57778b1500bb035ec9ff8d95819006
Author: Chris Moeller <kode54@gmail.com>
Date: Sat May 4 21:08:17 2013 -0700
Fixed regular surround mixing
commit a869c4734a0df7a35b7616089db89cf64fcb3d80
Author: Chris Moeller <kode54@gmail.com>
Date: Sat May 4 21:07:58 2013 -0700
Optimizations and bug fixes for the Lanczos resampler
commit 6edaad13465e6739f185884bd2d308e1f50d7cc9
Author: Chris Moeller <kode54@gmail.com>
Date: Thu May 2 16:04:14 2013 -0700
Fixed resonant filter handling in surround mixer
commit b40d6a5877558121d876ee3c578daecf138b504c
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Apr 30 13:04:56 2013 -0700
Implemented 3 channel surround mixing
commit 85fa2b7e833e2ec45af7ed9629c9f360e4f37730
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Apr 29 18:04:41 2013 -0700
Removed unnecessary code
commit 8111a1eb5bcd11f01dd4fcea067d53b00c13d8a4
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Apr 26 02:13:17 2013 -0700
Whoops, that was Blackman-Harris, not Lanczos. Lanczos produces less aliasing, anyway.
commit ffd168da5e639f5ef9943d2cc8c8be202a1003b0
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Apr 26 01:42:23 2013 -0700
Fixed phase calculation when downsampling
commit 1eef4c9f892c119f2f92f0d928efe1b7a98af934
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Apr 26 00:25:04 2013 -0700
- Implemented Lanczos resampler - Fixed overhead of performing effects updates on background voices
commit 8605fb3a520aafb2d43febb6c0a9acde871090e7
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Apr 22 23:15:06 2013 -0700
Replaced FIR resampler's IIR low pass filter with a fixed set of cutoff stages
commit 5f1d4388b1ba13ca80540f4734bbc58648468e3c
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Mar 16 15:03:07 2013 -0700
- Removed *16/11 scale from S3M global volume
- Applied S3M master volume as mixing volume
- Renderer now ignores S3M Vxx for values greater than 0x40
commit cc986aa7dad019e2e4f8fe2d42013e50a1cd79d6
Merge: 9a68144 8ba1f7e
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Feb 19 21:10:15 2013 -0800
Fixed shit
commit 8ba1f7e7c01eef9dac7dd79cf2026ae9c3364b8d
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Feb 19 21:08:21 2013 -0800
Fixed panning correctly this time
commit 569b49a533a53b92dceac0eb6b4aa6641f65ae5e
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Feb 19 21:08:02 2013 -0800
Implemented support for compressed stereo samples
commit 9a68144bfcd970e257b37ccc001d58c23cbe007e
Author: Chris Moeller <kode54@gmail.com>
Date: Thu Feb 14 12:21:31 2013 -0800
Changed panning rule from 3dB to 0dB to match most trackers
commit c7aadf292975e96c3036fc4f2e4248a5c727fa5d
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Feb 10 11:45:04 2013 -0800
Fixed loop start for STK modules
commit ff84ff32fe1fc82926020feedf894c4fb5c37ccd
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Jan 22 03:02:12 2013 -0800
Fixed serious error with MPT extension reading
commit 3aee7f113c66f19e93f9e41a6e280e12dfd9a0e9
Author: Chris Moeller <kode54@gmail.com>
Date: Thu Jan 17 16:26:06 2013 -0800
Fixed envelope reading to gracefully handle nodes which are out of range
commit 73da922bddede1f81fffc7e5e895cace755b378d
Author: Chris Moeller <kode54@gmail.com>
Date: Wed Jan 16 22:03:01 2013 -0800
Implemented support for the obscure S9F sample reverse effect
commit 0994e9948c6ca6b2d50e1e5e4ac87b8371764b7f
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 14 20:14:48 2013 -0800
Removed unused variables
commit beea1d9f5c32609b8b48859f018a4225b1ab29ab
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 14 20:11:28 2013 -0800
More fixes for seeking support
commit a79a9725a9ed45f80d0c9ecf6fc1697219937dd9
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 14 19:26:42 2013 -0800
Fixes for C89 limitations and some const types
commit d8784727e4b117e77c9cf4ff609dace2c4d1da24
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 14 19:06:08 2013 -0800
Implemented full seeking in DUMBFILE and modified several readers to account for this change, which also reduces their overall memory usage
commit 3267dd862062e755782f04eee5db47ef338fc5b8
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Jan 12 18:34:22 2013 -0800
- Added silence padding for samples which are too short to predict padding for
- Added extra comments
commit d5b0ced73cd72f99816b7db788cef63b2603bbe4
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Jan 12 18:33:35 2013 -0800
Eliminate clipping from the low-pass filter stage by increasing intermediate buffer type size to int
commit a57194a330f1ed2b44bb681e3d2c63880628f214
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Jan 12 15:59:36 2013 -0800
- Simplified low-pass filter
- Eliminated accidentally applied resonance from low-pass filter
- Silenced a C89 error by adding a static cast
commit 6c8eeb8a7b0e72c3de865d517ec0ff4778389315
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Jan 12 10:17:54 2013 -0800
Added a low-pass filter to the FIR resampler
commit b440292bbb949f0aaf5dbb8fa17169833fd15c5e
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Jan 11 20:53:32 2013 -0800
- Fixed FIR resampling
- Silenced warnings
commit 0f63644adc09deb4f7aa87d156a8d2fc70418fef
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Jan 11 20:22:46 2013 -0800
Fixed C99isms for MSVC
commit 3a1e4eeeb0e868cadc392a59c962bcd0ec57e924
Merge: e032212 abedfc2
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Jan 11 19:58:47 2013 -0800
Merge branch 'master' of github.com:kode54/dumb
... oops, I started making changes without pulling the latest source first.
commit e032212355ac7075c91fc9d9c48b990f02353a60
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Jan 11 19:58:42 2013 -0800
Made SSE filters configurable
commit abedfc226b1f070c979ac8e8d6c09fa31eee96c8
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Jan 11 19:39:43 2013 -0800
Added new files to MSVC projects
commit d666d3d8906a27d9475e7aea1b650da8c5d163b2
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Jan 11 19:35:58 2013 -0800
Cleaned up MSVC 2010 project file
commit 8cc51b9415ad34de3aa8e8f29f5e5eac96b9fae1
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Jan 11 19:30:28 2013 -0800
Removed stale source control file
commit 52b415ace8dee10d26984da1eabf36fc08f07f4c
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Jan 11 19:27:12 2013 -0800
- Implemented FIR resampler
- Implemented one-time LPC extension of samples without permanent loops, to better facilitate declicking, and also to help flush the resamplers
commit 2fa3b87ae99fc62a03ec26c81c81ae23f3ab7cec
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Jan 11 19:24:34 2013 -0800
Minor indentation change
commit 4df0e8c5be294fa1fe3ea96eff8387c2505912ec
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Dec 30 10:59:29 2012 -0800
Fixed pattern counting, and swapped pattern counting flag
commit b97e36954f873516c31c0a8c24054784f3c9d751
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Dec 29 18:02:21 2012 -0800
Fixed portamento up effect when NNA channels are active
commit ac46a8b6056cf12bff464407bc1582301051c1f1
Author: Chris Moeller <kode54@gmail.com>
Date: Wed Dec 26 13:22:49 2012 -0800
Fixed STM speed handling
commit 425a8407fb003e1ca7d5f332cad9d7be90a6e2ee
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Dec 23 13:40:35 2012 -0800
Oops, forgot MSVC doesn't have snprintf
commit ad8a234f3c6c9b3e7a2d590c81f297bf20375f6d
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Dec 23 13:32:31 2012 -0800
Buffer entire file into memory to allow for weird file offsets, and add minimal Open/MPT extension reading
commit 347a1170d6d00ec2ea9db2a3667ee7c8d2ef422b
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Dec 23 13:31:41 2012 -0800
Fixed envelope handling
commit b837698bcffa3952e5fa26e80ffc562e961002b9
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Dec 22 19:15:19 2012 -0800
Fixed memory reader for formats which perform empty skips at the end of the file, like Asylum AMF
commit 690b8c607fa01df486f00af03b068d11acd14d55
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Dec 22 18:56:25 2012 -0800
Silenced MSVC warning, removed unused variables, and reordered some code for pre-C99 compilers
commit 3ec6f425abbaf5fc6141fdff1783cd5d71005fe8
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Dec 22 18:55:51 2012 -0800
Silenced MSVC warning
commit b80bcdf9054a60bbba6806313327b10d14ab9517
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Dec 22 18:55:32 2012 -0800
Added new 'any' reader to MSVC 2010 project
commit efd9431447a6f686e8212ffc796624ed58b06531
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Dec 22 18:54:44 2012 -0800
Added format tag to IT reader
commit 07787fb0eb2473c7bc7e7185d37936c1b78e424b
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Dec 22 18:41:25 2012 -0800
Portability fixes
commit a17f9925e5b2e4b5fc20108723374c142e942bbe
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Dec 22 18:40:43 2012 -0800
Included SSE optimized it_filter function, enabled if _USE_SSE macro is defined at compile time
commit 918d6366a57d34b63dd8144790f979cd9d2656f5
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Dec 22 18:39:41 2012 -0800
Implemented simple 'any' format reader which attempts to detect the format of the input file and passes it off to the correct reader.
commit d013643820c4fd4d1d80011bed52a047be46c9f1
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Dec 22 16:50:52 2012 -0800
Added Qt project file
commit f4c6edf2923b3098e80123ae2262d01bf6fa89f6
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Dec 22 16:49:34 2012 -0800
Only provide our own log2 for MSVC, since other platforms should already provide it
commit 5c9c4359042555c182a4bd52ef212a162e5bbd76
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Dec 22 16:49:01 2012 -0800
Removed unused variable from function declarations, a leftover from copying from the MOD reader
commit 9b60a9a4784af5eb7ae2274726c7107c072eb3a6
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Dec 22 16:48:30 2012 -0800
Added limits.h for LONG_MAX
commit 045efbd6fc579a78e304185e480c8c15b2b932c4
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Dec 15 22:54:14 2012 -0800
Fixed older pattern counting mode
commit 5b53815e1f271746627bde0bfce7140109b88f14
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Dec 15 22:47:19 2012 -0800
Made the new MOD pattern counting system optional
commit 30b178af5674b8604306885a693c2a8aa422472f
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Dec 9 23:17:38 2012 -0800
Fixed ADPCM sample support
commit 02190e007b4967b8a546f64a3934724817ff5c3a
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Dec 9 21:59:33 2012 -0800
Fixed MOD pattern count calculation in weird cases where the last sample is missing four bytes
commit 756ecf2ac0a2b70639193aca55627b64dac8d8d5
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Dec 9 19:53:45 2012 -0800
Added interface for inserting extra DUH signals, and fixed searching for IT sigdata when more than one signal is present
commit d2575fcc80abf2f04e702adb60a6265cef0fcabb
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Dec 4 03:49:30 2012 -0800
- Implemented final solution for MOD pattern count calculation
- Fixed possible memory leak which only would have occurred with rare MOD files
- Fixed a possible memory allocation error or crash with FLT8 MOD files
commit b17c5254eeac1bff7e4b613c151e0232c2cba646
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Nov 26 03:49:04 2012 -0800
Remove trailing whitespace from all song, instrument, and sample names
commit 32c9bb420240cac2120e7e01c2683df88d1dc1ac
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Nov 26 03:11:49 2012 -0800
Corrected MOD reader to only check the known number of orders when calculating the pattern count
commit 9e3012a7ce5fb52383f51c99061bc45921699f63
Author: Chris Moeller <kode54@gmail.com>
Date: Thu Sep 20 05:28:25 2012 -0700
Fixed pitch slides on non-playing channels
commit e84e1824fbd0b2b690bd9beb2e25fd308e661982
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Sep 9 11:23:47 2012 -0700
Fixed envelopes so they only carry from the same channel
commit 22e82be0a7b0a915a2669e8f4ff889a938a7bfcb
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Sep 9 09:26:00 2012 -0700
Reverted previous failed tone portamento fix
commit 09b78300e19b5cb72d4a515c1e331800d3a6ffbd
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Sep 9 08:18:55 2012 -0700
Fixed IT tone portamento again
commit e0917efbb9707dea88f1f4c525be7c7647bd82a4
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Sep 8 19:55:47 2012 -0700
Fixed IT tone portamento so it can continue without a destination note on every row
commit 15b780d08f2ee6f50a9843dc7479349f4deee5a7
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Sep 2 12:56:38 2012 -0700
Fixed most effects applying to background voices
commit 8d87ab8b9ec398cf3831b87dc969a28e278f3105
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Aug 7 00:02:03 2012 -0700
- Fixed XM sample header size handling to always assume a size of 0x28
- Version is now 0.9.9.56
commit 7ad496ecf2fd658a51de55df0e7f0257025038cc
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Jul 8 12:57:56 2012 -0700
- Added sanity checking to XM reader instrument and sample header sizes
- Added footer tag checking to prevent tags from reaching the module reader
- Version is now 0.9.9.55
commit 5bee3e5ba3d57d1b16dda6d82c18fb417781625b
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Jul 3 22:24:17 2012 -0700
- Fixed XM reader for files with smaller than expected instrument or sample header sizes
- Version is now 0.9.9.54
commit 0e95459562669335f7de543d063cfa57d25a8b77
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Feb 27 16:04:22 2012 -0800
2012-02-24 19:11 UTC - kode54
- Fixed MOD vibrato depth
- Fixed XM tremolo ramp and square waveform tracking
- Version is now 0.9.9.52
commit 7fc359f6c61939618b11aa2aedf42d45220609f7
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Feb 10 17:14:38 2012 -0800
Fixed BaseClasses project name capitalization to correct version control tracking, removed TFS tracking files.
commit 149898118213ec5d5cf8bba057702ab984b8dfa3
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Feb 10 16:53:05 2012 -0800
Added ignore lists for compiler output files
commit b85ab3ba352ea05126f6b4ebcca293f223a3988f
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Feb 10 12:28:35 2012 -0800
All projects updated and now compile in the new git repository.
commit 8c3e510483ba1fdec19017dad4a5004d694177eb
Author: Chris Moeller <kode54@gmail.com>
Date: Wed Aug 31 07:53:24 2011 +0000
- Corrected old style PSM note data
- Version is now 0.9.9.45
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C724
commit 317a6f3da95fddbdbff464d77ad47ffd0dbfdaff
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Aug 14 02:31:37 2011 +0000
Major project file maintenance
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C717
commit 71ecdc7274a7fa33af0a0dea915eb3a294b0b04a
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Aug 2 23:31:19 2011 +0000
- Fixed IT stereo samples
- Version is now 0.9.9.43
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C713
commit 667b479457fd7c1e9aff4ea8301295c81762bdf5
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Jun 5 22:49:29 2011 +0000
- Fixed IT envelope reading for node counts over 25, which are invalid
- Version is now 0.9.9.41
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C684
commit 4a268f95b7d2a116e3ea53d297c1d5a29f46bf07
Author: Chris Moeller <kode54@gmail.com>
Date: Wed May 25 18:42:29 2011 +0000
- Added missing song restart position initialization to AM, AMFF, and DSM readers
- Version is now 0.9.9.40
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C682
commit 07f761e918e8a621f64242dd1a631ceba03cc920
Author: Chris Moeller <kode54@gmail.com>
Date: Thu May 12 12:26:57 2011 +0000
- Fixed IT New Note Action duplicate check types for sample and instrument
- Version is now 0.9.9.38
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C678
commit 7def196332594817f94138dce2942007d232d407
Author: Chris Moeller <kode54@gmail.com>
Date: Wed Mar 23 05:45:50 2011 +0000
- Corrected volume slide behavior for S3M playback, and also adjusted the slide volume level clipping range for S3M to 0-63
- Updated S3M playback to share memory between DEFIJQRS effects
- Adjusted S3M reader to a lower master volume level scale
- Version is now 0.9.9.36
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C668
commit f5f34570905e87f1933a0220d71d0d48c05b9b49
Author: Chris Moeller <kode54@gmail.com>
Date: Wed Feb 9 08:10:45 2011 +0000
- Added a workaround for bad sample offsets in STM files
- Disabled inserting note cut commands in STM files, as there is no such command in the format
- Version is now 0.9.9.35
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C614
commit d78c28566689e3fca51f1fbb7208cde8b6e190a6
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Feb 8 14:11:09 2011 +0000
- Fixed STM sample reading
- Version is now 0.9.9.34
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C613
commit c2cb42ff918b398ec8c305ddc6574f9f8f945ad9
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Feb 8 12:03:29 2011 +0000
- Implemented support for STM 1.x format
- Flagged STM files as stereo, as they should be
- Version is now 0.9.9.33
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C612
commit 33cd2c469ae9872dd0710297760bfb1dfe53a56d
Author: Chris Moeller <kode54@gmail.com>
Date: Wed Jan 19 15:20:02 2011 +0000
- Made Oktalyzer reader more tolerant of truncated files
- Version is now 0.9.9.30
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C562
commit e169b25f34ca140da8375a7085791447a5b8e8e8
Author: Chris Moeller <kode54@gmail.com>
Date: Wed Jan 19 07:14:25 2011 +0000
- Implemented Oktalyzer format loader
- Version is now 0.9.9.29
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C555
commit e34d68685d2e5e8b45f62acdaf8157872624620c
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Jan 14 00:10:44 2011 +0000
2011-01-13 23:11 UTC - kode54
- Implemented ASYLUM instrument base semitone offset
- Fixed ASYLUM effect number translation
- Version is now 0.9.9.28
2011-01-13 21:28 UTC - kode54
- Quick fix for PT2 invert loop effect
- Version is now 0.9.9.27
2011-01-13 20:37 UTC - kode54
- Implemented PT2 invert loop effect
- Version is now 0.9.9.26
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C545
commit c0fc19ef2e756ef25aa44ca3775b4afed3f02c9c
Author: Chris Moeller <kode54@gmail.com>
Date: Tue Jan 11 18:57:59 2011 +0000
- Changed aliased resampler loop conditions a bit to fix some bugs
- Removed resampler loop unrolling, as it actually made things slightly slower
- Fixed a bug with songs triggering notes on the first order with instrument changes before any note commands have been triggered
- Version is now 0.9.9.24
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C543
commit bf42c55a9ad494b3bcbee5dc2959f03c1938fdfb
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Jan 9 14:18:02 2011 +0000
Import of blip_buf and one missing header.
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C540
commit 9ac6cf69758fe0db6d6e654f298cd36efdb73366
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Jan 9 14:16:37 2011 +0000
- Replaced old aliased resampling mode with a 65536x oversampling sinc resampler
- Version is now 0.9.9.23
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C539
commit 4c0d2d92e6cc5c607a145f9fcbc8903e39327d1f
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 3 14:33:17 2011 +0000
Add missing files to repository, delete old 7-Zip source folder
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C534
commit a9176165a2ccc56410b2004d2f5dd40b2052453a
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Nov 22 01:24:37 2010 +0000
- Changed a break to row behavior in DUMB, hopefully it doesn't break anything
- Version is now 0.9.9.22
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C516
commit 1a9e0d4fd889dc9d17a5ebe97825be0cb2b7a273
Author: Chris Moeller <kode54@gmail.com>
Date: Sun Oct 3 06:17:34 2010 +0000
- Added range checking for XM global volume command
- Version is now 0.9.9.20
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C490
commit ca554279a235b23c7f5f6ff9ce478a7aa7250dfe
Author: Chris Moeller <kode54@gmail.com>
Date: Sat Aug 21 01:00:49 2010 +0000
- Fixed channel muting when switching or restarting songs, or when seeking
- Version is now 0.9.9.19
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C467
commit 6e159ab89b5df27acf8a182a1ea5bf307ba8ff95
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Mar 12 00:16:35 2010 +0000
- Fixed two bugs with pattern loops causing songs to loop forever
- Version is now 0.9.9.13
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C383
commit 73bec70252bbed9b127d091f6dfded8c0a31116e
Author: Chris Moeller <kode54@gmail.com>
Date: Fri Feb 12 20:33:49 2010 +0000
The Great Merge of 2010
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C370
commit 7c2cc8b01ae64355772be20f7d5edd4e30bd1e08
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:02:22 2010 +0000
{12/17/2009 2:12:36 AM}Reverted sinc interpolation until I feel like fixing it
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C365
commit eff0f2541daf739f21bb0662345915f4fa60354f
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:02:22 2010 +0000
{12/17/2009 2:02:04 AM}Failed sinc interpolation for future review
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C364
commit 92fea5b475e37c39b28b88ab28b0dfbd8c899adf
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:02:16 2010 +0000
{10/23/2009 9:27:50 PM}2009-10-24 05:13 UTC - kode54
- Restored old sample info tag reading method and made the new style optional
- Version is now 0.9.9.8
2009-10-18 04:52 UTC - kode54
- Changed sigdata flags for AMF reader
- Version is now 0.9.9.7
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C352
commit 52da4eb628a4a0f96495b42b75aac6b3a76d101a
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:02:16 2010 +0000
{10/17/2009 6:03:36 AM}- Fixed a stupid bug in the AMF reader
- Version is now 0.9.9.6
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C351
commit db718382dfb187fbdaa16a9dd4904c073fb8004d
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:02:15 2010 +0000
{10/12/2009 11:53:02 AM~10/12/2009 11:53:04 AM}- Implemented DSMI AMF reader
- Changed MO3 unpacker to use unmo3.dll
- Version is now 0.9.9.5
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C348
commit 19527c25846226fe8d5479aaefc5bee0f3274d1a
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:02:14 2010 +0000
{9/30/2009 4:11:06 AM}
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C347
commit d02aa3a3a3ab05acf6908411f8ecfcb46bf06f73
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:01:37 2010 +0000
{5/3/2009 5:29:28 PM}Underflow fix.
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C262
commit da229930ce0f698c7443ae693e593d582748822f
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:01:37 2010 +0000
{4/18/2009 4:30:02 PM}- Fixed another bug in xm_note_off with potential unknown files.
- Version is now 0.9.8.5
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C259
commit df55c420128a38d58016ef9517707c37b15e67fc
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:01:17 2010 +0000
{1/7/2009 4:53:48 PM}Removed inherited property sheet definitions.
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C214
commit 1f89a5627cfc0c48aa13a1d6bcb060847119206b
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:01:06 2010 +0000
{10/4/2008 3:54:34 PM}Fixed xm_note_off for when instrument number is out of range.
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C201
commit 1f2e7f8d46858490d0bd6a5e4855a4c168a8a31f
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:01:05 2010 +0000
{5/28/2008 5:29:34 PM}Fixed renderer for tempos greater than 255
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C198
commit 242c96c172f5203f595a4ba24f9649c2c975846f
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:01:04 2010 +0000
{5/1/2008 3:06:24 PM~5/1/2008 3:07:24 PM}
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C196
commit 83a79f2c29b2601d78087aaa8e8363157e0b4ecb
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:01:02 2010 +0000
{4/28/2008 3:21:58 PM~4/28/2008 3:22:14 PM}Converted projects for Visual Studio 2008.
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C193
commit a78d4c613bc37d175db2fa90fc82f4b43e0ea470
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:00:59 2010 +0000
{1/27/2008 5:51:00 PM}
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C192
commit f230355b7f90105f13ca56343c4d2e2c1763d68f
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:00:56 2010 +0000
{7/24/2007 3:48:08 PM}2007-01-26 22:50 UTC - kode54
- Moved IT S70-2 effects alongside the rest of S7x so they all trigger after
paired notes.
- Integrated note on/cut ramping with volume transition ramping to reduce
setup/cleanup overhead of calling render_playing and the resampler functions
for single samples.
- Note on/cut ramping scaled from 7 sample logarithmic and 256 sample linear to
.75ms and 5ms respectively, both linear.
- Integrated the pattern looping changes from DUMB 0.9.3, since a few files
seemed to be broken. The XM-only features still needed to be flagged for XM
so they won't break MOD.
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C181
commit 684f4672fe54d3e82a6912a8896cf812ca0acbdb
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:00:42 2010 +0000
{1/24/2007 5:58:58 AM}Reduced the warning level of the Release target to 3 and enabled project database debugging info, for when the relevant measures are enabled in foo_dumb.
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C166
commit 79c6f2cb09edeebcebd3e8e6422caf38720df82a
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:00:42 2010 +0000
{1/24/2007 5:57:52 AM}2007-01-24 08:34 UTC - kode54
- Implemented 669 running effects correctly.
2007-01-22 18:54 UTC - kode54
- Implemented 669 running effects, nasty stuff.
2007-01-21 14:21 UTC - kode54
- Fixed a bug in IT renderer / get_true_pan that caused it to crash on IT files with instruments enabled upon hitting an invalid instrument change.
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C165
commit 885cabebbfc78ad7a3e4c4ecf80b1b6045faa139
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:00:42 2010 +0000
{1/24/2007 5:56:54 AM}Corrected effects parsing and added global flag for the renderer.
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C164
commit 41014790720378a31106ea18e27bcb2d45fcc2a5
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:00:42 2010 +0000
{1/24/2007 5:55:02 AM}2007-01-21 17:43 UTC - kode54
- XM reader now ignores sample header length, as Sk@le Tracker fills this with nonsense.
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C163
commit a87eac09ccd72ca7257d6102835e8b94bfac6583
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:00:42 2010 +0000
{1/24/2007 5:54:32 AM}Removed unused variables.
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C162
commit fa3a8d1cafd0db06dc748af6755355f101978ad4
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:00:41 2010 +0000
{1/24/2007 5:52:26 AM}2007-01-23 17:42 UTC - kode54
- Fixed IT reader decompression to support compression+delta on files created with 2.15 or newer.
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C161
commit 8b1e1b01ceea3d5b7cb5fa2a781a883ccfbe44af
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:00:26 2010 +0000
{11/29/2006 6:01:06 AM}2006-10-12 06:28 UTC - kode54
- STM reader checks for more values after the song name, reports the correct
order list size, and ignores samples which are shorter than four bytes or
have a default volume of zero.
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C137
commit cfb81dff3e9a09bd943bec1a814f35c41432c356
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:00:26 2010 +0000
{11/29/2006 6:00:28 AM}2006-11-01 00:50 UTC - kode54
- IT renderer now cuts existing notes when it reaches a note where the instrument
references an invalid sample. (jumping under trees.it)
2006-10-14 08:33 UTC - kode54
- IT renderer pattern loop processor now resets the rows played to clear table
per channel regardless of whether order changed since last loop start was
initiated. This is correct, since two pattern loop starts in a row means that
a loop will never jump to the first loop point.
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C136
commit 4f9a59e413f0cf404b136a7a1696968ecddd8372
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:00:25 2010 +0000
{11/29/2006 5:59:20 AM}2006-11-01 00:50 UTC - kode54
- Resamplers now return immediately if the fixed point delta is zero.
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C135
commit 3be9ce486cf67827f18346b54d83478d487abd40
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:00:22 2010 +0000
{10/6/2006 9:42:18 PM~10/6/2006 9:42:20 PM}2006-10-07 05:24 UTC - kode54
- Simplified volume ramping update code, reducing the size of the resampler code
considerably.
- Bumped the volume ramping precision to 24 bits of fraction precision, which is
needed by Sweetsin.xm.
- Moved sample rate reporting to dynamic info as requested by Peter, since it's
not a property of the files themselves, but user configurable.
- Version is now 0.9.8.1
2006-10-07 03:42 UTC - kode54
- Changed DSMF sample loader to ignore unknown flags instead of blowing an error.
2006-09-25 17:39 UTC - kode54
- Added hack to MOD loader for when sample start is specified in bytes instead of
words.
2006-09-19 15:05 UTC - kode54
- Shuffled finetune calculation into the correct position, immediately applied
as delta is calculated from note.
- Promoted IT_SAMPLE finetune property to signed short as char is insufficient
for full semitone range. (+/- 256)
- Changed resampler to use full 64-bit comparison for todo variable range checking
which should hopefully eliminate any further problems with pitch slides which go
out of range.
- Version is now 0.9.8
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C123
commit 719dbbe38317512e9aabb2654953e9ba226caaf6
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:00:09 2010 +0000
{6/16/2006 12:00:56 AM}- Changed Amiga clock rate and divisor constant
- Added finetune property to IT_SAMPLE
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C110
commit 7b35d20e52156ddf5eb73015f43f6787f520bcf5
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:00:09 2010 +0000
{6/13/2006 4:52:42 AM}Removed a line of unneeded code.
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C108
commit 691d717ba6d2bee9c477e971f157f57bf051ed8b
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:00:08 2010 +0000
{6/13/2006 4:52:18 AM}2006-06-10 18:10 UTC - kode54
- Fixed volume ramping.
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C107
commit bbee7ab76b3e04fa2ae1cff8a23f9a61e214c6bf
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:00:08 2010 +0000
{6/9/2006 9:34:08 AM~6/9/2006 9:34:10 AM}Ported changes over from DUMB 0.9.3.
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C106
commit 5ed3b0ec86820172d2cff9a19529e60a9c39a93a
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:00:03 2010 +0000
{6/8/2006 7:36:56 AM}2006-06-03 02:13 UTC - kode54
- Implemented ASYLUM Music Format support.
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C102
commit cf89f65a58886db9c0c274a7032a50e61911ace8
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:00:03 2010 +0000
{6/8/2006 7:36:18 AM}2006-06-02 21:20 UTC - kode54
- IT renderer now supports pattern jump and break to row on the same row.
(coffee-blues 3.mod)
2006-06-02 20:25 UTC - kode54
- Empty pattern scanner now returns the correct value for completely empty
pattern structures, and also checks for lists of empty rows.
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C101
commit 14e15b8bfdf9d09e0a884d899641af5ad09de82d
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:00:02 2010 +0000
{5/31/2006 8:37:04 PM}2006-05-31 23:15 UTC - kode54
- Implemented STM support.
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C96
commit 82f65ee68c0d49d7419769992da22131ac6d48ec
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:00:01 2010 +0000
{5/31/2006 8:36:40 PM}2006-05-30 00:04 UTC - kode54
- XM reader now truncates instrument envelope lengths to 12, and performs
some basic envelope loop checking, similar to Open ModPlug Tracker.
(revive_nimnone.xm)
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C95
commit 1dbeaf67c98af889a5a71fec6ad1e14e470461ac
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:00:01 2010 +0000
{5/31/2006 8:36:12 PM}2006-05-30 03:57 UTC - kode54
- IT reader works around a broken file that has several of the instruments
offset by two bytes from their indicated file offsets. Since the hack
only checks for offset by two null bytes, it also assumes that the two
bytes it can't read from the end are also zero. (bz_ult9.it)
- IT reader treats null instrument/sample/pattern offsets as empty items.
(flight2.it, sherri.it)
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C94
commit 2b2f154894d691a18ede7740a2c319d90b47a14d
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:00:01 2010 +0000
{5/31/2006 8:35:22 PM}2006-06-01 00:47 UTC - kode54
- STM reader reads effects properly now.
2006-05-31 23:15 UTC - kode54
- Implemented STM support.
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C93
commit 9d44f7d96637019c3d9ff0f2186a7886fac466b5
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:00:01 2010 +0000
{5/31/2006 8:34:58 PM}2006-05-31 23:15 UTC - kode54
- Implemented STM support.
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C92
commit d8680ee4bdafc15a97bab686bb61597289fedec1
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 09:00:00 2010 +0000
{5/27/2006 1:41:32 PM}2006-05-27 22:40 UTC - kode54
- S3M reader defaults to maximum (128) global volume when the header value is
either zero or greater than 64. (darkness2.s3m)
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C88
commit 4e1db2adb05e53c50fe38102676889c22a4f2e66
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 08:59:57 2010 +0000
{5/26/2006 10:58:10 PM~5/26/2006 10:58:12 PM}2006-05-22 21:44 UTC - kode54
- XM reader now supports up to 256 instruments, even though FT2 only
supports up to 128. ModPlug Tracker again.
2006-05-22 18:43 UTC - kode54
- S3M reader was using the incorrect index into component for sample packing
when reading sample data. Was using n, should have been m.
2006-05-22 17:26 UTC - kode54
- IT renderer may have a bug with its time_lost / loop handling. Switchover
from sustain loop would compound time_lost onto itself for every note-off.
I'm not sure if this crap is even doing the right thing, especially in the
case of a sample with a sustain loop, but no main loop. Working around for
now by zeroing time_lost after note-off. (hall8.it)
- S3M reader ignores effects outside of 1-25 range so nothing can hit
internal effects which are XM or PTM only. (N4.S3M)
- IT reader now supports ModPlug Tracker extensions for up to 4000 samples
and mapping them with instruments. (hallowe.it.it)
- XM reader now supports instrument vibrato 4, random. Yet another ModPlug
extension. (hcw-st.xm)
2006-05-21 02:11 UTC - kode54
- S3M reader correctly reads all 24 bits of the sample memory segment
offset, fixing at least one file with >1MB of sample data (d-t-x_x.s3m)
- XM reader stops reading instruments when it has at least one valid
instrument and encounters an error, fixing at least one file with
too high instrument count in the header (drx-chri.xm)
- IT reader ignores instrument header signatures, since there seem to
be files with bad signatures on unused/filler instruments (dsouls.it)
- MOD reader can now be restricted to handling 31 sample files with
legal/known signatures only, so frontend can fall back on restricted
MOD loading for files with incorrect extensions (dreamer_0g.s3m)
2006-05-20 xx:xx UTC - kode54
- Modified silence skipping to hack around some "S L O W" effects crap
and a misused break to row effect
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C84
commit 3527875388468d5343c7958d4781f250d4c333d6
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 08:59:17 2010 +0000
{11/28/2005 4:51:00 AM}
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C54
commit 95afd4ca875c3f3983de167afcc7deda682a8c8d
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 08:59:11 2010 +0000
{11/20/2005 7:14:42 PM~11/20/2005 7:14:44 PM}
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C50
commit dae50fa2a1a66a8658827483bdc8a7aae48e019b
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 08:59:05 2010 +0000
{11/6/2005 9:04:04 PM}Added generic RIFF module handler and AM/AMFF format readers
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C46
commit 8b2fadaf5a88171d9d94782c9a28e45f4ed10c92
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 08:59:03 2010 +0000
{10/30/2005 1:56:28 AM~10/30/2005 1:56:40 AM}
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C43
commit 9db1273c6431216946c2c30e71e2c90859635744
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 08:58:43 2010 +0000
{10/13/2005 2:19:30 AM~10/13/2005 2:22:22 AM}
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C22
commit b844f7ce65c15ee70426640de1802ba97d409dec
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 08:58:42 2010 +0000
{10/13/2005 1:58:16 AM}Arpeggio fix for FastTracker 2 bug
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C21
commit ef97e29d06fdf5c3b9584eeacee58fd0914a0007
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 08:58:42 2010 +0000
{10/12/2005 5:04:42 PM}Emit format version info
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C20
commit f9fef91057834185b03a4cf8418bdf859b72b092
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 08:58:42 2010 +0000
{10/12/2005 4:52:14 PM}XM format v1.02 and v1.03 support
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C19
commit 9acd29b47bd6aaae698e958bc1f4906ead27e2cb
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 08:58:41 2010 +0000
{10/11/2005 4:36:06 PM}Partial XM format v1.02 implementation ( incomplete )
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C15
commit 00b26550e65da3350f684ebc19be57050a2cca1a
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 08:58:41 2010 +0000
{10/11/2005 4:16:34 PM}
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C14
commit 61d10a21c142cb717bc25f03d5772b3cb4e09529
Author: Chris Moeller <kode54@gmail.com>
Date: Mon Jan 11 08:58:33 2010 +0000
{10/11/2005 3:57:38 PM~10/11/2005 3:58:38 PM}
git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C13
* add new Autoname "HereticSR" for Heretic: Shadow of the Serpent Riders.
* add missing CreateSectionAtStart() calls for Chex1, HereticSR,
Freedoom2, DoomBFG and Doom2BFG.
* remove Autoname "HexenDemo" because shareware games do not allow
loading any custom content.
- Converting the wave speed back to floats, since I'm using sin() instead
of the finesine table now.
- Pre-shift the quake intensities to avoid extra shifting in GetModIntensity.
- Loading old saves will shift the intensities to fixed point but will not
convert the fixed wave speeds to floats. The chances of this
being in a savegame where the speeds are non-zero is pretty much nil,
and int and floating point 0 are bitwise identical (not counting -0.0).
- Squashed commit of the following:
commit bc45fe3263d34ef5f746f524687999c19bf7b779
Author: Randy Heit <rheit@users.noreply.github.com>
Date: Sun Mar 1 18:51:05 2015 -0600
wave scale -> wave speed
commit ff96388b128c724c1198757bfa52f1935a263356
Author: Randy Heit <rheit@users.noreply.github.com>
Date: Sun Mar 1 18:45:32 2015 -0600
More sine quake fixes
commit 2a89749a6fe6d271b9fbdc218779f680afcf4cb6
Merge: 719dfbe 5456074
Author: MajorCooke <paul.growney22@gmail.com>
Date: Sat Feb 28 20:37:22 2015 -0600
Added QF_WAVE to A_QuakeEx.
- Changes the random quakes into a sine wave (see Shadow Warrior/Rise of the Triad reboots, Hard Reset, etc.)
- Added 3 properties to control waves per second along each individual axis. Only works with QF_WAVE.
- Intensity X/Y/Z property becomes the amplitude of the wave.
- Stacks with regular quakes, allowing shaking along the camera which must be called using A_QuakeEx WITHOUT the flag, or the other quaking functions.
- Uses the youngest quake's time for positioning.
commit 54560741581e8d15cc7060e8e068cf85e9a4b432
Author: MajorCooke <paul.growney22@gmail.com>
Date: Sat Feb 28 20:21:19 2015 -0600
Recommitted recommended changes by Randi, with some modifications. Now, we should be finished!
commit 6f4473013411686d88fc185bdc1cc58b1035b0f1
Author: MajorCooke <paul.growney22@gmail.com>
Date: Sat Feb 28 12:52:57 2015 -0600
Finish this revert.
commit 467e53f9400f588a2ada9b32e7634cb1f4ad5066
Author: MajorCooke <paul.growney22@gmail.com>
Date: Sat Feb 28 12:46:02 2015 -0600
Reverted back to what was working.
commit da9de56a67efda08036e481fd5fccd5392ce6810
Author: MajorCooke <paul.growney22@gmail.com>
Date: Thu Feb 26 18:53:20 2015 -0600
Forgot this bit, for testing.
commit c5093d9bb97caf8478cefc32abc56a036feeea58
Author: MajorCooke <paul.growney22@gmail.com>
Date: Thu Feb 26 18:52:46 2015 -0600
Some more progress, but...
- This did not solve anything. In fact, it did the opposite -- completely broke wave quakes. Now they only happen whenever a random quake is in progress.
- Left in the commented code on purpose so Randi can test it.
commit 7e526405d2127cbb279f66008c8f8e55a5d497f3
Author: MajorCooke <paul.growney22@gmail.com>
Date: Wed Feb 25 17:50:42 2015 -0600
- Use newest waveform timer, not oldest.
commit 1356443609dbc6c7f46e081d0846816dc0836124
Author: MajorCooke <paul.growney22@gmail.com>
Date: Wed Feb 25 17:32:09 2015 -0600
- Got regular quakes to multiply onto sine quakes, but the vice versa needs fixing too.
commit d95796c94c70cd0229d4a6d30f69e3a7568b9588
Author: MajorCooke <paul.growney22@gmail.com>
Date: Wed Feb 25 16:46:21 2015 -0600
- Last hurdle. Now just need to figure out how to properly scale up and down.
commit 4bc3458e689155ce72c09776604d9eb4fa73d8be
Author: MajorCooke <paul.growney22@gmail.com>
Date: Tue Feb 24 23:18:03 2015 -0600
- Fixed the quakes being unstackable.
commit b51012d6d4ea065bf7f6fc9c1a0472966491f7af
Author: MajorCooke <paul.growney22@gmail.com>
Date: Mon Feb 23 23:48:34 2015 -0600
QF_WAVE renamed from SINE.
- Lots of ground covered, but still more to go.
- Still need to figure out how to make the camera properly shudder.
commit 427e4893193470bbf45415ffec70a0b69b8cccfd
Author: MajorCooke <paul.growney22@gmail.com>
Date: Sun Feb 22 16:52:30 2015 -0600
- Begin the groundworks for QF_SINE.
- Need to figure out how to rework and manipulate the sine wave to move faster, and to allow going below 0 without breaking it too much.
The 'Prologic' speakermode enumeration is removed since 4.40, not 4.44.
This makes possible to build it on linux x64, as the latest version of FMOD which has the dedicated linux64 download link is 4.42.
- The FMOD_DSP_TYPE_REVERB unit was removed in FMOD 4.36. It has been
replaced by a FMOD_DSP_TYPE_SFXREVERB unit, which is what should have
been used in the first place.
- Fixed: HasWeaponPiece assumed that once a piece was given, it would not
be removed. The easiest way to break this assumption is by loading an
earlier save where you had fewer pieces. (The catch being that if you
removed all pieces, it would notice that.)
- Quake scaling should be handled for each quake. The former
implementation was potentially taking flags from one quake and applying
them to another, which is broken.
- Remove all the int<->float conversions.
- This is RandomPick but for floats. Considering what RandomPick
translates into in the scripting branch, I hope I don't regret not using
type inference on RandomPick instead of creating a new keyword.
- When using both scaling flags, by default, the effect only reaches half peak going either way. This forces it to go all the way to the top (or bottom if using QF_MAX) before scaling back to its original height..
- QF_SCALEUP behaves like QF_SCALEDOWN: it gradually scales the tremors, only going upwards.
- QF_SCALEUP and QF_SCALEDOWN can be combined to make an earthquake that gradually smoothes in and out.
- QF_MAX can be used to invert this behavior, where it starts at the peak of the amplitude, fades out half way, and then grows back to maximum.
- This could cause problems in places like the GZDoom renderer in the odd circumstance, causing the camera to become stuck in the floor or ceiling until the quake expires.
- Relative quakes are different from other quakes; all quakes affecting
the camera do not become relative if one of them is relative.
- Use a single function call to get quake visual parameters instead of four.
- Thrust things in a psuedo-ellipse if they're inside a damaging quake whose
IntensityX != IntensityY.
- Don't break old savegames.
- Unlocks the full potential of using quakes, including the Z axis. Each intensity applies to X/Y/Z planes whenever a player is experiencing it.
- Flags:
- QF_RELATIVE - Adjusts the quaking of the camera to go in the direction its aiming (X: forward/backward. Y: Left/right.)
- Plans for including pitch will be implemented in the future for the Z axis with relativity.
Hexen uses the spawn height value from the mapthing_t structure to offset the item when floatbobbing. With proper gravity handling enabled this method doesn't really work so as a workaround ZDoom will now enable a hidden compatibility option when playing any map with a Hexen format MAPINFO so that any positive value in this field will make P_ZMovement revert to the original method of setting the items height (excluding the floatbob offset, of course.)
This also removes some code from P_NightmareRespawn that originate from the original Hexen method for floatbobbing which aren't needed anymore
- I'm assuming this check was here for a reason, but when both branches of
the if do the same thing and it's been this way since before recorded
history, it's not obvious what was intended here.
- "If it ain't broke, don't fix it."
- Some of the changes were downright wrong and some were pointless, so undo
everything that doesn't look like an actual improvement.
Added hud_showammo CVAR with three states:
* If value is 0, show ammo for current weapon only
* If value is 1, show ammo for available weapons
* If value is greater than 1, show ammo for all weapons
Default value is 2, so initial ammo display behavior isn't changed
- Fixed: If the menu cursor was on the topmost-displayed item, pressing up
would not scroll the view up. The check for scrolling only tested if the
newly selected item was the topmost one, since the menu code had
assumed the only time the cursor would be on the topmost visible line
was when it was the very first line of the menu. Using PgDn breaks this
assumption.
- ang_offset: the extra angle to apply to the actor after calculating the maximum turn.
- pitch_offset: Just like ang_offset, with pitch instead.
- FAF_BOTTOM: Aim straight for the actor's z coordinate, not with +32 units.
- FAF_MIDDLE: Aims for the direct middle of the actor.
- FAF_TOP: Aims for the very top of the actor.
- FAF_NODISTFACTOR: Use the raw pitch offset without calculating it into the distance of the aimed actor.
This reverts commit a4c07a9ee3.
- This commit touched every line of thingdef_codeptr.cpp, which would make
merging it into the scripting branch a pain in the ass.
This happened when the polydoor was open. If a mobj blocked the poly door, such that the door could not move from its open position, the poly door could rotate a little bit more than needed, making the door partially closing when the door managed to close later.
- Fixed: Don't assume operator new will return a pointer with 16-byte
alignment when allocating a block for the VMFrameStack. Because it seems
it's actually guaranteed to be 8-byte aligned. Don't know where I got
the idea it would always be 16-byte aligned.
- So now you can do something like this for an action:
{
if (health > 1000)
{
A_Scream;
}
else
{
A_XScream;
}
}
Yes, the braces are required. Because I see too many instances where
somebody writes an if statement in ACS and doesn't understand why it
doesn't work right because they forgot braces.
- Fixed: Not actually putting an action between { and } would crash.
- You can now call several actions from one frame by grouping them between
curly braces. i.e. :
POSS G 3 { A_Pain; A_Log("Ow! That hurt!"); }
I will probably add an `if (something) { blah; blah; } else { wah; wah; }`
construct later, but that's the extent of the munging I plan for DECORATE. The
real work goes to the scripting language, not here. But if this branch is
getting merged to master sooner than later, here's an immediate benefit
from it right now.
- Ported the missing resolutions from zdoom.
- Remove unneeded code which was removed also from zdoom.
- Uncomment DOUBLEBUFFER GL attribute. It was present in the old SDL_SetVideoMode call code, so why not.
There are a few quite specific steps to reproduce this issue:
* 640x480 video resolution
* -iwad ... -warp ... command line parameters
* OS X 10.4 or 10.5 PowerPC, maybe performance related
When all these requirements are met, content view doesn't show up sometimes
The simplest solution for this issue is to set initial window size to non-existent video resolution
- The error "You cannot pass parameters to..." used the most recent token,
which was always ( and not the function name. (Note that this was
already fixed in the scripting branch, so this is probably going to be a
conflict. Meh.)
- Added A_Warp flags:
- WARPF_BOB: Gets the bob offset of actor pointer with the FLOATBOB flag.
- WARPF_MOVEPTR: The function is inversed to move the pointed actor with applied flags, but only the original caller will make the success/jump.
This feature helps a lot with buggy gamepads that constantly generate events from "sticky" hats/sticks
Polling is enabled by default, use joy_axespolling CVAR to turn it on/off
- Fixed: TicSpecial::CheckSpace() never thought it ran out of space due to
unsigned math.
- Fixed: TicSpecial::GetMoreSpace() assumed only relatively small amounts
of data would be written at a time so made no effort to ensure it
actually got enough space. This assumption could be violated by writing
a very long string, which can happen when replicating a string cvar.
- The definition of FxGlobalFunctionCall_CheckClass was big and scary. I
would say this is a big improvement, since now it gets to leverage the
same framework that action functions use.
- The definition of FxGlobalFunctionCall_IsPointerEqual was not so big and
scary, so this can't be called so much of an improvement as
CheckClass was. (Which is not to say that it isn't better anyway.)
- This replaces the general extensibility that had existed formerly
in thingdef_function.cpp. Parameter parsing for function calls is
shared with state parameter parsing. Functions are defined exactly in
the same way as action functions, but without the 'action' keyword.
- Rippers will rip through anything with an equivalent ripper level, or if their level is between or on the min and max ranges.
- If no min or max is defined, it simply checks if the monster's ripper level is lower than the missiles.
- Functions: A_SetRipperLevel(int level), A_SetRipMin(int min), A_SetRipMax(int max)
- Properties: RipperLevel, RipLevelMin, and RipLevelMax.
- RipperLevel: Applicable to monsters and projectiles.
- RipLevelMin and RipLevelMax are only useful on monsters.
- By default, all are 0.
- removed the mCameraPos variable in FGLRenderer because it was only used in one place where it is just as easy to use the global viewx/y/z variables directly.
- Explicitly size and position the text cursor in
FListMenuItem::DrawSelector() the same way that the options menu does it
using M_DrawConText(): By sizing it to a scaled 8x8 cell.
- Take advantage of the new _Pragma operator to hide the printf warning
suppression inside of macros instead of needing to litter the code
around Printfs with a bunch of junk.
- Fixed: When DSBarInfo::DrawGraphic() is used scaled, without fullscreen
offset, if one of the top and left clip locations was 0 and the other
was non-0, the 0 one would be clipped to the edge of a 4:3 box centered
on the screen instead of the edge of the screen.
- Fixed: Using +set cvarname and +cvarname on the command line would not
work if cvarname was defined in CVARINFO. This should be the proper way to fix
it. Rather than move all command line execution after loading CVARINFO,
keep command line execution before wads are loaded. If an attempt is
made to set an unknown cvar or to run an unknown command (which could
potentially be shorthand for setting an unknown cvar), save it and try
running it again after all CVARINFOs have been handled.
- Fixed: Script arrays didn't work in named scripts because the loader
read the script number as an unsigned word, hence it would never find
named scripts, since they are stored with negative numbers.
- Fixed: Integer constants passed to pick() need to manually generate load
instructions, since FxConstant::Emit() will just return a constant
register with its value.
- Fixed: VMFunctionBuilder::RegAvailability::Reuse() didn't actually
calculate a proper mask. Also added another assert to this function.
Conflicts:
src/CMakeLists.txt
src/b_think.cpp
src/g_doom/a_doomweaps.cpp
src/g_hexen/a_clericstaff.cpp
src/g_hexen/a_fighterplayer.cpp
src/namedef.h
src/p_enemy.cpp
src/p_local.h
src/p_mobj.cpp
src/p_teleport.cpp
src/sc_man_tokens.h
src/thingdef/thingdef_codeptr.cpp
src/thingdef/thingdef_function.cpp
src/thingdef/thingdef_parse.cpp
wadsrc/static/actors/actor.txt
wadsrc/static/actors/constants.txt
wadsrc/static/actors/shared/inventory.txt
- Added register reuse to VMFunctionBuilder for FxPick's code emitter.
- Note to self: Need to reimplement IsPointerEqual and CheckClass, which
were added to thingdef_function.cpp over the past year, as this file no
longer exists in this branch.
- Do a filter and species check first to save time.
- Added DMSS/KILS/RMVF_EITHER, which means if the actor is of type or species, it counts.
- A_DamageTarget(20,"Normal",DMSS_EITHER,"DoomImp","CyberdemonSpecies")
- This affects actor DoomImp, and anything that's of species CyberdemonSpecies.
- Added a little more documentation via comments.
- Added two more flags for each of the functions, EXFILTER and EXSPECIES.
- Stands for "exclude filter/species" and makes the function not take them into account.
- Cleaned up the code and placed all the checking in their own subfunctions.
- The wiki said the minimum distance to teleport defaults to 0, actor.txt on the other hand said otherwise. I was wondering why it was still broken somewhat...
- Prevent stickiness from happening, a.k.a. getting stuck in ceiling or floor and letting the engine unstick the actor. This caused velocity loss.
- TF_KEEPVELOCITY: Keep the velocity after teleporting.
- TF_KEEPANGLE: Don't use the special spot's angle.
- TF_USESPOTZ: Normally, this function
- TF_NOSRCFOG: Don't leave fog at the previous location.
- TF_NODESTFOG: Don't leave fog at the arriving location.
- TF_USEACTORFOG: Use the actor's TeleFogSourceType and TeleFogDestType properties.
- TF_NOJUMP: Don't require or cause a jump. In this case, put 0 (or "") in for the jump destination when using CustomInventory items to teleport actors around.
- Instead of reverting the teleport fog back to defaults, if there wasn't a class or if the class failed to be found, set it to NULL.
- P_SpawnTeleportFog will not spawn anything if it's NULL.
- Added "" so it can be used to mean 'don't change anything' for A_SetTeleFog.
- New properties include TeleFogSourceType and TeleFogDestType.
- TeleFogSourceType is the fog left behind where the actor teleported away from.
- TeleFogDestType is the fog the actor sees when it arrives at its destination.
- Added A_SetTeleFog(<oldpos>,<newpos>) -- oldpos sets TeleFogSourceType, newpos sets TeleFogDestType.
- CLOFF_SETTARGET | CLOFF_SETMASTER | CLOFF_SETTRACER
- An actor that causes A_CheckLOF (and only an actor) to succeed will set the intercepting actor as its target, master, and/or tracer, respectively.
- Added more resolutions to the hard coded table (up to 5K).
- Since we're using scaling for fullscreen, we should probably just use the hard coded table for fullscreen resolutions as well.
- Fixed: Resolution menu used fake aspect ratio to determine which aspect to file a resolution under.
- Added a way to use SDL surface blitting instead of accelerated textures.
1) Don't show OSX_COCOA_BACKEND option if the host is not OSX;
2) Don't use the '-msse' compiler flag in dumb/ if the architecture does not support it.
- Improved international keyboard support by falling back to scan codes if we don't recognize a keycode.
- Clear out any residual mouse movement when entering relative mouse mode.
- HITTARGET, HITMASTER, and HITTRACER.
- A missile that dies hitting an actor will set this impacted actor as the new target/master/tracer, depending on specifications.
- Added THRUREFLECT, MIRRORREFLECT, and AIMREFLECT. All require REFLECTIVE to work.
- THRUREFLECT prevents missiles from changing course if reflected, and takes precedence over all reflective flags.
- MIRRORREFLECT causes missiles to perform a direct 180 turn-around.
- AIMREFLECT turns the missile back to the original shooter, and does not slow the missile down.
Of course, just changing the name would break many old ZDoom mods so now Boom's name is explicitly being translated into ZDoom's before setting the string.
Regular skies need it off but SkyViewpoints need it on - and all others need to use the parent's setting.
So without engine side tracking we can end up rendering the sky with this setting off, resulting in omission of the fog layer.
- FTF_REMOVE: Removes the actor when the alpha hits a certain level.
- - A_FadeIn - 1.0
- - A_FadeOut - 0.0
- - A_FadeTo - Alpha target level reached
- FTF_CLAMP: Automatically fixes the alpha so it won't leave the range [0.0, 1.0].
- Avoid doing the division if the result would be outside the ]0,1<<24[ range:
-- if the numerator is nonpositive, ie <=0, truncate the result to 0,
-- if the numerator is greater or equal than the denominator, the result will be outside the allowed range, hence truncate the result to 1<<24.
-- otherwise, the result will be inside the range. Knowing that the denominator is greater than the numerator, if the numerator has the last 24 bits non zero, the denominator can't be less than 1<<24, hence the denominator won't be truncated to 0.
- Add comment details to help who doesn't know math. Big deal!
-Fixed: ALLOWPAIN should not trigger pain states if the damage is 0, but still allow for infighting to occur.
-Fixed: an unneeded logic call was processing damage modification when it was 0 to begin with.
No more compile time checks via preprocessor macro definitions
This introduces dependency from Carbon framework, see SetSystemUIMode() function. It's available in 64-bit, and so, it's not deprecated
Game is rendered correctly even if hardware doesn't support non-power of two textures
The ARB_texture_rectangle extension is supported on almost all Macs running 10.4 Tiger
Monsters with this flag can enter pain states, regardless of
invulnerability or damage absorption.
- Fixed: god2 cheat wasn't being considered for drowning and thrusting.
- Added: A_TakeFromChildren
- Added: A_GiveToSiblings
- Added: A_TakeFromSiblings
- Added the following flags for A_RadiusGive:
- RGF_NOSIGHT: Exclude sight check from distance.
- RGF_MISSILES: Missiles can take inventory items.
Actors will be excluded from damage/radius thrusting of all sorts by
explosions or damage of any kind. They will also never deal impact
damage to other enemies, nor will they damage themselves from being too
close to a wall.
Apparently a band-aid fix was applied to this function because AActor::Destroy could not be called on an already destroyed actor again which could happen here due to incorrect ordering of actions.
Moving the state change to a later point in this function - after hitting a sky has been checked and decals have been spawned - returns everything to a safe state and ensures that nothing gets skipped.
APlayerPawn::GiveDefaultInventory altered the player_t's health value which was ok as long as this function was only called from G_PlayerReborn. For all other cases this initialization was wrong and G_PlayerReborn should do this itself.
* since it is designed for software-style light diminishing it doesn't work for 2D.
* additionally it left the lighting state in an unsuitable setting for further 2D rendering.
Added cl_predict_lerpscale and cl_predict_lerpthreshold
Added options in menudef
Made sure that lerping cannot extrapolate or run on small scales
Lerping gets reset when rendering interpolation does or respawn
- fixed: The shader code for handling special fixed colormaps did not use the color vertex attribute which was most evident with the 'shadow' render style on the spectre.
- RMVF_MISSILES removes missiles.
- RMVF_NOMONSTERS ignores monsters.
- RMVF_MISC includes non-monsters and missiles.
- RMVF_EVERYTHING disregards all checks and remove it.
These flags now apply to the following in addition to the new function:
-A_RemoveTarget
-A_RemoveMaster
-A_RemoveTracer
-A_RemoveChildren
-A_RemoveSiblings
Decorate: IsPointerEqual(int aaptr_selector1, int aaptr_selector2)
ACS: IsPointerEqual(int aaptr_selector1, int aaptr_selector2, int tid1 = 0, int tid2 = 0)
Compare the pointers values returned by two pointer select operations. Returns true if they both resolve to the same value. Null values can be explicitly tested using IsPointerEqual(AAPTR_NULL, ...)
ACS: IsPointerEqual(int aaptr1, int aaptr2, int tid1 = 0, int tid2 = 0)
This function lets you compare pointers from other actors than the activator, using tids. Tid1 determines the actor used to resolve aaptr1, Tid2 does the same for aaptr2. If tid1 and tid2 are equal, the same actor will be used for resolving both pointers (that could always happen randomly; this way you know it will happen).
- Added A_KillTarget(damagetype, int flags).
- Added A_KillTracer(damagetype, int flags).
- Added A_RemoveTarget.
- Added A_RemoveTracer.
A_Kill (Master/Target/Tracer/Children/Siblings):
- KILS_FOILINVUL: foils invulnerability.
- KILS_KILLMISSILES: destroys projectiles. Does not work on invulnerable
projectiles without KILS_FOILINVUL, and doesn't work at all on missiles
with NODAMAGE flag.
- KILS_NOMONSTERS: actors that are monsters will not be killed.
A_Damage (Self/Target/Master/Tracer/Children/Siblings):
- DMSS_FOILINVUL: foils invulnerability.
- DMSS_AFFECTARMOR: damages the actor's armor instead of bypassing it
entirely.
- DMSS_KILL: damages the actor by its remaining health (useful for
modular DECORATE programming).
- Added A_SpawnItemEx flags:
- SXF_SETTARGET: sets the calling actor as the target.
- SXF_SETTRACER: sets the calling actor as the tracer.
Both of these functions take priority similar to SXF_SETMASTER over
SXF_TRANSFERPOINTERS.
In the function R_RebuildViewInterpolation, the pointer 'iview' was not initialized when the player or its camera were NULL, hence 'iview == NULL' was garbage. Also, the function FindPastViewer does not return NULL, hence the mentioned check is not needed at all. Just return early if the player camera does not exist.
- Extratic changed to server var, that can be changed at any time
(net_extratic)
- Added net_extratic 2 which resends all unconfirmed tics
- Corrected bad variable typo in delay reporting
- Added delay times of all players to the scoreboard
- Removed balancing from packet-server (tried it, didn't work)
- Calculations remove an extra tic to account for possible bias
- Guests can now attempt to match latency with the arbitrator.
(net_loadbalance)
- Added althud feature to show arbitrator and local latency.
(hud_showlag 1 is on for netgames, 2 is always on)
Since rendering is asynchronous, the camera texture scene may not be finished once the main scene's lights get filled in. Unfortunately forcing a synchronization with glFinisg has bad side effects on performance the only remaining option is to use separate parts of the buffer for both scenes, which in extreme cases may increase the light buffer's size - but on modern hardware that shouldn't be a problem.
The optimizer miscompiles the function FBehavior::LoadScriptsDirectory and causes random crashes when zdoom is run with wads containing scripts.
As said in the comment, I just hope that the Clang devs fix it for the next patching release, ie 3.5.1.
They need to be done per lump, because MapData::Seek can alter the FileReader being used for a specific lump. Even worse, the FileReader will be NULL when the function as it was is called for a map inside a Zip-file.
- avoid rebinding the same texture multiple times, as there's considerable overhead in the texture manager.
- check gl_sort_textures only once per scene, not per draw list.
- use sampler objects to avoid creating up to 4 different system textures for one game texture just because of different clamping settings.
- avoids flushing all textures for change of texture filter mode.
- separate sprite and regular dimensions on the material level to have better control over which one gets used. It's now an explicit parameter of ValidateTexture. The main reason for this change is better handling of wall sprites which may not be subjected to such handling.
- create mipmaps based on use case, not texture type.
- allows removal of FCloneTexture hack for proper sharing of the same sprite for decals and other purposes.
- better precaching of skyboxes.
GLEW has two major problems:
- it always includes everything, there is no way to restrict the header to a specific GL version
- it is mostly broken with a core profile and only works if all sanity checks get switched off.
There was one issue preventing the previous 2.0 betas from running under GL 3.x: The lack of persistently mapped buffers.
For the dynamic light buffer today's changes take care of that problem.
For the vertex buffer there is no good workaround but we can use immediate mode render calls instead which have been reinstated.
To handle the current setup, the engine first tries to get a core profile context and checks for presence of GL 4.4 or the GL_ARB_buffer_storage extension.
If this fails the context is deleted again and a compatibility context retrieved which is then used for 'old style' rendering which does work on older GL versions.
This new version does not support GL 3.2 or lower, meaning that Intel GMA 3000 or lower is not supported. The reason for this is that the engine uses a few GL 3.3 features which are not present in the latest Intel driver.
In general the Intel GMA 3000 is far too weak, though, to run the demanding shader of GZDoom 2.x, so this is no real loss. Performance would be far from satisfying.
A command line option '-gl3' exists to force the fallback render path. On my Geforce 550Ti there's approx. 10% performance loss on this path.
- added a light preprocessing pass to the renderer so that a non-persistent buffer can be used with minimal mapping/unmapping. This only gets used if necessary because it adds some overhead to the renderer.
When this function was originally written there was no possibility of fractional vertex coordinates so it threw away the fractional parts of the node's directional vector (which in the original nodes was always 0.)
Now, with UDMF and high precision vertices this no longer works and the loss of significant parts of their value caused this code to produce erroneous results if the linedefs were only a few map units long and using fractional positions.
- In ZDoom the timer runs a bit too fast because roundoff errors make 35 tics only last 0.98 seconds. None of the internal timing has been changed, only the places where a time value is printed it will get adjusted for this discrepancy.
Added ability to specify custom command line parameters
Added ability to browse for user files
Improved handling of restart console command
Improved layout for window
- specie: money in the form of coins rather than notes
- species: a group of living organisms consisting of similar individuals
capable of exchanging genes or interbreeding
- cx1, cx2, cy1, and cy2 are not used anywhere, so get rid of them.
- Also annotated the comments to indicate the corresponding arrays in the Build engine.
because they're kind of a pain to type when all uppercase.
- Also, make its sx1 and sx2 members shorts, so it takes less space, since
it's getting crammed into a vissprite now.
- This still doesn't use all the sprite properties correctly. It also
looks like they're going to need different code to build the clipping
arrays. But at least wall sprites are drawn at the proper angle now!
Sadly, anything else makes no sense.
All the recently made changes live or die, depending on this extension's presence.
Without it, there are major performance issues with the buffer uploads. All of the traditional buffer upload methods are without exception horrendously slow, especially in the context of a Doom engine where frequent small updates are required.
It could be solved with a complete restructuring of the engine, of course, but that's hardly worth the effort, considering it's only for legacy hardware whose market share will inevitably shrink considerably over the next years.
And even then, under the best circumstances I'd still get the same performance as the old immediate mode renderer in GZDoom 1.x and still couldn't implement the additions I'd like to make.
So, since I need to keep GZDoom 1.x around anyway for older GL 2.x hardware, it may as well serve for 3.x hardware, too. It's certainly less work than constantly trying to find workarounds for the older hardware's limitations that cost more time than working on future-proofing the engine.
This new, trimmed down 4.x renderer runs on a core profile configuration and uses persistently mapped buffers for nearly everything that is getting transferred to the GPU. (The global uniforms are still being used as such but they'll be phased out after the first beta release.
- R_AddLine() and R_RenderDecal() had nearly identical code for setting up
texture mapping. These have now been spun off into methods of
FWallCoords and FWallTmapVals.
- we need to check all GL versions when trying to get a context because some drivers only give us the version we request, leaving out newer features that are not exposed via extension.
- added some status info about uniform blocks.
- Blood's maps use thing types, much like Doom's, so getting its player
starts is easy. There's no need to synthesize a start from the editor
position like with other Build maps.
Adapting during a dup frame caused jittery network performance
(especially when using high dup values).
The demoplayback check also didn't need to be there anyway.
Even when '+logfile' argument was omitted, the console would print 'Could not start log', because 'logfile != NULL' was used as a check for the presence of '+logfile' argument, but the internal buffer of FString is never NULL, so the right check is 'logfile.isNotEmpty()'.
While I'm at it, I fixed another bad check for 'pagename'.
- reactivate alpha testing per fixed function pipeline
- use the 'modern' way to define clip planes (GL_CLIP_DISTANCE). This is far more portable than the old glClipPlane method and a lot more robust than checking this in the fragment shader.
hu_stuff.h defined some callbacks for qsort without STACK_ARGS which causes problems with this solution's Release setting which uses __fastcall calling convention.
- fixed a CMake warning about uninitialized use of the variable CROSS_EXPORTS in the tools subfolder when CMAKE_CROSSCOMPILING is off;
- fixed a variable typo: CMAKE_CURRENTY_BINARY_DIR instead of CMAKE_CURRENT_BINARY_DIR;
- in src/CMakeLists.txt, fixed a missing merge of a portion of code from maint branch to master.
Due to the way the engine works it needs to render a lot of small primitives with frequent state changes.
But due to the performance of buffer uploads it is impossible to upload each primitive's vertices to a buffer separately because buffer uploads nearly always stall the GPU.
On the other hand, in order to reduce the amount of buffer uploads all the necessary state changes would have to be saved in an array until they can finally be used. This method also imposed an unacceptable overhead.
Fortunately, uploading uniform arrays is very fast and doesn't cause GPU stalls, so now the engine puts the vertex data per primitive into a uniform array and uses a static vertex buffer to index the array in the vertex shader.
This method offers the same performance as immediate mode but only uses core profile features.
LZMA SDK recently added an #include <windows.h> to its headers, meaning it's no longer safe to include its headers globally in platform independent files.
The following changes were necessary:
- rename DWORD type in zipdir.c
- add USE_WINDOWS_DWORD and reorder includes in file_7z.cpp
- wrap LZMA decoder stream into a local struct that's declared anonymously in files.h and adjust files.cpp for this change.
Introduce the variable 'ZD_CMAKE_COMPILER_IS_GNUC(XX)_COMPATIBLE' and replace any occurrence of '"${CMAKE_C(XX)_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C(XX)_COMPILER_ID}" STREQUAL "Clang"' with it. This makes it possible to add more GCC compatible compilers in just one place.
Instead of the previous method where there'd be a filename and offset, and/or a
memory pointer, this uses a class to access resource data regardless of its
underlying form.
The sdl version of the function 'SetLanguageIDs' is very limited, comparing to the win32 counterpart, as it will try to accept only the language codes (ie 'enu', 'fr', 'ptb', etc). If a different string is provided, zdoom will default its language to English.
After thinking about it for a day or so I believe it's the best option to remove all compatibility code because it's a major obstacle for a transition to a core profile.
- Added a segment of code that now makes the intermission wait for all
players before advancing, instead of continuing on any player. A "ready
icon" shows to reflect this.
- The Deathmatch intermisson couldn't show the ready icon (because it
just used the ingame scoreboard), so a proper intermission was added,
which reflects the same design as the coop scoreboard.
- The colour column wasted more space then it should have needed, so it
was replaced with player colour backgrounds.
- Slight y offset adjustments to make everything fit in 320x200
properly.
- disable GL_ARB_buffer_storage when a -glversion parameter less than 4.0 is given. According to the spec this extension requires 4.0 so if emulating something lower it should not be used.
Root permissions are required to be able to create directories inside /Library/Application Support
So user's ~/Library/Application Support is used to store cached nodes
From what I can see, GCC would miscompile the involved loops, because the index variable is 'signed int' and the multiplication with an unsigned would cause signed overflow (undefined behavior). Change the index variable type to 'unsigned int' to expect unsigned overflow (conformant to standard).
- Also fixed some very strange thing in the shader's desaturate function. For unknown reasons using the 'mix' function there did not work.
- fixed: The fog boundary special shader could not be used.
Especially when dropping the current weapon it can still be active, this is most easily observed with Strife's crossbow which loops the flash state, but it also can happen with other weapons, right after shooting.
# By Christoph Oelckers (2) and Edward Richardson (1)
# Via Christoph Oelckers
* 'master' of https://github.com/rheit/zdoom:
- fixed: The map setup code was still truncating texture names in several places.
Fix nettic run-out at end of demo playback
- fixed: ACS's check...Texture functions must use the same search flags as the texture initialization code in p_setup.cpp and p_udmf.cpp. It also should not create textures that don't exist yet. We are only doing a comparison so it's not relevant if the texture exists or not.
Turns out that the name doesn't accurately describe what it does.
It is correct for images that come with their own palette or are true color.
But for images using the game palette it doesn't use the red channel to determine translucency but the palette index! Ugh...
This means it cannot be done with a simple operation in the shader because it won't get a proper source image. The only solution is to create a separate texture.
- remove thing color from lighting calculations.
- implement alpha textures and inverse sprites for infrared as texture modes. This still requires some handling for the alpha texture mode for non-shader rendering because there is no way in the fixed pipeline to do it. The inverted texture effect can be done with a texture combiner.
- fixed: ThingColor for sprites was set in the wrong place. It must be in the Process function, not in the lighting calculation.
- added functions for isolated calculation of sprites' dynlight color.
On GL 3.x+ this isn't needed at all and on older hardware it causes performance issues, in particular with hires textures due to impossibility of precaching.
In addition it forces some really awkward handling of lighting for things that have their own color, like stenciled sprites or particles.
With this special case gone it will be possible to handle this case in a saner manner than it is right now.
As compensation for older hardware a fullscreen blend will be drawn over the entire screen. This won't be 100% accurate but it's preferable to keeping the current method.
This means it won't work anymore on anything that doesn't support OpenGL 4.0, but I don't think this is a problem. On older NVidia cards performance gains could not be seen and on older AMDs using the vertex buffer was even worse as long as it got mixed with immediate mode rendering.
- fixed: Thing_Raise didn't properly set the spawn health.
- fixed: Thing_Raise did not the CanRaise state flag.
- fixed: Reviving a monster must also reset the damage type.
- fixed: Thing_Raise reset the actor after calling the raise state, but it should be before, just as the Archvile code is doing.
- consolidated some common code of Thing_Raise and Archvile resurrection into AActor methods.
Instance of FileReader is no longer destructed when header of data file is valid but complete loading of file fails
Loading of truncated .zip file is the simplest test case
Recently added pitch and roll members were not initialized with zeroes when loading Hexen-style maps
At least, hitscan attack can be fired in random direction because of this
- added version check for Windows 8. I also would have liked to add 8.1 but due to some incredibly stupid changes in the version API it's no longer possible to reliably retrieve the correct Windows version for later builds.
- replaced GLUs texture scaling with our own function. This is only used to scale down textures larger than what the hardware can handle so we do not need a dependency to an essentially deprecated library for it.
Use POSIX-compliant opendir() / readdir() functions instead fts_open() / fts_read()
Unlike Linux version, on OS X fts_read() inserts extra slash character between source directory and traversed entry paths
- This warning is about using zero-sized arrays in structs (aka flexible
member arrays). It's standard-enough for our purposes, so don't warn
about it, since neither GCC nor Clang do.
- Since Clang++, G++, and VC++ all support this extension (even though it's
technically officially only part of C99), use it. It lets Clang's array-
bounds checker know that these are meant to be accessed out of their so-called
"bounds".
- 'notranslate != NULL' is completely useless, because 'notranslate' is an array, hence removed.
- I interpreted 'SbarInfoScript != NULL' as a typo, since 1)in the next expression inside the condition there's a dereference to 'SBarInfoScript[SCRIPT_CUSTOM]' and 2)'SBarInfoScript[SCRIPT_CUSTOM]' is checked against 'NULL', in line 352, and then dereferenced when introducing 'cstype'.
- Fixed: If a part of a multipatch texture is replaced by a HIRESTEX
version, the original patch must not be deleted, since the multipatch
texture still needs it for compositing.
- This function just assumed that every xy angle passed to it was within
the range [0,360). This is obviously bad, since anything outside that
range can result in accessing data outside the range of the finecosine
and finesine tables.
- For maps like xtheateriii that expect non-blocking push lines to
activate when you are standing on them and run into a completely different
line, there is now this compatiblity.txt-only flag.
- Fixed: Loading players from savegames set the skin before their current
class was retrieved, so they could not validate their skins with the
correct class.
- There exist files where the first word of the version number for DRO v1
files is not 0 but something else completely. (Maybe it's not actually a
version number?) Assume they are valid v1 files as long as the second
word is a 1.
Instead of trying to decompress packets from unknown connections (and
failing them anyway), they are now reported and discarded without doing
anything else.
Corrected entries were blood would spawn inconsistently because of
cl_bloodtype. Blood now always spawns but is marked invisible according
to cl_bloodtype.
- commented out output of Cr0NpxState for floating point state because this variable was renamed in most recent Windows headers.
- added CMAKE option to generate assembly output for release builds.
- added my CMake-based project directory to .gitignore.
- Fixed: Commit 75dd5503, which was to enable the use of LANGUAGE
substitutions for conversation items with a cost attached, neglected to
remove the original code that attached the cost to the end of the item,
so the cost got added twice.
- The waiting message is now always cleared, regardless if it needed to
be in the first place. It's a rather simple for-loop so I doubt it
matters.
- Nodes are also cleared from the list if they catch up while other
nodes are still behind.
- "lastglobalrecvtime" is now bumped after the waiting loop if a tic was
successful, rather then bumping it every time a packet was received. It
appears that you can receive a packet before the game knows it stalled,
thus stalling it anyway.
- Instead of comparing the nettics to the local node, all nodes are
tested against gametic+counts (the real reason why the game has
stopped).
- More then one node can be marked as late at any one time.
- In a packet-server game, the arbitrator is now assumed slow, rather
then testing it. There is no point, seeing as we already know the game
has stalled because of it.
- The binary form of ZCC_OpInfoType::FindBestProto() needs special
handling for conversion from single to double precision floating point
so that it doesn't choose an integer form over a floating point form
when picking the best prototype.
- This information is already stored in the node's NodeType field, so
there's no reason to go do a table lookup for it elsewhere. Must have
been a brain fart when I wrote them in the first place.
- Fixed: PType::FindConversion() gave all but the source type a distance of
0, so it only ever returned just one step of a route that requires more
than one step.
- The global symbol table was never marked by the GC, so anything pointed
only by it was fair game to disappear.
- Don't clear the global symbol table during DECORATE parsing. Junk in
there should be considered constant after initialization.
- AST nodes cannot be shared, because type conversion changes them in
place, and what's appropriate for one use is by no means appropriate for
all uses.
- Added ZCCCompiler class as a place to generate IR and symbols from an
AST. Right now, all it does is simplify constant expressions into
constant values.
- Do type promotion on the AST where appropriate.
- Added true and false tokens to the parser driver.
- PType::FindConversion() can find a path to convert one type to another.
This is completely generic and can handle any number of conversion
functions.
- Added ZDOOM_OUTPUT_OLDSTYLE (could probably use a more descriptive name) which causes CMake to vary the executable name by build type and place the exes and pk3s into the directory specified in ZDOOM_OUTPUT_DIR.
- ALL_BUILD will now launch ZDoom.
- Command-line console commands are executed before a level is entered, so
trying to use +warp to position yourself at a specific location will not
work. We now specially handle this command so that it does work.
- Added CF_INTERPVIEW flag for players. A_SetPitch/A_SetAngle and the
similar ACS APROPs set this when changing an angle. This forces the
renderer to interpolate the view angles instead of updating with the
latest mouse positions. The effect lasts one tick.
- To make camera textures pan in world units instead of texture units, you
can now add "WorldPanning" at the end of the cameratexture definition in
ANIMDEFS, after the "fit" specification. e.g.
cameratexture CAMTEX 128 128 fit 64 64 worldpanning
- Fixed: DThinker::Destroy(Most)ThinkersInList() were unreliable when
destroyed thinkers destroyed more thinkers in the same list.
Specifically, if the thinker it destroyed caused the very next thinker
in the list to also be destroyed, it would get lost in the thinker list
and end up with a NULL node. So just keep iterating through the first
thinker in the list until there are none left. Since destroying a
thinker causes it to remove itself from its list, the first thinker will
always be changing as long as there's something to destroy.
- Fixed: You could not set any CVARINFO-defined cvars from the command line
because command line console commands were executed before wads were
even loaded. Off the top of my head, I can't think of anything that would\
break by having them get executed after wads are loaded.
- Since the VM doesn't directly support the GT, GTEQ, and NEQ comparisons,
don't use them in the trees either. Instead, wrap them as LTEQ, LT, and
EQEQ inside a BoolNot operator.
- I can't believe I completely forgot to let the parser handle true and
false literals.
- Consolidate all the %include blocks in zcc-parse.lemon into a single
one, because Lemon all of a sudden decided it didn't like me having more
than one in the grammar file.
- Added a PBool type to represent boolean values with.
- This conversion has behavior similar to %g: It automatically behaves like
%f or %e based on the number of output characters. However, unlike %g,
this decision is also based on what will produce the smallest string
without truncating the output. The precision field (the * in %.*f) is
ignored. Converting a double to text with %H and then back to a double
should be lossless.
- Added TypeVoid for statements, which produce no type.
- Added TypeError for expressions whose arguments are incompatible.
- Pointers now derive from PBasicType instead of PInt. Since they have their own register sets in the VM, this seems to make more sense than treating them as integers.
Due to autoexpansion to remove filtering artifacts their dimensions are not the same as for patches. But if the sprite hadn't been used yet this information won't have been set yet.
If an actor is already targeting a goal, and Thing_SetGoal is used on
it, it would still be left targeting the old goal instead of the new
one. This messed up checks in A_Chase for walking towards a goal vs a
real target.
- This fixes crashes when quitting multiplayer games because the default
byte-for-byte copy caused PredictionPlayerBackup and the console player
to point to the exact same userinfo data and to both try and free it
when they are deleted.
- Make wi_noautostartmap a userinfo cvar. This allows it to be
communicated across the network and saved in demos. If any player has it
set, then the intermission screen will not automatically advance to the
next level.
- Instead of tying NoDelay behavior to OF_JustSpawned, use a new actor
flag, MF7_HANDLENODELAY. This only gets cleared once it has actually
been checked by Tick(). This is necessary because freeze mode delays the
initial run of Tick() past the initial spawn, so OF_JustSpawned will no
longer be set when it does the initial tick.
- Delay NoDelay processing if an actor is spawned dormant. Actors spawned
dormant have Deactivate() called before they tick, so MF7_HANDLENODELAY
will remain set as long as an actor is dormant. This allows the NoDelay
handling to occur as expected once it is activated.
- If the current user does not have write permissions for the directory
zdoom.exe is located in, use standard folder paths located in their home
directory instead. This is a common scenario when people put ZDoom into
Program Files. (Ironically, zdoom.ini used to be in AppData, buth then
people complained when it wasn't in the same directory as zdoom.exe, so
it got turned into zdoom-<user>.ini so at least it could retain some
multi-user support. I'm not sure when the AppData support was removed,
though, since it should have still been kept around for migrating
configs to the new name.)
Hexen did this with a call to A_BridgeRemove in Thing_Destroy which merely set a flag in the bridge object, which cannot be done safely in ZDoom because it's not guaranteed that the ball object calls A_BridgeOrbit and the garbage collector may delete the bridge actor before it can be checked so now the Bridge's Destroy method deletes all balls attached to the bridge object itself.
- Since the tokenizer never gives the parser negative numbers but always a
unary minus followed by a positive number, it seems reasonable to make
the parser smart enough to turn these into negative constants without
generating extra tree nodes.
- And since we're doing it for unary -, we might as well do it for unary +
as well and avoid extra nodes when we know we don't need them.
- For an enum like this:
enum { value1 = SOME_NUM*2, value2 };
Generate an increment expression for value2 of the form
(add (id value1) 1)
and not
(add (* SOME_NUM 2) 1)
- Instead of representating enumeration values with a special node type,
use the same ZCC_ConstantDef nodes that const_def produces. These are
created at the same scope as the ZCC_Enum, rather than being contained
entirely within it. To mark the end of enums for a single instance of
ZCC_Enum, a ZCC_EnumTerminator node is now appended to the chain of
ZCC_ConstantDefs.
- Constants can be strings, but the existing PSymbolConst couldn't handle
them. The old PSymbolConst is now PSymbolConstNumeric, and the new
PSymbolConst is a now a baseclass for it and PSymbolConstString.
- Instead of having ZCC_ExprString, ZCC_ExprInt, and ZCC_ExprFloat,
just use a single ZCC_ExprConstant. It should simplify type
promotion and constant folding in the future.
- Constants can fill out the type field right away. Other expressions will need
to wait until a later pass, after names have been resolved, so they get
initialized to NULL.
- A texture defined in TEXTUREx without any patches isn't necessarily an
error, so accept. This also means they shouldn't be used for determining
if a TEXTURE directory belongs to Strife instead of Doom.
- When P_OpenMapData() is called by P_CheckMapData(), we don't actually
care if any required lumps are missing. This just means it isn't a valid
map, so don't abort with I_Error().
- Fixed: When an ACS string pool was read from a savegame, FirstFreeEntry
would not be updatedt, except by the Clear() function. This left FirstFreeEntry
at 0, which meant the next string added to the pool would always go in
slot 0, whether it was free or not.
- If a player is spying through another player, CheckPlayerCamera will
return the TID of the player you are "spying", but as coopspy isn't a
net command, this wont be reflected by all nodes. So to fix this,
CheckPlayerCamera now returns -1 if a player's camera is that of any
player at all. (thanks edward850)
- Added I_GetLongPathName(). It wraps the Win32 API's GetLongPathName().
DArgs::CollectFiles() now calls this for every argument it processes, so
any arguments passed using short file names will be converted to long
file names. This is mainly of interest so that savegames will never
record the short file name, which can change based on what else is in
the directory.
- The type systems used by PField and FxExpression are completely
incompatible, but I think I got the differences taken care of as far
as ParseNativeVariable(), ParseUserVariable(), and FxClassMember are
concerned.
- Support for declaring native bool variables has been removed for the time
being. It wasn't used anyway.
- Removed PSymbolVariable.
- To simplify code generation genericizing, add three new opcodes
* NOP: No-Operation
* LANG: Load Angle - load a BAM angle into a float reg as degrees
* SANG: Save Angle - store a float reg into a BEM angle, converting from degrees
- Instead of changing three places to turn disassembly dumps on and off,
do it with just one place. As a side effect, this now handles the case
where the dump file can't be opened.
- removed gl_vid_compatibility. With the bump to 1.4 no hardware requiring this flag is supported anymore.
- disabled 16 bit framebuffers for the same reason. As a conseqence all code for rendering without stencil could also be removed.
- For Prototypes, Hash is passed the address of two TArrays. If we blindly
hash those without checking their contents, then we can forget about
ever finding any matching prototypes in the type table. (Not that I
remember why I wanted them to be unique, but I'm sure I must have had my
reasons.)
- extended am_drawmapback so that map backgrounds can only be drawn if used with custom colorsets and Raven's, assuming that these sets were specifically made for the accompanying backgrounds.
Mostly preparation to implement a per-mod automap option but also fixes a few minor issues with some colors that are not defined in the original game specific colorsets.
Since I remember that 'memset/memcpy' is safe in this code, it should be okay to cast to the generic pointer all the 'virtual class' arguments before calling the above functions. Shuts up Clang warnings.
- For the purposes of getting constant values from expressions, the only
class where Resolve doesn't duplicate the functionality of
EvalExpression was FxConstant. So, every other class has had its
EvalExpression taken away, and FxConstant has had it renamed to GetValue.
The 'unix' identifier isn't defined when '-std' is passed to the compiler (tested with gcc and clang), so use '__unix__' which is well enough documented.
- Now that the VM supports degrees, use those instructions when emitting
code for cos and sin DECORATE expressions. (This looks like it also
fixed a bug where sqrt also did the degree to radian conversion.)
- Added versions of the trig operations supported by FLOP that can work
with degrees directly instead of radians.
- Reorder FLOPs into more sensible groupings.
- After StateParams was removed in commit 4a1fbdb, the expressions for
default paramaters that ParseActionDef() created went nowhere and were
lost. Properly throw them away by deleting them as soon as they've been
parsed.
- Removed EvalExpression() implementations from some subclasses of
FxExpression that don't make any sense in the context of evaluating a
constant value.
- This all became vestigial code after the relevant information was all
moved into FStateTempCall. Now that the MBF code pointer code has been
converted, I can be sure it wasn't still used anywhere.
- Where the old code mucked about with parameter lists to convert misc1
and misc2 values to action function parameters, we now create new script
functions using a VMFunctionBuilder to pass the parameters to an action
function. This code is completely untested, as I have no BEX patches to
test it with, but at least it compiles without error.
drawing of sprites instead of things/players markers with am_cheat >= 2
possible am_showthingsprites values are:
0 - sprites disabled
1 - static front sprites
2 - animated front sprites
3 - animated sprites with actual things angles
- More forced line breaks.
- Don't use extra parentheses in places where it can still be unambiguous
without them.
- Don't print the UserType for basic-types that aren't ZCC_UserType.
- Being able to omit optional function arguments is not such a nonsensical
thing after all. However, the previous grammar was still inadequate for
representing this in a useful way.
- Fixed: Trying to define a function without any parameters would silently
discard the function, because the declarator tested FuncParams instead
of FuncName to decide if it was a function.
- Fixed: state_call needs to enclose func_expr_list in LPAREN/RPAREN
itself, because func_expr_list doesn't include them. This means it also
needs a separate production to accept calls without a parameter list.
- The variable_name production now accepts an optional array size
argument. (Not yet passed to the AST.)
- The notation for using dotted ID lists as types has been changed from
[id1.id2] to .id1.id2, beacuse the former conflicts with the notation
for arrays.
- fixed: Damage of type 'extreme' did not get recorded as an extreme death for the mugshot code.
- changed: extreme deaths now only get recorded when an extreme death state was actually used, to ensure that the crash state being used is the correct one associated with the death state.
- fixed: DamageTypeReceived was not serialized.
- fixed: The check for unhandled damage type was rendered ineffective by the old code handling the DeathType.
- Use functions in gitinfo.cpp to retrieve the strings from gitinfo.h so
that changes to gitinfo.h only require recompiling one file instead of
several.
P_PlayerThink() is where the check for unspawned players happens. If the player attached to the
status bar is one of them, it will crash while ticking.
SVN r4334 (trunk)
continue spinning until the next time around because the check for moving too fast was only
done after the polyobject had been rotated once.
- Reduced the potential for overflow when setting up the speed of a rotating polyobj.
SVN r4332 (trunk)
int SpawnDecal(int tid, str decalname, int flags, fixed angle, int zoffset, int distance)
Traces a line from tid's actor until hitting a wall, then creates a decal there. Returns the
number of decals spawned.
* tid = Which actor(s) to start the trace at.
* decalname = Which decal to spawn.
* flags =
* SDF_ABSANGLE = Angle parameter is an absolute angle. Otherwise, it's relative to the origin actor's angle.
* SDF_PERMANENT = Decal ignores cl_maxdecals. Otherwise, it will eventually disappear.
* angle = Direction in which to search for a wall. Defaults to 0.0.
* zoffset = Offset from the middle of the origin actor for the Z height of the decal. Defaults to 0.
* distance = Maximum distance to search for a wall. Defaults to 64.
SVN r4330 (trunk)
- Fixed: ACSStringPool::InsertString()'s overflow check was far too low.
- Fixed: When ACSStringPool::InsertString() triggered a garbage collection, it ignored the
newly freed space and expanded the array anyway.
SVN r4328 (trunk)
- fixed: UDMF's ZDoomTranslated namespace needs to set the DUMMYSWITCHES flag so that it remains compatible with Doom-format ZDoom maps.
SVN r4325 (trunk)
of taking an actual sound name as its second parameter, it selects the sound to play based on
the actor playing the sound and the selector passed as the second parameter.
SVN r4323 (trunk)
* The standard C functions strcmp and stricmp (aka strcasecmp), which double up as strncmp and strnicmp if you pass a third argument.
* The BASIC-like functions strleft, strright, and strmid, which extract parts of a string to
create a new string.
SVN r4313 (trunk)
counterparts except that (1) PlaySound requires you to specify a sound instead of defaulting
to "weapons/pistol", and (2) StopSound defaults to CHAN_BODY instead of CHAN_VOICE.
SVN r4306 (trunk)
major change to ACS's workings. However, I had an epiphany yesterday and just had to do this, since it seems like too big a deal to hold off until a later release:
- Dynamically generated strings returned via strparam and get(user)cvar now last as long as they
need to. They do not disappear at the end of each tic. You can now safely store them in
variables and hold on to them indefinitely. In addition, strings from libraries no longer
require you to load the exact same libraries in the exact same order. You can even store a
library's string in a world variable and retrieve it on another map that doesn't load the
library at all, and it will still be the correct string.
- ACS library IDs now only get 12 bits instead of 16 so that each string table can hold up
to about a million strings instead of just 65536. This shouldn't be a problem, although it
means that save games that had strings with the larger IDs stored in variables are no
longer compatible. Since many saves don't involve libraries at all, and even many that do
are not actually affected, I'm not bumping the min save version. The worst that can happen
is that you get no text at all where some was expected.
SVN r4295 (trunk)
counterparts, except that they return strings. Like strparam, the strings they return are
only guaranteed to be valid for the tick they are called during. (Note that these work with any
cvar, not just string ones.)
SVN r4293 (trunk)
counterparts except that their value argument is an ACS string. (Note that they work with any
type of cvar, not just string cvars.)
- Make UCVarValue::String point to a constant string.
SVN r4292 (trunk)
* int GetUserCVar(int playernum, "cvarname")
* bool SetCVar("cvarname", newvalue)
* bool SetUserCVar(int playernum, "cvarname", newvalue)
GetUserCVar is analogous to GetCVar, except it returns the value of a user cvar for a
specific player. (All user cvars can be examined using the playerinfo console command.)
SetCVar sets a cvar to a new value. If the cvar is floating point, then newvalue is treated
as a fixed point number, otherwise it's treated as an integer. SetUserCVar is the same, but
for a specific player's user cvar.
SetCVar and SetUserCVar can only change cvars created via CVARINFO. They cannot alter built-in cvars.
If you use GetCVar or SetCVar with a user cvar, they will act on the copy of the user cvar
for the player who activated the script. e.g.
GetCVar("gender")
is the same as
GetUserCVar(PlayerNumber(), "gender")
If you get the value of a floating point cvar, it will be returned as a fixed point number.
Otherwise, it will be returned as an integer.
SVN r4283 (trunk)
- Separated CVAR_MODARCHIVE into CVAR_MOD|CVAR_ARCHIVE so that mod-defined cvars can still be
identified when they aren't meant to be archived.
SVN r4281 (trunk)
of the form:
<scope> [noarchive] <type> <name> [= <defaultvalue>];
Where <scope> is one of:
* server: This cvar is shared by all players, and in network games, only select players can
change it.
* user: Each player has their own copy of this cvar, which they can change independently.
To prevent the cvar from being written to the config file, add noarchive to its definition.
<Type> is one of:
* int: An integral value. Defaults to 0.
* float: A value that can include a fraction. Defaults to 0.0.
* color: A color value. Default to black ("00 00 00").
* bool: A boolean value that can hold either true or false. Defaults to false.
* string: A string value. It's not too useful for mods but is included for completeness. Defaults to "".
<Name> is the cvar's name and must begin with a letter and may only include alphanumeric
characters and the underscore character.
If you wish a non-standard default add an = character after the cvar's name followed by the
default value you want to use. Example:
server int mymod_coolness = 10;
- Fixed: FStringCVar::SetGenericRepDefault() did not make a copy of the input string.
SVN r4280 (trunk)
number to represent a flag combination is stupid unreadable now that there's more than just
the two possibilities it had when it was first written.
SVN r4278 (trunk)
DECORATE). Then you can use:
* Bounce
* Bounce.Floor
* Bounce.Ceiling
* Bounce.Wall
* Bounce.Actor
* Bounce.Actor.Creature
Partial matches work just like Pain states, so if an actor bounces off a floor and you don't
have a Bounce.Floor state, but you do have a Bounce state, it will use the Bounce state.
Conversely, if you only have a Bounce.Floor state but no Bounce state, then the actor will
only enter the Bounce.Floor state when it bounces on a floor; bouncing off anything else will
not cause it to change state.
SVN r4250 (trunk)
When set, the actor will run this state during its first tick. This means Spawn
states may now run an action function if you set this flag. Note that this action function
is executed during the actor's first tick, which is not the same as when it is spawned.
SVN r4240 (trunk)
once in the level struct and then use that for sectors with a NULL skybox. This fixes zpack's
E2M3 so that when it removes its sector stacks, you will get the default skybox in their
place, since stacked sectors and skyboxes use the same pointers in a sector.
SVN r4224 (trunk)
the camera is on. Mostly, this means testing the distance of the camera to the plane rather
than computing the plane's Z at the camera and comparing that with the camera's Z.
SVN r4220 (trunk)
TOUCHY flag set, or checking the position of the unmorphed version will kill the morphed
version, since they will both exist in the same place at the same time, and TOUCHY is
really touchy about that.
SVN r4219 (trunk)
infighting is disabled; let the normal conditions apply. Otherwise, you end up with situations
where monster-fired projectiles can collide with pickups.
SVN r4198 (trunk)
whatever spawned the random spawner already took care of this.
- Added a maxdist parameter to P_CheckMissileSpawn() to help ensure that it doesn't completely
move the spawned missile outside of its shooter (and potentially beyond a wall the shooter
might happen to be standing next to).
SVN r4194 (trunk)
* acsprofile clear - Resets all profiling statistics to 0.
* acsprofile [<sort-function>] [<limit>]:
* <sort-function> is an optional argument that specifies which column to sort on (total, min, max, avg, or runs). The default is total.
* <limit> is an optional argument that specifies how many rows to limit the output to. The default is 10. 0 or less will print every script or function that has at least one run.
SVN r4060 (trunk)
accounting. Also, if the poisoner is a missile, remembering it is pretty pointless, since it's
likely to be gone before the player ever dies from the poison.
SVN r4040 (trunk)
compat_useblocking. This is not going to be extended to all specials that spawn a thinker at
load time, because some of them can be placed on a line later using SetLineSpecial and used
directly.
SVN r4037 (trunk)
will carry over until the next A_WeaponReady. Changed P_CheckWeaponSwitch() to clear any
pending weapon requests while weapon switching is disabled.
SVN r4024 (trunk)
can perform based on the amount of damage actually taken after all modifications are done to
it. However, if the damage is canceled away, blood will still spawn for the original damage
amount rather than the modified amount.
SVN r4012 (trunk)
something that never autoaims, such as a railgun.
- Fixed: A_JumpIfTargetInLOS should use P_AimLineAttack() instead of P_BulletSlope(), because the
latter intentionally checks to the sides of the aimed line.
SVN r4007 (trunk)
since they're int and not string settings.
- Fixed: FluidSynthMIDIDevice::FluidSettingInt() interpreted the return value from fluid_settings_setint() wrongly.
SVN r3993 (trunk)
- Added additional debug spew for the nodebuilder.
- Restore the nodebuilder's debug spew that was present in ZDBSP but not the internal version.
Use the CRT's printf for this output to ensure that it is identical to ZDBSP's output for the
same input.
SVN r3980 (trunk)
- Fixed: PALVERS crashed with unknown textures since a value was never given for %s.
- Fixed: FON2 loader didn't set ActiveColors correctly.
SVN r3973 (trunk)
and two new functions, both of which are intended for use in conjunction with SetHUDSize:
* SetHUDClipRect(x, y, width, height[, wrapwidth]) - Set the clipping rectangle for future
HUD messages. If you do not specify <wrapwidth>, the HUD message will be layed out as
normal, but pixels outside the rectangle will not be drawn. If you specify <wrapwidth>,
then the message will be wrapped to that width. Use SetHUDClipRect(0, 0, 0, 0[, 0]) to
reset everything
back to normal.
* SetHUDWrapWidth(wrapwidth) - Sets the wrapping width for future HUD messages without
altering the clipping rectangle. If you set the wrapping width to 0, messages will wrap
to the full width of the HUD, as normal.
* HUDMSG_NOWRAP - A HUDMessage() flag that disables wrapping for one message. It is
functionally equivalent to SetHUDWrapWidth(0x7FFFFFFF), except that it only affects the
message it's attached to.
SVN r3960 (trunk)
be no conflicts with recently-added named arguments for spawnable things on UDMF maps.
- Change the SpawnableThings array into a map, so there is no longer any particular upper limit on an actor's SpawnID. Also fixes a possible exploit, since an actor's SpawnID was never checked to make sure it was within range.
SVN r3959 (trunk)
OPL2; OPLwriteReg() will now do nothing when called to act on a chip that doesn't exist. This
is so that it can use the second half of a single OPL3.
SVN r3949 (trunk)
but only supports three pan positions and not the full 127 MIDI pan positions.
- Added opl_core cvar to select emulator core. 0 is MAME and 1 is DOSBox.
- Added DOSBox's LGPL OPL core, distantly related to one adlibemu.c written by Ken Silverman
(not to be confused with the ancient MAME-derived and GPL-licensed core also found in DOSBox).
I believe this corresponds to their "compat" emulator, but I'm not sure.
SVN r3946 (trunk)
really long names to -record. On the other hand, if it's long enough to overflow the old
buffer, it'll probably fail to be created now because the name is too long for the OS
functions.
SVN r3936 (trunk)
Full stereo panning for the MIDI player. (The raw OPL players are unaffected.) To get the
mono output back, you can set opl_stereo to false.
- Changed SoftSynthMIDIDevice::OpenStream() to allocate the same number of samples for stereo
and mono streams.
SVN r3929 (trunk)
were created, so they were all NULL, and the Dehacked ammo modification loop failed to
find any of them in the weapon. The result being that all standard weapons were left with an
AmmoUse1 of 0.
SVN r3925 (scripting)
the DObject serialization template. Therefore, FArchive::SerializeObject() needs to be
able to handle them specially from other objects.
SVN r3924 (scripting)
- Changed Actor's Damage property into an actual function. All access to the damage property
must now be done through GetMissileDamage. actor->GetMissileDamage(0, 1) is equivalent
to the former actor->Damage, for the case where actor->Damage was not an expression. (I
suppose I will probably need to make a thunk for DECORATE expressions that want to read it.)
- Cleaned up some decorate expression evaluation functions that are no longer used.
SVN r3919 (scripting)
actors with names that conflicted with preceding actors from being freed, even though they
can still be accessed via PClassActor::AllActorClasses, which gets iterated over in a number
of places. (e.g. Zen Dynamics defines a Grenade actor, although there is one in zdoom.pk3 now.
The Zen Dynamics' version would not go in the TypeTable, so it would be collected on map load,
leading to a crash when attempts to access it through AllActorClasses are made.)
SVN r3908 (scripting)
one name in its label. This avoids the alloca and security cookie calls.
- Consolidated lots of copy-pasted code in thingdef_expression.cpp to install helper functions
into FindDecorateBuiltinFunction().
SVN r3907 (scripting)
about this now. I spent three days trying to figure out why the VC++ debug version was so slow.
It turns out I had a conditional breakpoint set in a high-traffic area. D'oh!
The rest of this stuff should get merged into trunk:
- Fixed: Writing to debugfile uses the standard fprintf, which does not understand %td on VC++.
- Fixed: Instead of crashing when a sprite has been scaled to 0, just don't draw it.
SVN r3896 (scripting)
become ungodly slow when using mods with complex DECORATE. The GCC debug builds run just
fine, however. Hopefully this is something that can be fixed later with an assembly-optimized
version of the main VM loop, because I don't relish the thought of being stuck with GDB
for debugging.)
- Fixed: The ACS_Named* action specials were erroneously defined as taking strings instead of
names.
- Fixed: Copy-paste error caused FxMultiNameState::Emit to generate code that called
DecoNameToClass instead of DecoFindMultiNameState.
- Updated FxActionSpecialCall::Emit for named script specials.
- Fixed inverted asserts for FxMinusSign::Emit and FxUnaryNotBitwise::Emit.
SVN r3893 (scripting)
that it can't be used as an infinite source of ammo when sv_weaponstay is true).
- Fixed: WeaponGiver should not remember the given weapon after it is picked up (to avoid giving
a weapon owned by one player to a different player when sv_weaponstay is true).
SVN r3886 (trunk)