Re: [Dev-C++] New to the list, and a quick question
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2007-01-11 18:42:43
|
Note that sound is very hard to compress, and for most applications it isn't meaningful to spend any time to compress/decompress it. The only situations where compression is important is when used in flash memory of small hand-held devices, or if transmitted over a bandwidth-limited media, such as using a GPRS phone. Cmpiling audio or images into an application is quite often done, and works very well. By having the information in the exe file - or even better in one or more dll files - the OS will be able to throw away the information in case of a mermory contention. If the information is read in from a data file (read in, instead of memory-mapped), the OS must swap out the information so that it can restore the information later without letting the application know about it. Information stored in resource files, the exe file or a dll file does not need to be swapped, since the OS specifically knows how to load the information on demand directly from the original source. /Per W On Thu, 11 Jan 2007, Pedro Perez wrote: > Hello; > > Is not advisable to include a complete audio file in your program, maybe if is a small file you can include it as a resource file. > > I think the best you can do is to pack it in a file in some format you desire (*.dat), unpack it and use it as desire. (Tip: You can apply a compress format leaving the .dat extension and then encrypt it, that helps too). > > > > ____________________________________________________________________________________ > Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |