DavivaD
df12f87b47
Implement damage alarm ( #916 )
...
Implements part of #320
2017-05-22 11:01:36 +02:00
krzys-h
0ecdee08cc
Merge branch 'dev-async-music-load' (PR #801 )
2016-08-09 19:20:46 +02:00
krzys-h
19cc25f716
Fixed sound channels not being unmuted properly
2016-07-10 20:12:44 +02:00
krzys-h
29f0631a2c
Asynchronous sound/music loading
...
This improves the loading time a lot. Time from starting the app to opening game window decreased by almost 5 seconds (it's almost instant now). Mission loading times are significantly better too. As a bonus, the playmusic() CBot function doesn't hang the game if you don't preload the files with CacheAudio in scene file.
2016-07-10 14:56:34 +02:00
Krzysztof Dermont
2168b57cac
Remove part of boost::filesystem usage.
2016-06-09 19:30:08 +02:00
Cezary Parkowski
5542b7deb7
Another fixes to sound samples in-code documentation
2016-02-19 17:43:55 +01:00
krzys-h
f3820bc81a
Fixed using SOUND_CLICK instead of SOUND_NONE, some sound documentation fixes
2016-02-19 17:12:27 +01:00
Cezary Parkowski
42db13ee9e
Updated sound samples doCOMMENTation
2016-02-19 16:33:22 +01:00
krzys-h
977607a934
Updated license headers
2016-02-13 14:11:30 +01:00
krzys-h
76c43cddb2
Rename CSoundInterface::AddMusicFiles to CacheCommonMusic
2016-01-24 21:31:45 +01:00
krzys-h
0aa97fe074
Restored Ceebot-Teen toy sound
2015-10-04 18:13:13 +02:00
Piotr Dziwinski
d11ebc891c
Bring to zero some types of issues reported by colobot-lint
2015-10-04 00:09:10 +02:00
Piotr Dziwinski
66ce745be0
Introduce forward declarations as suggested by colobot-lint
2015-09-27 16:28:14 +02:00
Piotr Dziwinski
b93f610930
Fix license header in all files
2015-08-22 16:40:02 +02:00
krzys-h
303dd17d58
Improved documentation of new object interface; removed unused Get/SetSoluceName
2015-08-17 00:43:32 +02:00
Piotr Dziwinski
d703eb7165
Compile fixes for MSVC2013
2015-08-16 00:39:08 +02:00
krzys-h
856c5baa0e
Removed CTaskManager
2015-08-15 20:30:15 +02:00
Piotr Dziwinski
a082d21f95
Fix possibly incorrect code in OpenAL Buffer class
...
OpenAL doesn't specify 0 as invalid buffer, so we should use alGetError()
2015-08-15 19:17:15 +02:00
krzys-h
0ec3f29e68
Fixed win/lost scene music cached at startup not being ever used
2015-08-14 19:44:44 +02:00
Piotr Dziwinski
34e4fb4508
Add missing initializers to sound classes
2015-08-11 23:15:26 +02:00
Piotr Dziwinski
61ec101b11
Replace size_t with std::size_t
...
For some reason Clang's AST API doesn't like size_t
2015-08-06 14:31:40 +02:00
Piotr Dziwinski
0c9cf51d81
Address comments on commit d7bc28a
2015-08-06 11:17:54 +02:00
Piotr Dziwinski
596bb49de0
Normalize static variables and functions
...
* get rid of some of them
* put the rest into anonymous namespaces
2015-08-06 10:12:20 +02:00
Piotr Dziwinski
11b0398c03
Include refactoring
...
* reordered includes according to correct style
* removed some unnecessary includes
2015-08-02 17:49:07 +02:00
Piotr Dziwinski
a872ea128b
Add MakeUnique template to avoid use of naked new
2015-07-17 20:06:59 +02:00
Piotr Dziwinski
6dcf4dffa6
Refactor CSNDFile -> CSNDFileWrapper
...
This seems more consistent
2015-07-16 21:47:48 +02:00
Piotr Dziwinski
f581d87474
Fix double increment bug in OpenAL channel allocation
2015-07-16 07:16:55 +02:00
Piotr Dziwinski
c8498548cc
Remove manual memory management in oalsound
...
Plugging a few more memory leaks detected by valgrind
2015-07-15 22:43:30 +02:00
Piotr Dziwinski
e8582d214c
CStaticObject subclass using new model framework
...
* added reading/writing working version of new model format V3
* added CStaticObject with minial interface intended for
non-interactive static objects like trees
* converted first model, tree0, to new format
2015-07-11 19:52:38 +02:00
Piotr Dziwinski
9b232ee3f5
Sound enum refactoring
...
* rename Sound -> SoundType
* add parsing string to SoundType
2015-07-09 21:32:25 +02:00
Piotr Dziwinski
88ec9aaae3
Drop GCC 4.6 support
2015-06-26 00:24:32 +02:00
Piotr Dziwinski
3dce58c0fa
Replace override and noexcept with macros
2015-04-27 18:07:42 +02:00
krzys-h
e3e551de22
Fixed loading sound 0
2014-12-11 19:00:02 +01:00
krzys-h
6d152d5aee
Fixed console spam when music files are not installed
...
Closes #359
2014-11-02 13:35:00 +01:00
krzys-h
0245fdc6c3
Merge branch 'dev-physfs' into dev
...
Conflicts:
src/app/app.cpp
2014-10-19 16:18:36 +02:00
krzys-h
9ea0b37408
Possible fix for #331
2014-10-19 14:21:55 +02:00
krzys-h
f65b00089a
Merge branch 'dev' into dev-physfs
...
Conflicts:
data
2014-10-14 15:42:19 +02:00
krzys-h
9fd6cf5449
Changed all occurences of PPC in the code to TerranovaTeam
2014-10-14 15:26:18 +02:00
Piotr Dziwinski
5274acd624
Merge with dev
2014-10-07 22:15:40 +02:00
Piotr Dziwinski
ac019c263d
Remove unnecessary delete checks ( #318 )
2014-08-09 22:45:07 +02:00
krzys-h
7b04f67358
Fixed music loading
2014-07-10 15:38:37 +02:00
Krzysztof Dermont
754154341d
More work on PhysFS support
...
* added output stream
* fixed music loading
2014-06-22 15:01:06 +02:00
Krzysztof Dermont
1630cf0ed2
Implemented libsndfile loader in PhysFS
2014-06-21 02:59:26 +02:00
Krzysztof Dermont
2260f6bf4f
Big part of PhysFS support
...
* removed -mod argument
* removed -datadir argument
* removed -lang argument
* removed some dead ui code
* added resource manager and file loaders (stream and SDL)
* changed interface textures location to match new directory structure
* removed CGameData for mod support
* added PhysFS support
2014-06-20 23:51:28 +02:00
krzys-h
f0d97bfdb9
Better datadir mod support
2014-05-18 12:12:47 +02:00
andreymal
1a0dcedf83
fixed m_oldMusic.push_back(nullptr) and segfault
2014-03-02 18:00:02 +04:00
krzys-h
bb2a9bcfd3
Added option to set pause audio in Scene
2014-02-21 14:19:58 +01:00
erihel
2433cb595a
Added a check when trying to play a music file
2014-02-21 10:13:48 +01:00
erihel
f21ab91184
Changed max channels to fix compilation error
2014-02-02 02:01:42 +01:00
erihel
d84d38280b
Changed max number of sound channels
2014-02-02 01:50:34 +01:00