Commit graph

845 commits

Author SHA1 Message Date
sezero
6d340ff733 snd_mp3.c (mp3_startread): don't error upon a short read
as it may be a short but still a valid file.


git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@860 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-07-23 17:01:20 +00:00
sezero
aad0ec327a * snd_codec: store the samplebits value in the snd_info_t struct,
and add a new blocksize field to it which the flac decoder can
use. updated decoder sources for the snd_info_t changes, where
I made minor tidy-ups too, tightening several format checks and
fixing a few gotchas in snd_wave.c and snd_mem.c.
* snd_flac.c: adjusted for snd_info_t changes. no longed storing
metadata->data.stream_info in our private data, but just storing
a pointer to the stream->info structure. No longer checking the
metadata total_samples field (the FLAC__StreamMetadata_StreamInfo
doesn't seem to have any alignment or pack attributes and I don't
safe with its offset across different compilers), but added check
to make sure that we hit and parsed a STREAMINFO metadata instead,
and our new state seems just fine for validating the file.


git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@859 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-07-22 11:41:14 +00:00
sezero
a99bea5110 updated Xcode project file for fLaC music support, thanks to Kristian Duske.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@858 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-07-21 17:02:42 +00:00
sezero
2d0fe10abf added flac music support.
it is not enabled by default, edit the Makefile for USE_CODEC_FLAC,
or add USE_CODEC_FLAC=1 to your make command line arguments. Xcode
project file still needs updating for this.

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@857 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-07-21 14:02:06 +00:00
sezero
c91aa79b99 merged the opus codec support patch
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@856 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-07-18 07:03:11 +00:00
sezero
0298b3c2f9 oslibs: macosx, windows: recompile libopusfile, using the latest
from xiph.org git repo.

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@855 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-07-17 12:51:34 +00:00
sezero
7c5757c6af oslibs:macosx,windows: recompile libopus using the latest stable v1.0.3 release
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@854 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-07-12 20:29:36 +00:00
sezero
705a026657 bump default heap size to 72mb and zone size to 512kb in 64 bit builds.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@853 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-07-09 05:50:04 +00:00
sezero
5ff7728c53 oslibs: updated msinttypes to r29 from mainstream googlecode.com
repository.

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@852 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-06-24 08:10:12 +00:00
sezero
8dd06bd22d * oslibs: macosx, windows: recompile libopus using the latest stable
1.0.x branch from xiph.org git repository.
* oslibs, windows: recompile libmpg123 from latest 1.15.4 version.

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@851 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-05-25 11:32:21 +00:00
sezero
6f66ac04ef oslibs: macosx, windows: recompile libogg, libopus and libopusfile
using latest stable branches from xiph.org git repository.

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@850 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-05-16 11:40:35 +00:00
sezero
dc04626b89 bumped version to 0.85.10 in the development tree.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@849 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-04-12 20:25:45 +00:00
sezero
d3fd44b188 support for demo recording after connection to server. (thanks to
Baker for a patch)

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@847 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-04-12 09:01:18 +00:00
sezero
2bd0d9f9ea update docs for 0.85.9 changes
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@846 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-04-12 07:04:18 +00:00
sezero
2e6251771a recompiled libogg-1.3.0 with patch from xiph.org svn rev.18758 applied.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@845 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-04-10 00:22:18 +00:00
sezero
4e08e28c8c updated svn links in the README file after the sf.net's allura upgrade
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@844 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-04-07 09:56:44 +00:00
sezero
8c09cfde41 keys.c (Key_Message): move backspace handling before non-printable
check. (the functionality doesn't change. from tyrquake git repo.)
minor tidy-up.

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@843 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-04-02 21:40:48 +00:00
sezero
d5c22884ab r_part.c (R_EntityParticles): fix undefined behavior in the loop
init'ing avelocities, thanks to a -Waggressive-loop-optimizations
warning from gcc-4.8.

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@842 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-15 12:47:08 +00:00
sezero
1aab55dd25 gl_model.c: change the 'ignored' messages from external lit and ent
files back to developer mode.

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@841 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-10 11:29:02 +00:00
svdijk
cf7c75c918 gl_vidsdl.c: minor cleanup (lets not hijack the SDL_ prefix)
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@840 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-03 15:01:14 +00:00
svdijk
e01f49c52c gl_vidsdl.c: some video menu code readability tweaking
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@839 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-03 13:43:11 +00:00
svdijk
e82eb5b316 gl_screen.c: some fov_adapt style syncing with uhexen2
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@838 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 18:52:22 +00:00
svdijk
b94d90a17a keys.c: comment correction
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@837 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 18:21:28 +00:00
svdijk
82c9ada692 gl_vidsdl.c: be bit more lenient (and safer) regarding bpp
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@836 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 18:10:19 +00:00
svdijk
4e456daefe gl_vidsdl.c: fix a minor inconsistency in VID_Toggle
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@835 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 16:35:48 +00:00
svdijk
32aa20516d gl_vidsdl.c: make the intel hack feedback a bit more informative
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@834 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 15:32:27 +00:00
svdijk
a6887965d8 gl_vidsdl.c: remove the PowerVR stuff, as it seems to be outdated
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@833 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 13:46:59 +00:00
svdijk
6c60cde973 oops
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@832 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 13:13:47 +00:00
svdijk
839106a2c5 Simplify the Intel video hack, make the PowerVR hack do the same
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@831 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 13:10:02 +00:00
svdijk
d494526318 remove isIntelVideo special handling, simply set gl_clear instead
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@830 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 12:31:09 +00:00
sezero
2f47c57897 minor tidy-ups
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@829 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 12:03:52 +00:00
svdijk
e194235c7a host_cmd.c: fix typo in r827
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@828 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 10:36:28 +00:00
sezero
7aec459b09 host_cmd.c (Host_Changelevel_f, Host_Restart_f): if the serverspawn
fails even with an existing map, issue a Host_Error().

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@827 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 10:29:26 +00:00
svdijk
a275c2d76f revert r612, fix VID_Test blackscreen properly
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@826 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 09:34:18 +00:00
sezero
137d3c2141 fixed fitzquake's map existence check in Host_Changelevel_f () leaking
file handles which would end up in a Sys_Error () due to consuming all
free handles if many maps reside not in pak files.

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@825 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-01 23:55:12 +00:00
sezero
9c68a73726 Opus decoding support (as an optional patch only.)
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@824 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-28 12:55:16 +00:00
sezero
e9ec96a3d9 some codec stuff syncing with uhexen2
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@823 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-27 16:50:25 +00:00
sezero
3606e6d33f putenv () may conform to different standards, therefore keep the vid_center[]
static char array in VID_Init ().

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@822 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-24 17:15:04 +00:00
svdijk
39fdcc00f2 gl_vidsdl.c: make bpp default to current bpp
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@821 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-24 16:28:28 +00:00
svdijk
1e8f64eac6 gl_vidsdl.c: fix an initialization oops
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@820 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-24 13:46:19 +00:00
svdijk
b4af76b94c gl_vidsdl.c, vid.h: cleanup some modestate related stuff (requires a clean build)
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@819 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-24 13:42:23 +00:00
svdijk
a1109b24fd gl_vidsdl.c: remove modelist[0] special treatment, some cleanup
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@818 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-24 13:33:30 +00:00
svdijk
f2f5b05881 gl_vidsdl.c: make VID_Init independent from modelist
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@817 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-24 13:23:26 +00:00
svdijk
a4c884a109 gl_vidsdl.c: some cleanup
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@816 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-21 19:35:21 +00:00
svdijk
29d86e78ce gl_vidsdl.c: fix ValidMode(), bpp < 16 is problematic on windows
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@815 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-21 19:17:18 +00:00
sezero
f6c81660fa comment cleanup
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@814 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-20 06:22:42 +00:00
sezero
bb9768bec6 convert our GL_RGB lightmaps to GL_RGBA which gives considerable
performance boost on some systems. add GL_BGRA as an option, thanks
to Kristian Duske. the format is hardcoded as GL_RGBA for now,
need a way to make it configurable later.

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@813 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-20 06:01:10 +00:00
svdijk
f6d3705a0f gl_vidsdl.c: make VID_Restart independent from modelist
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@812 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-19 19:20:17 +00:00
svdijk
35392155f2 gl_vidsdl.c: make VID_Test independent from modelist
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@811 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-19 19:00:19 +00:00
svdijk
1716036c34 gl_vidsdl.c: some cleanup
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@810 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-19 18:18:38 +00:00