Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
switching output devices

tom@flagmountain
Registered User
Quote
2014-11-21 16:37:12

I am having difficulty switching a sound that is playing from one output device to another. My general technique is to pause the sound, capture the play position, re-instantiate the sound engine to the new output device, then set play position and resume playing. But the sound replays from the beginning in the new output device. Is there any example code that addresses this issue? I can, of course, provide code snippets if needed. PS: I am working in C Sharp..

ADthanxVANCE.


niko
Moderator
Quote
2014-11-22 06:19:49

Hm, from what you describe, this should work. How are you setting the play position? Maybe you are using a sound type which doesn't support setting the play position?

It might help to start the sound by calling play2D(...) with the flag for starting to play paused to 'true', then setting the play position, and then unpausing. If it doesn't work, then try starting to play the sound with 0 volume, wait a bit and then setting the play position.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inte?national" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact