DSPRelated.com
Forums

Soundcard uses?

Started by Gary Cavie November 14, 2003
Hi,

Sorry for a numpty question, but I would like to play around with using 
the soundcard for some limited DSP use, in a larger program. Could nybody 
point me to some resources which could assist me in learning a bit more 
about this? I've got hold of Ethan Brodsky's document on programming the 
soundcard, but need some more to start on.

Thanks

Gary
Check this:

http://www.abvolt.com/Sources.htm#Howtowork

Gary Cavie wrote:
> > Hi, > > Sorry for a numpty question, but I would like to play around with using > the soundcard for some limited DSP use, in a larger program. Could nybody > point me to some resources which could assist me in learning a bit more > about this? I've got hold of Ethan Brodsky's document on programming the > soundcard, but need some more to start on.
Vladimir Vassilevsky DSP and Mixed Signal Design Consultant http://www.abvolt.com
Gary Cavie wrote:
> Hi, > > Sorry for a numpty question, but I would like to play around with using > the soundcard for some limited DSP use, in a larger program. Could nybody > point me to some resources which could assist me in learning a bit more > about this? I've got hold of Ethan Brodsky's document on programming the > soundcard, but need some more to start on. > > Thanks > > Gary
Can't help with your question. But your question plus what I found doing a Google search for ( "Ethan Brodsky" soundcard ) suggests you could answer a question of mine. In the near future I may want to write some fairly low level routine to access the "Intel Integrated Audio" on my personal system. Can you point me to suitable newsgroup(s) and FAQs? There is also USB based audio in my future. I assume much of above would apply.
In article <vrauff7objbu88@corp.supernews.com>, rowlett@atlascomm.net 
says...
> > > Can't help with your question. But your question plus what I found > doing a Google search for ( "Ethan Brodsky" soundcard ) suggests you > could answer a question of mine. > > In the near future I may want to write some fairly low level routine > to access the "Intel Integrated Audio" on my personal system. Can you > point me to suitable newsgroup(s) and FAQs? > > There is also USB based audio in my future. I assume much of above > would apply. > >
Hi Richard, I wish I could help - but being an almost complete novice at this sort of thing, I'm not sure I even understand the question fully ;-) The only other ng I found is alt.sb.programmer, which may or may not be of use in your quest. Sorry Gary
Gary Cavie wrote:

> Hi, > > Sorry for a numpty question, but I would like to play around with using > the soundcard for some limited DSP use, in a larger program. Could nybody > point me to some resources which could assist me in learning a bit more > about this? I've got hold of Ethan Brodsky's document on programming the > soundcard, but need some more to start on. > > Thanks > > Gary
Gary, You neglected to mention what operating system you're using. If by chance it's Windows XP, 2000, NT, or other incarnation of the Win32 API, then what I suggest is that you use that API. For example, check out the waveOutOpen() and waveInOpen() functions. You also neglected to mention what language you're using. If by chance it's C++, then I just recently implemented a Waveout:: class that makes *basic* sound card manipulation a breeze. Essentially the constructor allows you to establish a sample rate and block size. You also provide a pointer to a callback function in which you generate the data to be output. I'm currently working on the dual Wavin:: class. Also, if you're using C or C++ and don't have and aren't willing to pay for Microsoft Visual C++ (what is it, 6.0 now?), I highly recommend you use the "Minimalist Gnu for Windows" (mingw) development platform (www.mingw.org). It is FREE! You can also find a very handy windows .hlp file that documents the win32 API. -- % Randy Yates % "...the answer lies within your soul %% Fuquay-Varina, NC % 'cause no one knows which side %%% 919-577-9882 % the coin will fall." %%%% <yates@ieee.org> % 'Big Wheels', *Out of the Blue*, ELO http://home.earthlink.net/~yatescr
In article <U6otb.1410$Rk5.268@newsread1.news.atl.earthlink.net>, 
yates@ieee.org says...
> Gary Cavie wrote: > > > Hi, > > > > Sorry for a numpty question, but I would like to play around with using > > the soundcard for some limited DSP use, in a larger program. Could nybody > > point me to some resources which could assist me in learning a bit more > > about this? I've got hold of Ethan Brodsky's document on programming the > > soundcard, but need some more to start on. > > > > Thanks > > > > Gary > > Gary, > > You neglected to mention what operating system you're using. If by chance > it's Windows XP, 2000, NT, or other incarnation of the Win32 API, then > what I suggest is that you use that API. For example, check out the > waveOutOpen() and waveInOpen() functions.
Good call - it's Windows 98SE
> > You also neglected to mention what language you're using. If by chance > it's C++, then I just recently implemented a Waveout:: class that makes > *basic* sound card manipulation a breeze. Essentially the constructor > allows you to establish a sample rate and block size. You also provide a > pointer to a callback function in which you generate the data to be > output. I'm currently working on the dual Wavin:: class.
The main one that I use is Borland C++ Builder 4.0, although I do have access to Visual C++ 6.0 - just not so keen on it!
> > Also, if you're using C or C++ and don't have and aren't willing to > pay for Microsoft Visual C++ (what is it, 6.0 now?), I highly recommend > you use the "Minimalist Gnu for Windows" (mingw) development platform > (www.mingw.org). It is FREE! You can also find a very handy windows > .hlp file that documents the win32 API. >
I'll have a look at that one - I'm always up for a freebie! Thanks for the response Gary
Hi!

