portej05
98f337f701
safe_strings - from Antipodes build #1
2009-07-27 16:06:24 +00:00
portej05
6a8d45c93d
Replace most instances of std::vector with SCP_vector. Memory is now all run through vm_malloc and vm_free.
...
Watch it go up AND down in mission.
2009-07-11 07:07:57 +00:00
portej05
719825f80d
The big CVS comment removal. This chops approx. 3.5mb off a full checkout.
...
I've tested this through compiling and through hand checking.
Normalises line endings in ALL files to \n.
2009-06-20 08:08:20 +00:00
taylor
390b00d52f
use strrchr() to be sure that we get the last occurance of any "." (Mantis #1587 )
2008-03-28 02:18:59 +00:00
taylor
75818371d0
make sound_buffers[] dynamic (part 1 of trying to better handle mods with lots of voice acting, like BtRL)
...
re-enable DirectSoundCapture for OpenAL builds, at least until I write the OpenAL version of capture (Mantis #1378 )
2007-10-29 15:32:19 +00:00
taylor
27b25d8e12
support for new finding/loading of sound files
...
add support for automatically figuring out samples-per-measure based on Goober's explanation in the Wiki (not sure if it's actually right though)
remove NO_SOUND
2007-02-11 09:56:25 +00:00
taylor
ef00ba4354
fix some sound state stuff that was leading to crashes in OS X and undefined behavior in Windows (this isn't all that pretty, but will handled properly in post-3.6.9 revised code)
2006-12-26 05:31:22 +00:00
taylor
85083d163d
various sound fixes/changes, mainly for OS X fixage
2006-12-07 18:24:43 +00:00
wmcoolmon
83b502b302
Fix OGG bug where sound files were always allocated 16 seconds of wavedata
2006-10-06 04:58:25 +00:00
taylor
eda555d773
cleanup
...
bugfixes
error-handling
(lots of crap got fixed to work better, and lets leave it at that, the commit log would be too long otherwise :))
2006-08-19 04:31:24 +00:00
taylor
4a867fe2bc
require OpenAL 1.1 under Windows, I think it's causing problems for us to mix users with 1.0 and builds for 1.1
...
(having 1.0 is fatal to sound, but the game should still work, a corresponding Launcher change goes with this too)
clean up some of the error messages to not say "DirectSound" is doing this or that, just say "Audio" instead
2006-07-08 18:10:59 +00:00
taylor
6205a0d053
some better handling of OpenAL errors during init
2006-07-06 21:56:18 +00:00
taylor
fc765d5e29
fix various things that Valgrind has been complaining about
2006-06-22 14:59:45 +00:00
taylor
a34707fbe4
make sure we can report both AL and ALC errors
...
fix for ds_get_free_channel(), it shouldn't return -1 on an AL error
2006-06-18 16:52:04 +00:00
taylor
b82223a18f
sync up current OpenAL changes
...
- "SoundDeviceOAL" reg option for user specified sound device (used instead of "Soundcard" for OpenAL)
- reset current context when we are leaving, may be leaving drivers in a bad state, and it hasn't hung up in quite a while
- if sound card (which DS or OAL) is set to "no sound" then be sure to disable both sound and music
2006-06-12 03:40:26 +00:00
taylor
81dab9c506
make sure to use software device rather than hardware since we don't currently handle source rotation/reuse properly between ds and audiostr code
2006-06-01 07:33:00 +00:00
taylor
0968449eed
put back listener setup for each sound, doesn't make a difference under Linux but it may be hurting Windows for some reason
2006-06-01 04:46:18 +00:00
taylor
b10c96d9e2
bah! this thing is crashing. disable for now until I can figure out what's going on
2006-05-31 04:01:13 +00:00
Goober5000
02739c5393
whoops, didn't mean to commit that
2006-05-31 03:27:19 +00:00
Goober5000
3d73663123
some cosmetic changes in preparation for bay arrival/departure code
...
--Goober5000
2006-05-31 03:05:43 +00:00
taylor
275c656fd7
remove non-Windows timeSetEvent() functions
...
make PDWORD and LPDWORD int instead of long (64-bit issue) (thanks Spike)
fix 64-bit ptr issue with OpenAL audio streaming code (thanks Spike)
add start of device enumberation for OpenAL 1.1 (it just lists available devices now)
make sure we open the default OpenAL 1.1 device under Windows
comment out blank listener stuff, this may have been crashing under OS X
add support for AL_BYTE_OFFSET in OpenAL 1.1 for buffer positioning under Windows
2006-05-27 16:39:40 +00:00
Goober5000
7e41877b7b
proper capitalization according to Volition
2006-04-20 06:32:30 +00:00
taylor
a79daa2285
something that Valgrind complained about
2006-04-14 18:39:38 +00:00
taylor
7a0228fefe
remove alut headers, since we don't use any alut functions anyway (didn't I already do this a couple of months ago??)
2006-03-15 17:30:47 +00:00
taylor
b618a74072
make sure to init dest and dest_size for any calling functions that don't
2006-01-30 07:14:32 +00:00
taylor
4fd616b2c5
cleanup some debug log messages:
...
note that a nprintf() with "Warning" or "General" is basically the same thing as mprintf()
make sure that OpenAL init failures always get to the debug log
2005-12-06 03:17:48 +00:00
taylor
8855e5dfde
now able to build with OpenAL 1.0 and 1.1 thanks to newer OpenAL CVS changes (patch from icculus.org FS2 mailing list)
2005-11-14 05:12:01 +00:00
wmcoolmon
acd09d9daf
Fix redmenace's compile problem
2005-10-17 02:09:29 +00:00
wmcoolmon
54ff9951c9
Change this back for MSVC.NET?
2005-10-17 00:02:46 +00:00
taylor
8d5524caad
fix a couple of things that Valgrind complained about
2005-09-20 02:48:37 +00:00
taylor
cdc9651d1b
we only care about fmt and data tags so once we have them bail out, fixes some really bad seek errors in crappy wav files
2005-07-31 01:35:43 +00:00
taylor
8c77de35ce
OGG streaming fixes to get data reading right and avoid skipping
...
properly handle seeking in OGG streams
compiler warning fix in OpenAL builds
2005-06-19 02:45:56 +00:00
wmcoolmon
5acb5295d9
Cast to quiet error
2005-06-02 01:56:32 +00:00
taylor
cee7b62c98
bit of cleanup for audiostr-openal and fix a Windows-only enum error
...
bunch of OGG related fixes for Linux and Windows (DirectSound and OpenAL), fixes audio related TBP 3.2 crashes
gracefully handle OGG logical bitstream changes, shouldn't even load if there is more than 1
2005-06-01 09:41:14 +00:00
taylor
a9570a7646
the Loki extensions are Linux only so don't even bother checking under Windows, the
...
new spec has a cross-platform way of getting the same thing so this isn't a big deal
2005-05-26 04:32:31 +00:00
taylor
64a0cc64a9
use vm_malloc(), vm_free(), vm_realloc(), vm_strdup() rather than system named macros
...
fixes various problems and is past time to make the switch
fix a few streaming errors in OpenAL code (Jens Granseuer)
temporary change to help deal with missing music in OpenAL Windows builds
don't assert when si->data is NULL unless we really need to check (OpenAL only)
2005-05-12 17:47:57 +00:00
wmcoolmon
611f4cb1e8
Cleared up some ambiguity that made MSVC 2003 go on strike
2005-04-28 05:12:26 +00:00
taylor
d3f18e16a1
possible dev/0 bug fix (Jens Granseuer)
2005-04-24 12:45:14 +00:00
taylor
f08b263d74
more accurate play position for OpenAL when AL_BYTE_LOKI is used (Jens Granseuer)
2005-04-18 03:30:05 +00:00
Goober5000
0203839ba2
fixed the compile errors (thanks Phreak)
...
--Goober5000
2005-04-13 22:31:53 +00:00
taylor
31d59d3c11
remove acm-unix.cpp, replaced by acm-openal.cpp since it's properly cross-platform now
...
better error handling for OpenAL functions
Windows can now build properly with OpenAL
extra check to make sure we don't try and use too many hardware bases sources
fix memory error from OpenAL extension list in certain instances
2005-04-05 11:48:23 +00:00
taylor
7f786136a6
s/vector/vec3d/g, better support for different compilers (Jens Granseuer)
2005-04-05 05:53:25 +00:00
taylor
ba3b396747
fix hanging on exit with OpenAL
...
some better error handling on OpenAL init and make it more Windows friendly too
basic 3d sound stuff for OpenAL, not working right yet
2005-04-01 07:33:08 +00:00
taylor
29c36b04e9
fix to snd_time_remaining() to make sure we are getting the correct index into Sounds[]
2005-03-28 00:40:09 +00:00
taylor
7f9ddca157
don't use a platform specific ifdef since the OpenAL code may work under Windows now too
2005-03-27 06:16:46 +00:00
taylor
c253042a4a
make sounds.tbl dynamic
...
have snd_time_remaining() be less stupid
some OpenAL error fixerage
be able to turn off some typically useless debug messages
2005-03-24 23:27:26 +00:00
taylor
bf40c2ebff
merge with Linux/OSX tree - p0202
2005-02-02 10:36:23 +00:00
wmcoolmon
e3b6c53f4a
OGG fixes, ship selection fixes
2005-01-18 01:14:17 +00:00
wmcoolmon
42c5d6978d
Sound quality in Freespace 2 is now controlled by SoundSampleBits, and SoundSampleRate. Also, some sounds will use hardware rather than software buffers if available.
2005-01-08 10:00:59 +00:00
wmcoolmon
fee35f7ea1
Quick update to tempfix possible bug.
2004-12-25 17:45:38 +00:00