≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Cannot add sound source, it exists already:
Posted by:
(you are not logged in)
Enter the missing letter in: "Internation?l"
(you are not logged in)
Text:
[quote][b]muchiachio[/b] wrote: Hello everyone, I'm trying to load same audio path and name to ISoundSource and I always get "Cannot add sound source, it exists already: [My-Audio-Name]" And I don't want to have a counter for unique numbers in AddSoundSourceFromIOStream method, one of the reasons is "Unknown wave header file". Here is the code: [code] Stream stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read); ISoundSource source = engine.AddSoundSourceFromIOStream(stream, path); source.StreamMode = StreamMode.AutoDetect; engine.Play2D(source, false, false, true); engine.Play2D(source, false, false, true); // Error // This is working, but its not using my stream, and using Factory is not a good idea for me, unless it can be overriden by different sounds paths // engine.Play2D(path); // engine.Play2D(path); [/code] Any help would be appreciated[/quote]
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