≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Sound Lost after a while
Posted by:
(you are not logged in)
Enter the missing letter in: "Internatio?al"
(you are not logged in)
Text:
[quote][b][/b] wrote: I will try to illustrate. struct SOUND_SOURCE { irrklang::ISoundSource * TheSoundSource; }; irrklang::ISoundSource * weaponSound; irrklang::ISound * soundRetVal; //Define Array: SOUND_SOURCE * soundList[0]; void loadSounds { //Load Original Sound: soundsList[0].TheSoundSource = soundEngine->addSoundSourceFromFile("mySound.wav"); } void loadWeaponSounds { //Create Alias For The Sound: weaponSound = soundEngine->addSoundSourceAlias(soundsList[0]."strNewName"); } void sndPlaySound() { soundRetVal = soundEngine->play2D(weaponSound,true,true,true); soundRetVal->setPlayPosition(0); <--- This is where is error'd last time; soundRetVal->setIsPaused(false); return; } void sndStopSound() { soundRetVal->setIsPaused(true); return; } /////////// The Code Above Is Just to illustrate, soundRetVal has a value of 0 when the error occurs and the console reports "Could not open sound file: mySound.wav". This is all I can tell you.[/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