In OpenTK or OpenAL in general, I need to change the output device without having to redo all AL work for my resources. Is it possible to change the output device in the AudioContext without messing with the OpenAL state?
E.g.: I'm changing the AudioContext using:
context = new AudioContext(deviceName, 0, 0, false, false);
context.MakeCurrent();
But this will make me have to redo things like:
BufferIds = AL.GenBuffers(3);
For every resource.
All I want is to change the output device, and I need a way to either do that while maintaining the OpenAL state, or a way to store and reload the OpenAL state in the new AudioContext.
If I'm getting the idea of AudioContexts all wrong please don't hold back =S
Gr.Viller