Tim Moore
fd42294faf
Merge branch 'ehofman/sound'
...
Changed include of SGQuat.hxx to SGMath.hxx in
sound/sample_openal.cxx; somehow this happened in a merge commit when
the sound branch was merged to next.
2009-12-20 11:46:28 +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
Tim Moore
cb7ac404d9
Merge branch 'ehofman/sky'
2009-11-26 23:28:34 +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
ehofman
b1571e4437
some small fixes
2009-11-04 23:05:21 +01:00
ehofman
5ac2abe3ab
Remove more unneeded code and properly set relative position and sound direction
2009-11-02 23:20:59 +01:00
ehofman
5b15426cc6
Small code reorganization, mostly removing unneeded code
2009-11-02 23:20:59 +01:00
ehofman
1ac944b7c1
Position and orientation fixes thanks to Tim Moore (finaly). Code optimizations by moving code over from SGSoundSample to SGSampleGroup which means it will only run once for every sample group instead of once for every sample.
2009-11-02 23:20:58 +01:00
ehofman
fd90dbb123
silently clip pitch and gain to their maximum values
2009-11-01 21:52:37 +01:00
ehofman
6ccad91537
proper orientation(?) and comment out relative position and direction code since it messes with OpenAL in such a way that volume doesn't work properly anymore
2009-11-01 21:52:37 +01:00
ehofman
c89db53ebf
another attempt at getting something useful without any result.
2009-10-31 22:55:32 +01:00
ehofman
4ffd70a42a
fix a typo
2009-10-31 22:55:26 +01:00
ehofman
bbeb48a60d
fix a gcc version test
2009-10-31 22:55:18 +01:00
ehofman
aefe9bc116
MacOS X fix
2009-10-31 22:54:46 +01:00
ehofman
bcb95f647d
add relative pos back in
2009-10-31 00:03:27 +01:00
ehofman
145a7fa146
pass the float pointer to the isNaN function instead of the SGVec3 type
2009-10-29 23:04:17 +01:00
ehofman
06f0b6030a
multiply quats in the right order
2009-10-29 23:04:17 +01:00
ehofman
191ee3a0ed
Commit the current state of affairs to see if it fixes the position code for others
2009-10-29 23:04:17 +01:00
ehofman
f6358694ae
another test program, using real world locations
2009-10-29 23:04:17 +01:00
ehofman
af14d65a98
Fix a bug where a sample was removed from the sample list before it was stopped. Proper listener orientation when inside the airplane (need to find a good solution for outside view).
2009-10-28 23:16:19 +01:00