Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / dbMakeSoundFromMemblock = broken?

Author
Message
Lampton Worm
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 19th Jan 2006 22:04 Edited at: 19th Jan 2006 22:05
Hi,

Playing around with this - I can get it to make 1 sound from a memblock but not 2, if I do that, the second sound just plays the first one - weird! Anyway, the code explains it a bit better:



Any ideas? ..or if you can just confirm its not just my system that would be cool.

Ps. for the test I'm using 1411-kbps 16-bit 2-channel 44-kHz PCM .wav files.

Cheers
SoulMan
21
Years of Service
User Offline
Joined: 22nd Nov 2002
Location: In a house somewhere on the planet earth
Posted: 19th Jan 2006 22:58
I'm not exactly sure what you are trying to do by having the sound load in a memblock. What is the purpose?
SoulMan

This is as backwards as is This
Lampton Worm
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 19th Jan 2006 23:15 Edited at: 19th Jan 2006 23:16
Hi,

One use, once it is working, is to write a program that takes a set of sounds, converts them to memblocks and writes them to a file. Then a second piece of code can read memblocks directly from that file and turn them back into sound (this also works with mesh/images, but they actually work ok). The point of that is you could basically make your own file format for your media, making distribution easier (less files) and slightly safer than just bundling the raw files.

Hope that explains it a bit..

Ps. the code above is just a cutdown to prove the command isn't quite behaving (I think).

Cheers
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 20th Jan 2006 15:07
Yes, it doesn't work here either And I think it should.

I'm planning to use a lot the dbMakeMemblockFrom... commands for packaging media. Maybe we should post a bug thread.
Lampton Worm
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 23rd Jan 2006 22:13
Thanks for confirming, bug raised: http://forum.thegamecreators.com/?m=forum_view&t=70141&b=15

Cheers,
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 21st Mar 2006 12:49
Fixed for U6 GDK:

* Memblock Sound creation could keep a copy of the last sound created, now fixed

"Small, smart, and running around the legs of dinosaurs to find enough food to survive, bedroom programmers aren't extinct after all "
Lampton Worm
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 21st Mar 2006 15:59
thanks!

Login to post a reply

Server time is: 2024-11-19 05:43:52
Your offset time is: 2024-11-19 05:43:52