Erik Hofman
3496d64a52
sounds tied to listeners are never out of range
2011-12-30 11:16:58 +01:00
Erik Hofman
cc2234bf54
Degarde lack of free sounds message from alert to bulk for this release.
2011-12-24 11:13:49 +01:00
Erik Hofman
368d280da2
surpress unitialized variuable warning for SGSphere() only
2011-12-20 10:08:20 +01:00
Erik Hofman
4faf727f1b
Do not initialize _center to save unneeded initialization time.
2011-12-20 10:00:33 +01:00
Erik Hofman
f28e472f59
Throw a warning even is NDEBUG is defined
2011-12-19 15:34:11 +01:00
Erik Hofman
69c5d5c86e
Intialize to prevent a 'may be used uninitialized' warning
2011-12-19 15:29:25 +01:00
Erik Hofman
f9332b813e
Intialize to prevent a 'may be used uninitialized' warning
2011-12-19 15:28:11 +01:00
Erik Hofman
052ce499c9
Intialize the center to prevent a 'may be used uninitialized' warning
2011-12-19 15:25:58 +01:00
Erik Hofman
a92ea7f822
No need to start non looping samples automatically when getting in-range.
2011-12-13 11:40:08 +01:00
Erik Hofman
b57b223a59
Add an out_of_range property to sound samples. If set the sound is set to non playing (which allows the OpenAL sound the be free'd)
2011-12-13 11:09:12 +01:00
Erik Hofman
f377c75dbd
Add vi(m) .swp files and a [Bb]uild directory
2011-12-12 13:20:49 +01:00
Erik Hofman
8d3de8dee5
Free OpenAL sounds of objects that are farther away than the max_distance.
2011-12-12 13:19:43 +01:00
Erik Hofman
ff2eb6d2d3
Properly handle stereo wav files; remove data buffer and set buffer to FAILED_BUFFER
2011-12-07 10:41:57 +01:00
Erik Hofman
3c9fec78fa
Slightly rearrange the buffer removing code. This should make sure the source is always stopped (required by the OpenAL spec) before a buffer is removed and added to the free source list.
2011-11-23 09:41:13 +01:00
Erik Hofman
0a08ee836c
Merge branch 'next' of git://gitorious.org/fg/simgear into next
2011-11-20 19:08:04 +01:00
Erik Hofman
a0fd942048
Merge branch 'next' of git://gitorious.org/fg/simgear into next
2011-11-20 10:19:52 +01:00
Erik Hofman
8727e609f0
Also stop the source if it is paused when exit.
2011-11-10 12:52:17 +01:00
Erik Hofman
40fc2907a1
Merge branch 'next' of git://gitorious.org/fg/simgear into next
2011-11-10 10:29:07 +01:00
Erik Hofman
bb2cc6ef2d
Merge branch 'next' of git://gitorious.org/fg/simgear into next
2011-11-05 11:41:07 +01:00
Erik Hofman
110753e92c
Merge branch 'next' of git://gitorious.org/fg/simgear into next
2011-10-30 10:40:00 +01:00
Erik Hofman
c53989adb8
Merge branch 'next' of git://gitorious.org/fg/simgear into next
2011-10-23 10:39:26 +02:00
Erik Hofman
3104898c7c
Merge branch 'next' of git://gitorious.org/fg/simgear into next
2011-10-18 18:32:57 +02:00
Erik Hofman
cd8e7a1030
Warn for stereo files.
2011-10-03 08:34:20 +02:00
Erik Hofman
5229f5a13c
Lauri Peltonen's patch to increase the number of rings and bands of the sky dome
2011-04-16 11:32:34 +02:00
Erik Hofman
c33f66b691
Merge branch 'next' of git://gitorious.org/fg/simgear into next
2010-12-13 18:40:39 +01:00
Erik Hofman
cf8d6c2621
Remove unused files
2010-12-13 18:40:08 +01:00
Erik Hofman
7d77eff4f4
Merge branch 'next' of git://gitorious.org/fg/simgear into next
2010-12-12 20:23:08 +01:00
Erik Hofman
f83278bd61
Update the bad-doppler test and simplify it to only test for bad platforms.
2010-12-12 14:07:44 +01:00
Erik Hofman
bf70d6f087
Set the listener position to it's default value, just like the samples position
2010-09-10 15:02:37 +02:00
Erik Hofman
879dc295a8
Actually enable looping for a sample queue
2010-08-02 11:43:53 +02:00
Erik Hofman
8a5a1d3301
Merge branch 'next' of git://gitorious.org/fg/simgear into next
2010-08-02 10:11:41 +02:00
Erik Hofman
67c8067aed
Initial commit for a sample queue extension.
2010-08-02 10:10:58 +02:00
Erik Hofman
c46c735f2f
fix a typo
2010-07-30 10:44:50 +02:00
Erik Hofman
82aa7fcbad
use std::string
2010-07-30 10:42:44 +02:00
Erik Hofman
1d740a63bd
C++ify some code
2010-07-27 15:57:36 +02:00
Erik Hofman
d1897fabf0
Small bugfix, the previous test always sets _property (these days)
2010-07-27 14:51:44 +02:00
Erik Hofman
d4178d6440
Merge branch 'next' of git://gitorious.org/fg/simgear into next
2010-07-27 10:15:28 +02:00
Erik Hofman
d0def466da
Merge branch 'next' of git://gitorious.org/fg/simgear into next
2010-07-25 10:29:25 +02:00
Erik Hofman
1840541f6d
Merge branch 'next' of git://gitorious.org/fg/simgear into next
2010-07-23 20:05:40 +02:00
Erik Hofman
792ffa2d26
Merge branch 'next' of git://gitorious.org/fg/simgear into next
2010-07-23 13:57:53 +02:00
Erik Hofman
0e92bb58b0
Merge branch 'next' of git://gitorious.org/fg/simgear into next
2010-07-22 08:57:04 +02:00
Erik Hofman
a62a8518b9
Merge branch 'next' of git://gitorious.org/fg/simgear into next
2010-07-16 20:20:28 +02:00
Erik Hofman
b48c0e968f
Merge branch 'next' of git://gitorious.org/fg/simgear into next
2010-07-14 12:19:08 +02:00
Erik Hofman
8b7a279c61
Merge branch 'next' of git://gitorious.org/fg/simgear into next
2010-07-09 08:53:56 +02:00
Erik Hofman
d671c3d9fa
At some points Flightgear stops and restarts the entire sample group containing the looping background/engine noise. But it does not restart the individual (looping) samples in the group. So now the background noise dies when resetting the sim or changing aircraft location.
2010-06-29 08:28:38 +02:00
Erik Hofman
7086f2dc89
brehmt:
...
When a sample's state constantly is "changed" (because sth. keeps updating the
sample in each update loop), then SGSampleGroup::update never ever checked if
the sample had already stopped playing by itself.
The attached patch reorders the last two conditions. It now first checks if a
sample has already stopped playing, before checking if there's sth to update.
2010-06-28 08:12:23 +02:00
ehofman
03a616b737
Add support for EXT_framebuffer_object for Atlas
2010-05-05 10:39:18 +02:00
ehofman
44c93d5074
Csaba Halasz: fix a compilation error for non-bsd systems that happen to return
...
const char* from dlerror().
2010-03-27 13:39:37 +01:00
ehofman
dcf07a46aa
Allow particles to be frozen on pause.
2010-03-27 13:38:59 +01:00
ehofman
64072be83c
iprovide a slightly more helpfull exception message
2010-03-16 17:15:12 +01:00
ehofman
229abb8412
updated vendor test
2010-03-16 17:14:19 +01:00
ehofman
284bc364fe
Lauri Peltonen: turn on clouds depth sorting
2010-03-03 23:11:01 +01:00
ehofman
1ace645505
small fix for when sound is disabled
2010-02-17 07:19:02 +01:00
ehofman
8e47f5d494
John Denker: Fix sneaky bug: 'mylibdir' variable getting trampled.
2010-02-17 07:18:20 +01:00
ehofman
f9b064cc19
Joe User updates by John Denker
2010-02-14 19:42:51 +01:00
ehofman
6786a7be4a
small MacOS fix
2010-02-10 14:55:57 +01:00
ehofman
bb370a304d
smnall update for MacOS without framework support
2010-02-10 14:55:57 +01:00
ehofman
fdcf53c688
Properly test for OpenThreads and bail out if it isn't found
2010-02-10 14:55:57 +01:00
ehofman
68797e51c6
implement a round-robin scheme for random objects to make sure the same type of object is placed at the same spot all the time
2010-02-06 23:12:40 +01:00
ehofman
56d2f06631
Silently ignore previous errors to prevent halting the program on silly errors
2010-01-21 11:07:58 +01:00
ehofman
9e47911b19
define _device so testForALCError can use it initialized..
2010-01-21 11:07:58 +01:00
ehofman
176e760de1
test for an AL or ALC error before calling an ALUT function.
2010-01-16 15:50:29 +01:00
ehofman
c56f036bab
Tatsuhiro Nishioka:
...
These patches fixes minor bug in addition to providing --with-openal-framework and --with-cocoa-framework.
Now you can use your own version of OpenAL.framework for selecting various audio output device.
Plus, you can build FG/SG on Snow Leopard with cocoa configuration.
2010-01-05 22:12:37 +01:00
ehofman
56919ae45f
MacOS returns an unsopported AL error when a file is not found, work around this.
2010-01-05 22:10:22 +01:00
ehofman
e8884b4ec0
Also unbind subsystem groups in reverse order and destruct them in reverse order to be consistent.
2009-12-31 19:42:53 +01:00
ehofman
5e79609955
unbind in reverse order to try to prevent order dependency problems.
2009-12-30 00:20:08 +01:00
ehofman
4950c96f1c
Rearrange alut error checking a bit
2009-12-30 00:05:01 +01:00
ehofman
4cc17a7f6e
keep a pointer to the OpenAL vendor and renderer for reference
2009-12-27 09:24:24 +01:00
ehofman
c1246e8c4e
proper typecasting
2009-12-14 22:46:22 +01:00
ehofman
1fe9755d01
fix a typo.
2009-12-12 00:03:41 +01:00
ehofman
1da09a4706
Don't assign the buffer data to the sample in case it is a file. Test for result when calling load()
2009-12-12 00:03:40 +01:00
ehofman
f3c591469b
Fix crash in SGSoundMgr::stop(): do not try to erase buffer items one at a time
2009-12-12 00:03:40 +01:00
ehofman
b1200f9f59
add alcSuspendContext and alcProcessContext again to prevent sound artifacts on hardware accelerated soundcards.
2009-12-06 23:55:08 +01:00
ehofman
47617d6c04
check if suspend, resume and volume changed much from the previous value before setting them.
2009-12-03 06:38:23 +01:00
ehofman
4794ab6095
Fix runtime switching of sound devices.
2009-12-03 06:38:12 +01:00
ehofman
bc85767f19
Updates to allow runtime chaning of the sound device
2009-11-30 22:41:14 +01:00
ehofman
a0aaa23904
Add a function to retreive all available playback devices.
2009-11-29 13:04:39 +01:00
ehofman
27a6c72091
initialize volume to a proper value
2009-11-29 13:04:39 +01:00
ehofman
2dcc66f03e
Small bugfix
2009-11-29 13:04:38 +01:00
ehofman
d70a05a088
Make it possible to specify a different device name
2009-11-29 13:04:38 +01:00
ehofman
0f21c39e49
a slightly more readable version of the test
2009-11-26 16:05:46 +01:00
ehofman
f6513127ce
Also test for older versions of OpenAL-Sample
2009-11-26 16:05:45 +01:00
ehofman
878288f06a
Don't forget to apply the doppler adjustment factor to the listener velocity also
2009-11-24 14:17:54 +01:00
ehofman
406cdf8d16
test for implementations with 'bad' doppler effects and adjust for it.
2009-11-24 14:17:54 +01:00
ehofman
5b28b024ae
fix test programs
2009-11-24 14:17:54 +01:00
ehofman
7c693d8107
proper listener velocity calculation, this has no effect yet but is required when other models start emitting sounds.
2009-11-24 14:17:54 +01:00
ehofman
afb18ca75b
the wrong name also mislead me: rotate velocity to the proper quat
2009-11-19 23:01:49 +01:00
ehofman
01c62932bd
make the relative positions fixed against the body again.
2009-11-18 23:25:55 +01:00
ehofman
6cd8db7b28
Set to default distance attenuation function but change the parameters a but for better sound effects (and most of all quieter sounds at greta distance
2009-11-18 23:25:51 +01:00
ehofman
bb46d91bc6
What do you know, the real problem turned out to be the distance attenuation function..
2009-11-17 06:43:41 +01:00
ehofman
e3f70b7125
temporarily remove listener (viewer) and source offsets. they mess things up
2009-11-12 22:59:43 +01:00
ehofman
5b2af1f6b3
also recalculate the velocity in update_pos_and_orienation, so pass the north-east-down velocity directly and orientate position, orientation and velocity to OpenGL/OpenAL frames (x-right, y-up and z-back)
2009-11-10 16:29:16 +01:00
ehofman
59df72c4b0
allow sound effects in the configuration file to be added to the 'avionics' sample group by setting '<type>avionics</type>'.
2009-11-10 06:42:26 +01:00
ehofman
fefe87ed1e
Remove old MSVC6.0 files that doen't work anymore
2009-11-09 10:45:15 +01:00
ehofman
b66905c2f6
Oops, it was the scenery up vector, not the viewer up vector
2009-11-07 08:52:16 +01:00
ehofman
39472e4d81
Save a costly SGVec3d::fromGeod() calculation
2009-11-07 08:52:16 +01:00
ehofman
85fba1325a
pass the geodetic position and view orientation to the sky reposition function
2009-11-05 16:17:29 +01:00
ehofman
0f39f05fa1
small fixes
2009-11-04 23:05:22 +01:00
ehofman
8d551c2664
fix directional sound orientation
2009-11-04 23:05:21 +01:00
ehofman
346a22f684
adjust to recent changes
2009-11-04 23:05:21 +01:00