Load sound from memory
authorest31 <MTest31@outlook.com>
Sat, 14 Nov 2015 02:00:52 +0000 (03:00 +0100)
committerest31 <MTest31@outlook.com>
Sat, 14 Nov 2015 17:17:32 +0000 (18:17 +0100)
commit395ef21c86b3712bf45488b15d2d8dbc430e4c8e
tree96dc505c1279e77d5b33d92ac420499060bdaf38
parentfc89f467009822b5294967e3e58dbb2fd792bc44
Load sound from memory

* Remove trailing lines from src/sound_openal.cpp
* Don't do a horribly ugly copy of the file's path, allocating and deallocating a
10 kb buffer in the process. This copy was needed for backwards compatibility
with libvorbis 1.3.1 and earlier, as the removed comment explains.
However, even Ubuntu precise has 1.3.2 already. Dropping support and sparing
the ugly copy can therefore be considered safe.
* Actually load sounds from the memory, not caching them at the disk first,
removing the old hack. This is the main motivation for the commit.
src/sound_openal.cpp