]> git.tdb.fi Git - libs/al.git/commit
Make SoundDecoder a base class and split off Ogg decoding
authorMikko Rasa <tdb@tdb.fi>
Tue, 20 Nov 2012 22:37:25 +0000 (00:37 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 20 Nov 2012 22:38:55 +0000 (00:38 +0200)
commit10cdb043b613d60c5de8f1cce0f7a5512b0d0074
tree72bc183788d018764aa2efb99c2317925c61842b
parentef9906f379e066cb9c754853a3cc771e8e881356
Make SoundDecoder a base class and split off Ogg decoding

Decoders are now created with a static factory function, without a
separate open call.  This allows autodetecting the decoder type later and
simplifies resource management.

The Ogg specific stuff was also hidden behind a private pointer to further
improve encapsulation and reduce namespace pollution.
source/jukebox.cpp
source/oggdecoder.cpp [new file with mode: 0644]
source/oggdecoder.h [new file with mode: 0644]
source/sounddecoder.cpp
source/sounddecoder.h
source/waveform.cpp