Ok fair points made by both of you but take the following for example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | void InitializeAudioEngine() { // Create the manager _xAudio2Manager = gcnew XAudio2Manager();
// Use default Engine Settings EngineSettings^ es = gcnew EngineSettings(); _xAudio2Manager->CreateDevice(es);
// Load wave WaveDataContainer^ wdc = _xAudio2Manager->LoadWave("foobar.wav");
// Create Source Voice from WAVEFORMATEX of wdc XAudio2SourceVoice^ source = _xAudio2Manager->CreateSourceVoice(wdc);
// play the source source->Play(); } |
I appreciate it's using C++ and I'm not demonstrating error trapping, cleanup, etc. but how many lines of code would it take (as in the XAudio2BasicSound example)? There is far more to it than this too.
If you or anyone else believe that there is truly no need for this then please let me know as I could be doing something else. Perhaps more useful too!
:)