Sam Hocevar
512eba5bf6
audio: fix build with SDL_Mixer disabled.
пре 7 година
Sam Hocevar
4eec8450d3
audio: rename format enum entries to avoid collisions.
пре 7 година
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.
пре 7 година
Sam Hocevar
b11e6bd537
audio: more feedback upon initialisation.
пре 7 година
Sam Hocevar
6f0155a50e
audio: allow to load a sample from raw data.
пре 7 година
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.
пре 7 година
Sam Hocevar
9a0b6e4a9a
Build: fix several compilation warnings.
пре 7 година
Sam Hocevar
e3b1db2c1e
audio: clean up code.
пре 7 година
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).
пре 7 година
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.
пре 7 година
Sam Hocevar
6dd7a0cb39
Another lowercase switching frenzy, because why not.
пре 8 година
Sam Hocevar
37abf6193f
RIP lol::String ⚰️ LOL
пре 8 година
Sam Hocevar
9dbfa4d550
Use std::string in a lot of places. Makes a few things simpler.
пре 8 година
Sam Hocevar
44e39867b1
Fix approximately 80 billion compilation warnings.
пре 9 година
Sam Hocevar
a45a0d45d1
audio: do not free buffers that SDL may be using.
пре 9 година
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.
пре 10 година
Sam Hocevar
89a8add7bf
audio: reorganise files
пре 10 година