Sam Hocevar
4eec8450d3
audio: rename format enum entries to avoid collisions.
6 years ago
Sam Hocevar
68c2530b16
audio: refactor audio streaming mechanism.
Rename “channels” to “tracks” when talking about the mixing channels, to
avoid confusion with channels in the context of mono/stereo/5.1. Also allow
conversions between various formats and frequencies.
To do: allow to query the current audio device’s preferred frequency when
the client application is able to send the best possible data.
6 years ago
Sam Hocevar
b11e6bd537
audio: more feedback upon initialisation.
6 years ago
Sam Hocevar
6f0155a50e
audio: allow to load a sample from raw data.
6 years ago
Sam Hocevar
1186c08ad7
entity: add a flag system.
This lets us get rid of m_autorelease and m_destroy and we’ll be able
to implement init_game/init_draw later, for stuff that must happen
on the render thread.
6 years ago
Sam Hocevar
9a0b6e4a9a
Build: fix several compilation warnings.
6 years ago
Sam Hocevar
e3b1db2c1e
audio: clean up code.
6 years ago
Sam Hocevar
a1ef3552bc
No longer look for SDL/SDL*.h headers.
We now just look for SDL2/SDL.h (the regular location) and SDL.h (when
the user provides their own location for this header).
6 years ago
Sam Hocevar
1d8083af86
engine: get rid of the Dict class (WIP).
This was not a very smart class. We replace it with a bidirectional map.
6 years ago
Sam Hocevar
6dd7a0cb39
Another lowercase switching frenzy, because why not.
6 years ago
Sam Hocevar
37abf6193f
RIP lol::String ⚰️ LOL
7 years ago
Sam Hocevar
9dbfa4d550
Use std::string in a lot of places. Makes a few things simpler.
7 years ago
Sam Hocevar
44e39867b1
Fix approximately 80 billion compilation warnings.
7 years ago
Sam Hocevar
a45a0d45d1
audio: do not free buffers that SDL may be using.
8 years ago
Sam Hocevar
7619caef3e
audio: minimal streaming API
This will allow us to generate sounds on the fly on several dedicated
channels. Until now we could only play fully loaded samples.
8 years ago
Sam Hocevar
89a8add7bf
audio: reorganise files
8 years ago