c# - Change AudioContext device but keep the OpenAL state -


In general, in OpenTK or OpenAL, I need to change the output device without having to redo all AL work for my resources. I

Is it possible to change the output device in the audioconnect without messing with the open state?

Example: I am replacing AudioContext:

  context = new audioContext device name, 0, 0, wrong, incorrect); Context.MakeCurrent ();   

But with this I have to do things again:

  buffers = AL.GenBuffers (3);   

For every resource.

I want to change all the output devices, and I need to do this while maintaining an Opal State or doing it in a way to store and reload the OpenGL state in the new audio converter. for.

If I am getting all the wrong views of audioContacts, please

Looking at the discussion in Gr.Viller

    Should we disconnect after buffer data?

    RESOLVED: NO.

    AL currently does not make sense to recover buffer data, and sharing all references Buffers should be on the same device as if all buffer data is lost in the disconnected state. After opening a new device, the application will need to be re-uploaded to all buffer data. If a device is exposed to a future extension to buffer data from buffer, then it should amend this specification.

    So far, I have not found any extensions to recover buffer data, however, it may be worth giving this question to me.

    EDIT: On another StackFlow:

    All al * functions (instead of ALK * functions) Current reference Therefore, Algefan Caller will work in the current context and create buffer It is related to the context of the instrument (one reference can only be a device).

    Buffers created on one device are not available on other devices. A device's buffers (probably) will be automatically deleted when you call the elclosive device.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -