Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
possible in irrklang??

admir
Registered User
Quote
2012-07-13 14:53:34

hey guys, i have this code of game
snippet image_manager.h
class ImageManager {
public:
bool Initial();
void SetDevice(irr::IrrlichtDevice* dev);
void ClearTexture();
void RemoveTexture(int code);
irr::video::ITexture* GetTexture(int code);
irr::video::ITexture* GetTextureThumb(int code);

std::unordered_map<int, irr::video::ITexture*> tMap;
std::unordered_map<int, irr::video::ITexture*> tThumb;
irr::IrrlichtDevice* device;
irr::video::IVideoDriver* driver;
irr::video::ITexture* tCover;
irr::video::ITexture* tUnknown;


snippet image_manager.cpp
namespace game {

ImageManager imageManager;

bool ImageManager::Initial() {
tCover = driver->getTexture("data/textures/cover.jpg");
tUnknown = driver->getTexture("data/textures/unknown.jpg");


I was wonderin is it possiblle to do similar with irrKlang(just with sounds)...i have tried many things but it dont work..thanks


niko
Moderator
Quote
2012-07-14 06:27:04

Not sure what you mean exactly, but yes, you can load sounds using addSoundSource() like you add textures using getTexture().


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Interna?ional" (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