Chris Robinson
362e254720
Rename some more sound class member variables and functions
2012-03-18 11:30:53 -07:00
Chris Robinson
2f92559fc7
Use OpenAL's linear attenuation model
...
We should use the inverse distance clamped model (the default), but we first
need to handle muting sounds that are beyond their max distance. Linear
attenuation doesn't give a proper rolloff, but it makes the sounds silent at
max distance.
2012-03-18 09:05:38 -07:00
Chris Robinson
f7ac94d686
Pass the new position to the sound update method
2012-03-17 23:41:45 -07:00
Chris Robinson
44fc204864
Avoid passing a sound decoder to the play methods
2012-03-17 23:30:43 -07:00
Chris Robinson
7160d20db3
Be more consistent with the vector orientations given the sound handler
2012-03-17 10:36:34 -07:00
Chris Robinson
87adf6002a
Fix a copy-paste typo in the openal output
2012-03-17 09:57:39 -07:00
Chris Robinson
5563f583ff
Add and implement methods to update tracked sounds on an object
2012-03-17 09:51:03 -07:00
Chris Robinson
979ae89aab
Pass volume and pitch parameters to streamed sounds
2012-03-17 09:37:41 -07:00
Chris Robinson
cac07d0fbf
Remove some unnecessary methods
2012-03-17 09:27:31 -07:00
Chris Robinson
d57051375d
Implement non-streaming sounds with OpenAL
2012-03-17 09:15:47 -07:00
Chris Robinson
656863ec6e
Add functions to play sounds
2012-03-17 06:51:44 -07:00
Chris Robinson
a46f8ced05
Keep the sound output's listener updated with the camera position
2012-03-17 06:18:59 -07:00
Chris Robinson
2dabdcb9e5
Add a function to update the sound listener
2012-03-17 04:22:54 -07:00
Chris Robinson
2429755bf1
Make the sound's Play method return void
2012-03-17 03:20:43 -07:00
Chris Robinson
caf5d71d44
Make the sound decoder's Open method return void
...
Errors are thrown, not returned
2012-03-17 03:18:28 -07:00
Chris Robinson
1b41987e18
Move OpenAL_SoundStream function definitions out of the class
2012-03-17 03:15:07 -07:00
Chris Robinson
1ade01edc8
Add a function to stream sounds
2012-03-17 02:55:08 -07:00
Chris Robinson
1322b1e160
Move Sound_Output's definition to a separate header
2012-03-16 23:40:07 -07:00
Chris Robinson
45b612ab3b
Add a skeleton output classs using OpenAL
2012-03-16 22:12:17 -07:00