PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

GapiVFS + Hekkus sound how to?

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.
Hi,
Thanks to Gersen I got it to work.
For those interested here is the link to the thread on his website:
http://www.shlzero.com/modules.php?name ... &p=142#142

Vincent.