NESDev and Strangulation Records messageboards
Forum Index | FAQ | New User | Login | Search

Previous ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectRe: Help!  
Posted byDisch
Posted on9/17/03 11:53 PM
From IP66.127.105.177  



> I'm just learning how to make sounds in DOS.

Ack!

DOS = evil. Focus on Windows... or Linux.. or Mac... or any other OS that still exists. Learning DOS specific stuff is useless.

Streaming sound output is pretty straightforward in Windows using C/C++. It gets a little tricker when you use DirectSound... so if you want to keep it simple you can use the Windows waveOut routines.

Here's a link to the start of the related info on MSDN:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_waveoutopen.asp


The functions of interest are:

waveOutOpen
waveOutProc --- this is optional, I don't use it when steaming sound
waveOutPrepareHeader
waveOutWrite
waveOutUnprepareHeader
waveOutReset --- this is useful, but not necessary
waveOutClose


If you want I can throw together a quickie tutorial on how to stream sound (I've been bored =P).


Once you know how to stream sound... you need to generate it. Brad Taylor's doc hosted here on nesdev does a more than adequate job with that. It may take a few re-reads for it to finally sink in, but it really covers everything quite nicely.



-
Entire Thread
Subject  Posted byPosted On
*Help!  kain falanx G9/17/03 4:11 PM
.*More questions  kain falanx G9/19/03 09:54 AM
..*Re: More questions  Big Time9/19/03 8:55 PM
...*Re: More questions  hcs9/26/03 00:12 AM
..*Re: More questions  loopy9/19/03 4:01 PM
...*Re: More questions  kain falanx G9/20/03 11:42 AM
....*Re: More questions  Laughy9/20/03 9:06 PM
....*Re: More questions  ASMGuy9/20/03 4:46 PM
.....*Re: More questions  kain falanx G9/21/03 3:29 PM
.*Re: Help!  Big Time9/19/03 03:12 AM
..Re: Help!  Disch9/17/03 11:53 PM
..*Re: Help!  kain falanx G9/19/03 09:56 AM
...*Re: Help!  Disch9/19/03 6:59 PM
....*Re: Help!  dXtr9/19/03 7:19 PM
..*Re: Help!  Laughy9/18/03 04:44 AM
...*Re: Help!  Disch9/18/03 06:03 AM
....*Re: Help!  Laughy9/18/03 8:42 PM
.....*Re: Help!  Disch9/18/03 10:12 PM
......*Re: Help!  Disch9/18/03 10:13 PM
.*Re: Help!  Memblers9/17/03 7:15 PM
Jump to

Memblers' homepage             Contact Me

Forums powered by WWWThreads Demo