29 Commits

Author SHA1 Message Date
yvt
2fddc13024 Eliminate compiler warnings
- Possible misuse of comma operators
- `std::move` prevents copy elision
2018-12-31 21:34:30 +09:00
yvt
585cbfce1c Improve random number generation
The global RNG state is now protected from simultaneous accesses by
employing a mutex.

Performance sensitive code requiring generation of a large number of
random numbers can utilize `LocalRNG`. This is not thread-safe but
provides a much greater throughput. `LocalRNG` is seeded by the global
RNG only at construction time.
2018-09-17 23:48:38 +09:00
yvt
8e8f2a8772 (Hopefully) fixes #577 2017-02-25 21:19:19 +09:00
yvt
10e8e8b14b Add sound gain config 2017-02-20 23:32:33 +09:00
yvt
c5312e4905 ALDevice: support FP audio data (which is produced by Opus decoder) 2016-12-18 01:39:22 +09:00
yvt
2ecbd554b4 Support Ogg Opus audio files (.opus) on macOS 2016-12-18 00:45:17 +09:00
Tomoaki Kawada
624d291f79 Update #includes
- Reorder them so that system libraries come first
- Use C++-style headers (`<cmath>`) instead of C-style headers (`<math.h>`)
2016-12-03 19:04:58 +09:00
Tomoaki Kawada
2eb9e35c65 Apply clang-format to all non-external source files 2016-12-03 18:23:47 +09:00
VelocityRa
30d133ce31 Use better random generator 2016-11-22 23:08:35 +02:00
Tomoaki Kawada
6a7af96daf Refactor setting variables 2016-11-19 21:27:13 +09:00
Tomoaki Kawada
89748d6bc6 Reduced compiler warnings 2016-07-15 19:40:05 +09:00
yvt
c3e9258df8 Precise OpenAL error checking which reports line number, and the setting to suppress AL error (response to #234) 2014-04-12 20:54:38 +09:00
yvt
5492ee69b2 Now OS X version defaults to OS X built-in OpenAL driver (related to #224) 2014-04-03 15:08:14 +09:00
yvt
06374c59f9 Audio library availability is checked, and corresponding options are disabled when unavailable. 2014-03-13 00:19:17 +09:00
yvt
db88ee4703 Fixed some little bugs (thanks to Clang static analyzer) 2014-02-25 19:35:37 +09:00
yvt
8996336063 Merge branch 'master' into newtitle 2013-12-08 23:59:36 +09:00
learn_more
ac3dae980d log openal vendor after initializing. 2013-12-07 16:47:03 +01:00
Marco Schlumpp
fc44f3776a Added missing include. 2013-12-06 15:09:29 +01:00
yvt
e66a5435d1 Merge remote-tracking branch 'origin/master' into newtitle
Conflicts:
	Sources/Draw/GLRenderer.cpp
	Sources/Gui/SDLRunner.cpp
	Sources/Gui/SDLRunner.h
2013-12-04 15:01:36 +09:00
learn_more
91ae9b40e3 remove test code... 2013-11-27 00:39:21 +01:00
learn_more
f8d980cbd7 add openal logging
alt+tab is less annoying (doesnt grab the mouse on hover anymore, only when explicitly activated)
2013-11-27 00:33:16 +01:00
yvt
daeaab9dfd Fixed reference counting issue 2013-11-25 02:46:52 +09:00
learn_more
c196350cc4 Merge branch 'master' of https://github.com/yvt/openspades into develop
more warnings
2013-09-20 23:11:12 +02:00
learn_more
d41b91631f fix a shitton of warnings 2013-09-20 23:03:32 +02:00
yvt
5437eb3eba AudioDevice is exported to script 2013-09-14 17:26:43 +09:00
yvt
f0d34ef494 added GPLv3 header 2013-08-29 11:45:22 +09:00
yvt
8b61eef7f2 Log output (useful for debugging) 2013-08-26 01:27:44 +09:00
yvt
c866d5b008 Adjusted EAX 2013-08-25 20:46:30 +09:00
yvt
931be8cf09 From pre-0.0.3 source code 2013-08-18 16:18:06 +09:00