> The main one that I use is Borland C++ Builder 4.0, although I do have > access to Visual C++ 6.0 - just not so keen on it!
In that case you might also check out this: www.dewresearch.com Full DSP library with plug and play support for latest soundcards and components for C++Builder 4.0. Regards! Atmapuri
In article <LyFtb.5614$2B6.1072274@news.siol.net>, Janez.Makovsek@usa.net 
says...
> Hi! > > > The main one that I use is Borland C++ Builder 4.0, although I do have > > access to Visual C++ 6.0 - just not so keen on it! > > In that case you might also check out this: > www.dewresearch.com > > Full DSP library with plug and play support for latest soundcards > and components for C++Builder 4.0. > > Regards! > Atmapuri > > >
Thanks Atmapuri - that looks like just what I need. I'll have a play with it and let you know how I get on Gary
Look at the game site http://www.gamedev.net/community/forums/
which is loaded with info.  Its mostly Direct X (graphics) but there is also
stuff about DirectSound.  I use DirectSound and DirectSoundCapture.  I have
tried the standard API but it has latency and control problems.  Personally
I have found that using DirectSound is easier than the API and it seems to
require less code.

I've got the soundcards working, what I need to do is work on my DSP stuff
(which is not so good).  I have to write an FSK demodulator (writing a
modulator was easy).

Brian

"Gary Cavie" <m0jjh@despammed.com> wrote in message
news:MPG.1a2164487140c6269896c7@news.individual.net...
> In article <LyFtb.5614$2B6.1072274@news.siol.net>, Janez.Makovsek@usa.net > says... > > Hi! > > > > > The main one that I use is Borland C++ Builder 4.0, although I do have > > > access to Visual C++ 6.0 - just not so keen on it! > > > > In that case you might also check out this: > > www.dewresearch.com > > > > Full DSP library with plug and play support for latest soundcards > > and components for C++Builder 4.0. > > > > Regards! > > Atmapuri > > > > > > > > Thanks Atmapuri - that looks like just what I need. I'll have a play with > it and let you know how I get on > > Gary

Brian Reinhold wrote:
> > Look at the game site http://www.gamedev.net/community/forums/ > which is loaded with info. Its mostly Direct X (graphics) but there is also > stuff about DirectSound. I use DirectSound and DirectSoundCapture. I have > tried the standard API but it has latency and control problems. Personally > I have found that using DirectSound is easier than the API and it seems to > require less code.
I work with soundcards using Win32 API, which is quite simple indeed. The minimal buffering delay required for reliable work of API is about 50ms.
> I've got the soundcards working, what I need to do is work on my DSP stuff > (which is not so good).
I am not good at Windows programming however the DSP part is not a problem.
> I have to write an FSK demodulator (writing a > modulator was easy).
If it is a commercial project, I would be glad to offer you my services. Vladimir Vassilevsky DSP and Mixed Signal Design Consultant http://www.abvolt.com