≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Irrklang / irrlicht
Posted by:
(you are not logged in)
Enter the missing letter in: "Intern?tional"
(you are not logged in)
Text:
[quote][b][/b] wrote: Hello, I use this function to play a song : [code] void CPlayer::Play_Sound(char Sound_Name) { switch(Sound_Name) { case 'C': //Crash here Player_Sound_Node->setSoundFileName("./media/son/crier.wav"); break; case 'T': Player_Sound_Node->setSoundFileName("./media/son/getout.ogg"); break; default: break; } }[/code] And in my render loop : [code] if(EventReceiver.IsKeyDown(irr::KEY_KEY_Z)) { Player->Set_Position(Player->Get_Position()+irr::core::vector3df(0,1,0)); Player->Play_Sound('T'); }[/code] Here is my complete class : [url]http://pastebin.com/rJ071NMR[/url] (h) [url]http://pastebin.com/p3V0LaNr[/url] (cpp) First I was thinking it was a incorrect file but no... RVM[/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