Re: new to audio programming

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



If you want to use C#, check out FMOD's new API: FMOD Ex.
They have a C# version of the API, and it is very easy to work with.

The Ex API is still beta software, but it's coming along quite well... I
believe it is more powerful than straight DirectX at this point.

"jtharkey" wrote:

> thanks for the reply.
>
> i was hoping to use c# to get this going, so i hope i can get it to work in
> direct sound. i was wondering; do i have to actually capture the sound that
> is coming from the input on the sound card, or will the sound from the input
> already be present in the output buffer? is there a way i could just attach
> the dsound effects to the sound that is coming thru the input on the sound
> card without actually recording it? im confused.
>
> i guess what i need is a good tutorial explaining how sound is processed in
> windows and thru directx.
>
> thanks
>
> "Chris P. [MVP]" wrote:
>
> > On Thu, 14 Apr 2005 14:20:06 -0700, jtharkey wrote:
> >
> > > im new to audio programming and need a few questions answered. let me start
> > > out by saying what i am trying to accomplish.
> >
> > I would forget about DMusic, it has its uses but is useless for live sound.
> >
> > Your choices are DSound or DShow.
> >
> > DSound lets you use effects on your output buffers. The effects go
> > directly to the audio output, so you can't capture your processing except
> > by capturing the general "Stereo Mix" which will include sound from
> > anything else that is running at the time. You cannot record the stereo
> > mix if you are already recording from another input such as a mic or line
> > in. There also seems to be a limit of 1 instance of each type of filter,
> > or at least I haven't figure out how to get more than one of each.
> >
> > DShow lets you do all of the above, but you can have more than one instance
> > of a filter, and you can direct the output to a file or DirectSound output
> > or both. You can even prototype what it's going to sound like without
> > writing any code by using the GraphEdit utility. DirectShow will have a
> > little more live latency unless you use the "WDM Streaming Capture Devices"
> > as the source. General latency can be control by controlling buffer sizes
> > at the application level. If you aren't writing your own filters, DShow is
> > easy enough to program, but there's a bit of a learning curve if your not
> > familiar with COM. Punching effects in or out during a recording can be a
> > little tricky unless the filter has a disable option. See attached picture
> > for a GraphEdit sample
.



Relevant Pages

  • AES AWARDS
    ... API racks, some of which caused power supply problems. ... This one is always a real tossup, but I kind of liked the Core Sound ... tetrahedral microphone array, the AmbiMic. ... modern Dolby Digital EX systems. ...
    (rec.audio.pro)
  • Re: Synthesis from a spectrogram
    ... In order to make the spectrogram, I bandpass the original sound many ... filter it in the exact same way as I filtered the original ... leave the filtered signals as is. ...
    (comp.dsp)
  • Re: Is it time for remove (crap) ALSA from kernel tree ?
    ... What I indicated was that if someone wants to use multiple applications that work together bringing you The One Integrated Sound Experience it might make sense to use applications... ... Don't go blame ALSA for either the fact that aRTs isn't actually useful nor KDE's decision to stick with it for way too long. ... So that leaves that "bad" that you prefixed API with but keep in mind that ALSA is designed as an audio system suitable for advanced/professional use while also still filling the needs of consumer users and that it does in fact do so is obvious from the fact that everyone's using it. ... The ideal situation is that anyone in userspace is using a single API _such_ as Phonon since userspace has to synchronise things itself as well -- it might for example want to provide you with the option to automatically mute your music when you get an incoming call and this is not something which alsa-lib can do by itself. ...
    (Linux-Kernel)
  • Re: method to generate arbirtrary shaped sound energy
    ... basically filtered white noise, but I think it would be too difficult ... an RC filter. ... mathematically generate the sound somehow in the analog domain (pure ... and put it in the array. ...
    (sci.electronics.design)
  • Re: splitting between 60Hz tone
    ... Free Filter but there are some others available too). ... the Free Filter adjust the sound to that 50 Hz sampled tone, ... Setting the cue points is easy. ...
    (rec.audio.pro)