1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

30 Commits

Author SHA1 Message Date
Mathieu Schroeter
5fe231bcc2 Remove buggy suspend stuff
It doesn't make sense here. Not sure why the old
code needs that. Anyway, it's just wrong because.
Maybe the old code needs that because the sound
was played independently of the video.

This commit prevents that the music to continue
on the win or lost screen when the video has been
skipped by space or esc.
2019-09-06 23:41:12 +02:00
Mathieu Schroeter
85d90c2872 Fix sound lag on macOS
Reduce bytes by output sample to 1024.
2019-05-09 23:49:51 +02:00
Mathieu Schroeter
4877928e62 Stop Blupi / enemies sounds on explosion (when entities are killed) 2018-08-14 23:02:02 +02:00
Mathieu Schroeter
d43bbb9784 Update copyrights where appropriate 2018-08-03 12:20:15 +02:00
Mathieu Schroeter
ea4158e8ac Fix stupid if test 2018-07-21 17:49:51 +02:00
Mathieu Schroeter
a6196851fc Remove useless log
Note that the music is not working with emscripten.
I think that it related to OGG because WAV are working.
2018-07-21 17:41:50 +02:00
Mathieu Schroeter
a40ef7d3f8 Restore other fade out with non JS platforms 2018-07-21 17:40:29 +02:00
Mathieu Schroeter
ee80592a6f Disable properly the mixer fade out only with emscripten
It's not supported for an unknown reason.
2018-07-21 17:38:41 +02:00
Mathieu Schroeter
561469f4fd WIP 2018-07-20 14:54:08 +02:00
Mathieu Schroeter
988962d74a Retrieve the right ratio accordingly to the current display
It's no longer forced to 16:9.
2018-06-27 17:31:59 +02:00
Mathieu Schroeter
67ea4d0c2e Look music for user dir, fallback to the game dir
Then it's possible to overload the original musicis by providing yours in
the user directory (in music subdir).
2017-12-11 18:42:49 +01:00
Mathieu Schroeter
315117e7da Fix regression, halt only when suspend 2017-12-01 10:44:23 +01:00
Mathieu Schroeter
85b8f43738 Fix leak with audio when exiting 2017-11-27 06:46:07 +01:00
Mathieu Schroeter
a1b5e5c76f Fix music memleaks 2017-11-26 22:21:37 +01:00
Mathieu Schroeter
9076c2bc92 Do not stop the jingles sounds (win and lost) when ending a game
It uses a list of sounds to skip. The fade is apply on all other sounds.

- It concerns the issue #9.
2017-09-13 07:01:07 +02:00
Mathieu Schroeter
8cd1cacb89 Rename windows types to something else 2017-08-21 22:08:25 +02:00
Mathieu Schroeter
2a1128ecef COsmetic: update clang-format definition 2017-08-14 22:10:26 +02:00
Mathieu Schroeter
b4c5f62dcf Replace sprintf by snprintf 2017-08-13 17:15:09 +02:00
Mathieu Schroeter
19329c0d63 Try to use the Sounds enum type as much as possible 2017-08-12 22:51:19 +02:00
Mathieu Schroeter
1b4f3822fa Rename event with something less windows-like 2017-08-07 18:33:26 +02:00
Mathieu Schroeter
4b2cf9417d Reformat with clang-format file 2017-08-04 00:21:47 +02:00
Mathieu Schroeter
57b6190a53 Add license header in all source files 2017-08-03 22:51:40 +02:00
Mathieu Schroeter
4caa6922b3 Reload only sounds that are not the same
It seems that it fixes a random crash on darwin in the SDL audio
internals.
2017-07-30 23:14:56 +02:00
Mathieu Schroeter
d67010c87a Ensure that all channels are halted before free 2017-07-30 22:38:51 +02:00
Mathieu Schroeter
694c05717e Replace a lot of c string by c++ string 2017-03-04 17:19:36 +01:00
Mathieu Schroeter
8d19d8ce79 Fix warning 2017-02-28 21:54:42 +01:00
Mathieu Schroeter
016581ff18 Remove useless bool 2017-02-28 21:54:29 +01:00
Mathieu Schroeter
6a4ec16935 Add a function to flush all sounds 2017-02-28 21:49:15 +01:00
Mathieu Schroeter
d4a23331bd Rename music and sound files 2017-02-26 18:11:25 +01:00
Mathieu Schroeter
83b459f84f Rename cpp sources to cxx 2017-02-24 18:50:03 +01:00