mixxxdj/mixxx — pull request #375 by uklotzde (2014-11-09 17:07:54+00:00)
Title: [PREVIEW] New SoundSource API

This pull request is only a preview that shows work in progress. Please note, that I will rebase the corresponding branch frequently on mixxxdj:master!

The CachingReader(Worker), AnalyzerQueue and ChromaPrinter are already using the new AudioSource API. The old SoundSource API has been removed from the public interface of SoundSource. A generic (and inefficient) bridge implementation of readFrames() is provided by the SoundSource base class that invokes the legacy read() method. The visibility of read() has been reduced to "protected" to avoid any future usage.

Decoders that are already implementing the new AudioSource API, even if there still might be a lot of work remaining to improve the existing code base:
- SoundSourceFLAC (+ optimizations)
- SoundSourceMP3
- SoundSourceM4A

All other decoders are more or less working through the bridge implementation of readFrames() in the SoundSource base class. I must admit, that I did not test their functionality, but at least the code should compile without errors:
- SoundSourceOggVorbis
- SoundSourceOpus
- SoundSourceFFmpeg
- SoundSourceSndFile
- SoundSourceWV
- SoundSourceModPlug
This ordering also reflects which SoundSources should be migrated next. If you see a different ordering, please comment.

The following decoders might be broken, because I'm currenly not able to compile and test the code:
- SoundSourceCoreAudio
- SoundSourceMediaFoundation

Btw, using C++11 features would be really helpful! I've seen some changes in this direction in another pull request ;)