Hi,
I'd like to store my wav files in a vfs and play them using Hekkus library.
I tried the following:
CGapiVFS* VFS_Common = new CGapiVFS();
VFS_Common->CreateVFS(tcFile);
CGapiFileBuffer *click = new CGapiFileBuffer();
click->Open( VFS_Common, TEXT("/click.wav") );
hssSound m_click;
m_click.load(click,true);
click->Close();
m_speaker.playSound(&m;_click);
There is no error (I checked the return codes) but the sound doesn't play.
Has anyone tried this before and succeeded?
Thanks.
Vincent.
I'd like to store my wav files in a vfs and play them using Hekkus library.
I tried the following:
CGapiVFS* VFS_Common = new CGapiVFS();
VFS_Common->CreateVFS(tcFile);
CGapiFileBuffer *click = new CGapiFileBuffer();
click->Open( VFS_Common, TEXT("/click.wav") );
hssSound m_click;
m_click.load(click,true);
click->Close();
m_speaker.playSound(&m;_click);
There is no error (I checked the return codes) but the sound doesn't play.
Has anyone tried this before and succeeded?
Thanks.
Vincent.