51 Commits

Author SHA1 Message Date
yvt
abcf65d536
Add clearsfxcache console command 2019-07-15 00:08:02 +09:00
yvt
2fddc13024 Eliminate compiler warnings
- Possible misuse of comma operators
- `std::move` prevents copy elision
2018-12-31 21:34:30 +09:00
yvt
cfb972f944 Improve code quality
- Overriding methods are clearly indicated with `override` keywords
- Remove redundant `virtual` keywords from destructors of subclasses
- Introduce `SPUnsupported()`, replacing most uses of
  `SPNotImplemented()`, which now serves as a dynamic "TODO" marker
2018-10-13 14:43:49 +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
David Carlier
4864f07937 Reducing some compilation warnings. 2017-11-18 21:15:07 +00: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
88f03f01e9 Refactoring
- Mark overriding virtual functions with `override`
- Get rid of warnings
2017-01-05 03:48:11 +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
ebd79c0099 Change #include style
All `#include`s to other subsystem now use angle brackets, e.g., `#include <Core/Math.h>`.
2016-12-03 18:49:07 +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
18f3e81fd1 Convert space indentations to tabs 2016-11-20 19:13:00 +09:00
Tomoaki Kawada
6a7af96daf Refactor setting variables 2016-11-19 21:27:13 +09:00
Tomoaki Kawada
785d62d1f8 Detect libopenal.so.[01]? on Linux/BSD (Fixes #440) 2016-11-19 19:54:06 +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
5abca864d2 Fixed bug in windows version 2014-04-03 03:06:11 +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
ba6ecfde2f Merge branch 'master' into swrenderer 2014-02-14 16:21:49 +09:00
yvt
d791024665 Updated header of YsrDevice.(cpp|h) 2014-02-13 12:25:34 +09:00
yvt
4d13bcfb61 Fixed memory leak of null audio device 2014-02-07 00:02:51 +09:00
yvt
ed51bf84b9 Null audio device 2014-02-07 00:02:03 +09:00
learn_more
49392da794 disable kill sound on windows (side effect of the images)
make the build work on msvc 2k10
2013-12-17 01:28:22 +01:00
yvt
85cf0ca914 s_ysrNumThreads now defaults to 2 2013-12-16 20:53:42 +09:00
yvt
19b1961421 YSR debug output 2013-12-16 20:52:27 +09:00
yvt
406cda213e Updated YSR interface code 2013-12-16 11:42:00 +09:00
yvt
a4af7f93bd Fixed YSR interface to work correctly 2013-12-15 23:52:33 +09:00
yvt
d3042e1eeb Updated YSR interface 2013-12-15 23:33:45 +09:00
yvt
50705df377 Sampling rate is corrected 2013-12-15 23:20:45 +09:00
yvt
66edb6e340 Update YSR interface code 2013-12-15 23:01:29 +09:00
yvt
7edc18e09f YSR support 2013-12-15 21:51:00 +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
661401cd39 Added DS_Store to gitignore 2013-08-18 16:27:13 +09:00