Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
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:
Any help would be appreciated |
||||
|
When you use the same stream instance to play the same file streaming multiple times, this will only work when you are lucky, because of course it is physically not possible to read and seek in a file using the same instance of a file stream more than once at the same time. File positions will not be correct after the streams get out of sync. |
||||
|
It's not about the stream instance. I used it as an example and I understand that it can not play the same stream. It's about IrrKlang not being able to have same sound name. Maybe this code snippet will be more helpful to see where I'm coming from.
|
||||
|
Ah, you are right there. irrKlang assumes a sound source is a unique thing, identifyable by the sound source name. This is by design, so it's not possible to work around this other by using a different for a different sound source. |
|