pouët.net

Go to bottom

soundsystem for 4kb intros

category: general [glöplog]
 
Hi all,

What is the best sound system for 4kb intros?

Cheers,
people keep saying waveout is smaller than directsound, but i'm not sure, ds was always smaller in my code.
added on the 2009-06-27 19:04:46 by Gargaj Gargaj
well for me waveout was always smaller than directsound (~10-20 bytes) after compression. but the packing ratio will vary from intro to intro anyway since the rest of the code/data will influence it. so better try out both versions.
added on the 2009-06-27 19:15:01 by gopher gopher
I would worry more about the synth code / sequence format itself.
added on the 2009-06-27 21:37:20 by trc_wm trc_wm
I have the same experience as gopher, waveout about 20 bytes smaller than dsound after compression.
The actual sound output code should probably only be a couple of lines anyway and doesn't affect the rest of the synth (hopefully, anyway), so it's easy enough to just write 2 versions of it with a #define and see which one is smaller in the end.
added on the 2009-06-27 22:16:15 by snq snq
Use midi for coolness.
added on the 2009-06-27 23:04:02 by cerror cerror
interesting .. I play sound .. on the precalced side .. but let's say .. it depends on .. whatever .. d-.-b ..
added on the 2009-06-28 00:02:50 by yumeji yumeji
Valve.
added on the 2009-06-28 14:13:53 by --------- ---------
benefits of DirectSound is that you can get the time for your intro from there (sample position). If you use waveout, you'll need additional functions like QueryPerformanceCounter or timeGetTime, which need to be imported.
added on the 2009-06-29 10:46:57 by xTr1m xTr1m
with waveout you can use waveOutGetPosition which also gives you the time according to the current song position and it takes only another 4 byte hash for the import.
and so far even including this function along with the neccessary waveOutOpen, waveOutPrepareHeader and waveOutWrite was always smaller than dsound (at least for me). but admittedly its not that much saving anyway, so choose whatever you're comfortable with.
added on the 2009-06-29 11:00:43 by gopher gopher
Yes, but importing a function and calling it is 4 bytes each, whilst calling a member of an interface is just 4 bytes... I also get dsound code smaller than waveout.
added on the 2009-06-29 12:17:00 by xTr1m xTr1m

login

Go to top