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.

Newcomers DBPro Corner / Need help with command 'MEMBLOCK FROM SOUND'

Author
Message
dark nooby
16
Years of Service
User Offline
Joined: 30th Mar 2008
Location:
Posted: 5th May 2008 03:04 Edited at: 5th May 2008 03:07
Can someone plz enlighten me on how 'Memblock from sound' works. I roughly know how memblock works but just cant seem to grasp how DBP would get a 3minute wav file(music file) into a Memblock.

thanks
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 5th May 2008 05:30
Here is a type defined for DBPro memblocks that are created in that manner:



The memblock contains this 28 byte header at the beginning, followed by the sound samples.

The format most often used is WAVE_FORMAT_PCM, which has a value of 1. The sound that you hear is the samples played back at the sample rate. The entire process is controlled by that header at the beginning.
dark nooby
16
Years of Service
User Offline
Joined: 30th Mar 2008
Location:
Posted: 5th May 2008 11:32
thanks alot for the info jinzai very handy

Login to post a reply

Server time is: 2024-09-27 14:18:09
Your offset time is: 2024-09-27 14:18:09