Goober5000
a916633b46
onlyjob's spelling fixes, per Mantis #2777
2013-01-13 09:50:08 +00:00
IssMneur
76a889a027
Fixes 2266 by reverting ds_get_free_channel to retail
2012-08-16 04:42:21 +00:00
Valathil
21de0f9f73
Fixed the annoying OpenAL error messages in the log. AL_DOPPLER_FACTOR is only valid for alGet. Changed all instances to the correct alDopplerFactor.
2012-02-07 19:12:21 +00:00
Echelon9
8543045b15
STL types again. Some of these are just inefficient, like reserving one extra slot for each additional element, and then pushing that element onto the STL type
2011-10-17 13:07:24 +00:00
Echelon9
6d4f266e52
Use SCP_* types to access STL types wherever possible. This allows more complete memory monitoring
2011-10-03 09:06:56 +00:00
Zacam
b306018b92
This is now in the .14 Branch, we'll keep it there and leave the "final" code for putting to Trunk when AP is merged/Final is released.
2011-09-27 21:23:46 +00:00
IssMneur
3ec2689d39
A bunch of audio code hacks to address the concerns in http://www.hard-light.net/forums/index.php?topic=77889.0 until proper fixes of the sound code are completed.
...
+F -donotenforce = to turn off concurrent playback limit for sounds.
+F -percent_flashtobang = sets the default percentage of nebula flashes get converted to bangs. Default is 50, max 100, min 0.
+T lightning.tbl +flash_to_bang_percent: = sets the percentage of nebula flashes that get converted to bangs for the storm type.
-- Audio gain of OpenAL is set to 65% of max.
2011-09-27 03:04:11 +00:00
The_E
834e383c26
Marking a bunch of PVS Studio warnings as false alarms. While the warnings are technically correct, none of these are in places where performance matters.
2011-09-04 12:31:33 +00:00
Echelon9
d208740bcd
PVS-Studio fix: V524 It is odd that the body of 'ds_eax_set_preset' function is fully equivalent to the body of 'ds_eax_set_environment' function (ds.cpp, line 2091).
2011-08-24 15:06:22 +00:00
Echelon9
a248a37d58
PVS-Studio: Fix V805. Decreased performance. It is inefficient to identify an empty string by using 'strlen(str) > 0' construct
2011-08-24 13:37:01 +00:00
Echelon9
e55068ccf1
ds.cpp: Back this change back out until the wholesale change can be made at once
2011-05-01 14:59:31 +00:00
Echelon9
aa708f6d26
Fix Valgrind report: Use of uninitialised value &freq in alcGetIntergerv(); requires braces to address GCC crosses initialisation error due to the goto in this function
2011-05-01 11:07:26 +00:00
Echelon9
aa1601bb36
Documentation: Fix a few syntax errors reported in Doxygen's log
2011-05-01 03:54:01 +00:00
Echelon9
09a360c284
Documentation: sound/ds.cpp
2011-04-30 06:18:03 +00:00
Zacam
81bf3cec47
Reverts commits 6681, 6683 and 6684. Adds C4101 Warning suppression for Release Builds (only) so that "catch" doesn't cause an unreferenced parameter warning.
2010-12-13 05:51:49 +00:00
The_E
727da9031c
Fix for Mantis 2329 (Malloc fail on invalid sound files)
2010-11-06 04:44:17 +00:00
Zacam
c45f22ff98
...and then it helps to actually initialize it to something.
2010-10-25 03:59:15 +00:00
Zacam
252f2b4e6c
Should have paid more attention on that last one, need to define what 'err' is outside of where it is.
2010-10-25 03:54:48 +00:00
Zacam
b64d1991e1
Fix for Release Build warning for 'err'
2010-10-25 03:43:02 +00:00
Zacam
0050b48e80
Clears up the rest of the type conversion warnings listed in MSVC.
2010-10-25 03:26:03 +00:00
IssMneur
85c4032ef7
Added a couple of mprintf lines to help diagnose where exactly Openal fails to load.
2010-10-15 17:20:50 +00:00
Zacam
53a78a859b
Warning Fix: (audiostr.cpp "WaveFile::Read" / ds.cpp "ds_load_buffer")
...
Sets 'float **pcm' to start as NULL
2010-10-08 23:30:15 +00:00
taylor
f7d8b9ef26
only need half size for mono buffer memory
2010-10-01 16:42:04 +00:00
taylor
04cac71fe9
revert r6151
...
Per source doppler factor is part of the EFX spec, which means all full 1.1 implementations.
2010-06-01 02:44:15 +00:00
The_E
4bee746897
According to the OpenAL programmer's guide, AL_DOPPLER_FACTOR is not a valid parameter for alSourcef
2010-05-31 10:38:00 +00:00
taylor
0a17554c4f
disable doppler for the time being
2010-05-29 15:53:24 +00:00
taylor
b287ecfef9
new sound code
...
- Mantis #58
- Mantis #1769
- many other fixes and improvements
2010-05-29 15:53:18 +00:00
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