Zack Middleton
203ab7b9af
Fix cinematics often being silent on OS X
...
If OpenAL source isn't playing, often what happens is: queued buffers is 0 and processed buffers is non-0.
S_AL_StreamUpdate won't play the steam if queued buffers 0.
So start the stream in S_AL_RawSamples.
2013-11-11 00:21:53 -06:00
Zack Middleton
b3bd74fce7
Fix restoring loop sound position on OS X
...
The default OpenAL library on OS X errors AL_INVALID_VALUE for AL_SEC_OFFSET if source isn't playing.
2013-11-10 23:28:54 -06:00
Zack Middleton
5795be68f6
Make OpenAL buffer management work on OS X
...
Don't assume we have unlimited OpenAL buffers.
Detach buffers from sources by setting AL_BUFFER to 0. Cannot delete buffers on OS X immediately after alSourceUnqueueBuffers.
Free unprocessed stream and music buffers.
Free unused sfx buffers when sound file exists and fails loading into OpenAL (though I haven't seen it fail).
2013-11-10 22:55:35 -06:00
Zack Middleton
2d45e57068
Support FS_SEEK_END and negative offset for zipped files in FS_Seek
...
Use FS_SEEK_END in sound code instead of working around it.
If FS_SEEK_SET and going to current position, just return.
2013-11-08 18:43:34 -06:00
Tim Angus
7ae49cc237
Fix video recording sync drift (patch refactored but original author unknown)
2013-11-02 19:11:14 +00:00
Zack Middleton
e0a42885d9
Clear more variables in CL_InitServerInfo
...
Have cls.localServers use CL_InitServerInfo.
Don't set cls.localServers netType to from.type, it's the wrong value.
Note: server->visible is not cleared in CL_InitServerInfo, as stated by a comment below a place where CL_InitServerInfo is used.
2013-10-28 15:23:01 -05:00
Zack Middleton
a836c2db89
Drop sounds starting with * before allocating sfx slot
...
Causes handle 0 to be returned by S_RegisterSound.
2013-10-09 09:51:32 -05:00
Zack Middleton
d4c6711e51
Fix "bind <key>" message for unbound keys
...
"bind X cmd; unbind X; bind X" now says '"x" is unbound' instead of '"x" = ""'
2013-08-16 15:41:01 -05:00
Zack Middleton
3d69ae9995
Fix OpenAL music stop issues using stream stop code
...
S_AL_StopBackgroundTrack would sometimes generate AL errors.
S_AL_MusicSourceFree needs to kill source or next track may have short looping buffer.
2013-08-16 15:29:12 -05:00
Zack Middleton
3518e7b22e
Fix bind commands getting run when closing UI
...
Introduced in commit "Add togglemenu command" bf2b04.
Don't let UI key event changing key catcher affect bind parsing. Bind parsing itself will never change the key catcher.
Example of issue: if mouse1 is bound to +attack when clicking Resume Game, player will shoot until releasing the mouse button.
Mouse button should have to be released and pressed again before player will shoot.
2013-07-22 17:44:28 -05:00
Zack Middleton
4776fb4767
(bug #5984 ) Unload renderer lib
2013-07-08 16:36:30 -06:00
Zack Middleton
6b13806066
Fix getting servers from and being listed on id's q3 master server
...
Use q3 master protocol when com_gamename is Quake3Arena (the default), otherwise use dpmaster protocol.
2013-07-07 16:31:36 -05:00
Zack Middleton
2937ac7661
Allow adjusting VoIP gain and mute during SP demo playback
2013-06-04 23:19:47 -05:00
Zack Middleton
e89a1b9f8e
Allow adjusting VoIP gain and mute during demo playback
2013-06-04 23:02:23 -05:00
Zack Middleton
21c93736b8
Allow recording VoIP in SP for demo commentaries
2013-06-04 22:28:46 -05:00
/dev/humancontroller
9d626b6a12
drop some useless return statements
2013-05-30 15:43:21 -05:00
/dev/humancontroller
bbd17d75ce
reduce the amount of compiler warnings for variable shadowing
2013-05-30 15:43:20 -05:00
/dev/humancontroller
1d0a044de3
when using the condump command, do not say "dumped console text" prematurely, before trying to open the file
2013-05-30 15:41:19 -05:00
/dev/humancontroller
f0b43aba35
remove some unused stuff
2013-05-30 15:41:19 -05:00
Jonathan Gray
3234d2b141
dlopen libopenal.so not libopenal.so.1 on OpenBSD
2013-05-05 11:28:54 +10:00
Zack Middleton
936db459ee
Don't allow modifying qvms or pk3s
...
Exception for allowing pk3s to be downloaded.
2013-04-24 14:11:18 -05:00
Tim Angus
98360bcd57
Fix some of the things clang --analyze flagged
2013-03-26 16:50:03 +00:00
Zack Middleton
b009528e6a
Fix displaying demo name when loading demo
2013-03-09 15:58:35 -06:00
Zack Middleton
fe0a65e52e
Show lowercased ascii in bind command
2013-03-03 19:14:36 -06:00
Zack Middleton
a18ae32a5e
Fix Key_StringToKeynum to return lowercased ascii
...
Fixes bind and unbind uppercase ascii and uppercase ascii in cl_consoleKeys.
keycodes.h states "normal keys should be passed as lowercased ascii"
2013-03-03 19:07:44 -06:00
Zack Middleton
eb7e554c46
Fix comment in snd_codec_opus.c
2013-02-27 15:31:26 -06:00
Zack Middleton
3dd5c5d862
Add Ogg Opus support
2013-02-17 18:32:05 -06:00
Tim Angus
d201443350
Remove a few name tags
2013-02-16 21:03:56 +00:00
Ensiform
3041eee0cf
condump improvements
...
Default output file extension to ".txt"
Show output filename in error message.
Use Windows line endings on Windows.
Dynamically allocate line buffer. (by ZTM)
2013-02-15 22:49:08 -06:00
Ensiform
e5f7e1de52
Remove unneeded variable extern
2013-02-15 22:03:34 -06:00
Tim Angus
f6fb9eb602
renderer -> renderergl1, rend2 -> renderergl2
2013-02-15 23:46:37 +00:00
Zack Middleton
c0d5ba9e06
Fix compiling
2013-02-11 20:45:17 -06:00
Zack Middleton
91194bfc3e
Fix possible delta from invalid entity
2013-02-11 20:36:14 -06:00
Zack Middleton
ac621642ac
Unify/cleanup max snapshot entities on client and server
2013-02-11 15:49:47 -06:00
Zack Middleton
7b34987823
Fix resolving IPv6 favorites in Team Arena UI
2013-02-08 16:47:27 -06:00
Tim Angus
51df89ab13
Remove the SMP renderer feature
2013-01-24 22:53:08 +00:00
Jeremy Davis
3f489fe5f2
Make UI_CVAR_CREATE use VM specific code
...
Makes cvar be flagged as VM created and unset ROM if ARCHIVE is set.
2013-01-17 15:21:29 -06:00
Zack Middleton
9c701a781b
Run toggleconsole in binds while in menu or message mode
2013-01-16 23:06:35 -06:00
Zack Middleton
bf2b04254a
Add togglemenu command
...
Allow togglemenu to be run in binds while in menu or message mode.
2013-01-16 23:03:09 -06:00
Zack Middleton
26b1fcc471
Save all arguments from connect for reconnect command.
...
Remove unnecessary localhost check from reconnect command.
2012-12-16 19:20:08 +00:00
Zack Middleton
aac23d6934
Fix reconnect command to work after leaving server. ( #5794 )
2012-12-15 23:33:02 +00:00
Zack Middleton
d79ea2e5cd
- Allow changing cl_voip without restarting.
...
- Fix assert failing in CL_ParseVoip() while flipping cl_voip off and on.
2012-12-14 07:32:07 +00:00
Zack Middleton
7786f95c06
Fix writting voip data in demos (broke in r2102).
2012-12-13 05:25:50 +00:00
Zack Middleton
10a574e6ed
Remove unused function CL_DisconnectPacket. Pointed out by Ensiform.
2012-11-24 20:55:47 +00:00
Zack Middleton
3da8779180
- Check for invalid filename in OpenAL's RegisterSound function.
...
- Changed Base sound system to warn not error when sound filename is empty or too long.
2012-11-19 00:40:03 +00:00
Zack Middleton
6c1045a003
Remove unneeded name buffer in S_Play_f.
2012-11-18 23:30:26 +00:00
Zack Middleton
d9bea4977b
Improve "play" command, based on a patch from Ensiform.
2012-11-18 23:16:13 +00:00
Zack Middleton
98f04d39a6
#5799 - Change messagemode text box to display colors like in console input box.
2012-11-18 22:24:15 +00:00
Zack Middleton
05bc03d32d
Remove anti tamper leftover code 'CL_ChangeReliableCommand'. From Ensiform.
2012-11-18 22:12:30 +00:00
Zack Middleton
f13a87daad
Change error message in CL_ConfigstringModified to specify out of range index like in server.
2012-11-18 19:14:07 +00:00