Commit graph

24 commits

Author SHA1 Message Date
81fabbbf02 Add audio callback profiling 2022-10-07 15:28:30 +03:00
9b3afc9865 Use channel class for main audio output 2022-10-05 22:55:30 +03:00
b3e583283a Audio library rewrite: re-implement engine using SDL_Audio & change API 2022-10-05 22:55:28 +03:00
061c74ea54 Log number of sound mixing channels 2022-10-02 15:50:07 +03:00
df2003cbf6 Support locking audio via audio::engine 2022-02-25 14:53:12 +03:00
0fa0cbbc09 Support audio::stream on_stop callback 2022-02-25 14:52:48 +03:00
425d41eae4 Remove hardcoded value of 128 in favor of MIX_MAX_VOLUME macro in audio::engine 2022-02-25 14:52:17 +03:00
3feb2776c1 Support owning track data 2021-06-25 13:51:51 +03:00
dd40936769 Reduce audio buffer from 4 Kb to 1/4 Kb 2021-06-25 13:45:19 +03:00
e1f8958123 Audio track is_playing() bugfix 2021-04-20 15:19:00 +03:00
fdd57ba572 Mark audio stream as not playing when it ends 2021-02-20 21:55:24 +03:00
5e7aa7601d Pimpl declaration macros now define a make_pimpl(...) static helper function 2021-01-23 10:42:14 +03:00
e7cac4a618 Clang compilation fixes 2021-01-18 18:01:03 +03:00
325f90d7c8 Fix audio::track::size 2020-09-29 12:32:04 +03:00
342519003c Add audio::sample typedef to int16_t 2020-09-22 20:24:37 +03:00
ac8684faa3 Audio: query actual frequency & channels, initialize effects based on that 2020-09-22 20:20:48 +03:00
58a793af9d Rename audio::sample -> audio::track 2020-09-21 20:26:55 +03:00
fb4922c6e9 Explicitly request mp3 support in audio 2020-09-21 20:21:50 +03:00
ea170fdd70 Fix missing header 2020-09-21 20:21:36 +03:00
87681a036a Minor fixes 2020-09-21 12:25:09 +03:00
ec4db5c6cb Support auto-starting streams 2020-09-21 12:10:22 +03:00
313f8bbf80 Add sound::engine::frequency and sound::engine::channels 2020-09-21 12:10:02 +03:00
8ff441c6ff Support audio effects 2020-09-21 11:41:13 +03:00
6549c2f907 Audio subsystem (wip) 2020-09-21 11:22:34 +03:00