Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

display realtime audio

Status
Not open for further replies.

bigbattery

Programmer
Jun 6, 2004
3
GB
I was hoping someone out there could give me a little help. Trying to develop a virtual oscilloscope using borland visual c++ builder 6. Basically its advice regarding audio card / line in / selection and primary or secondary buffering, then displaying the information in real time using fourier analysis.

It's for a big project, just need a few ideas to get me started. Does anyone know a decent website tutorial or anything? Thanks in advance,
Chris
 
Use COM. Create an instance of windows mediaplayer and play it. More details you may find in OleView(a VisualC++ tool) or VBA object viewer, by using it from any of MSOffice applications (Word, Excel, Access...)

Ion Filipski
1c.bmp
 
think that theres a directx filter on the dspack website just waiting for you to download.(which will specify all of your requirments)
 
Thanks for both of those, but I was looking for something more in the way of a break down. The first thing I'd like to do is to get the name of the available soundcards which are available for input, then select a mixer channel for an available device. It's for an undergraduate projct, so I can't use any external components ideally.

Is the soundcard name an environment variable? If so how is it easily retrieved? I have already written the code enumerating the devices (how many, what their id no's are 1,2,3) but can't find anything sensible about their names anywhere. Hope you can help.
 
What about using DirectX Libraries?

Those libraries use the standars, so it is indifferent the brand or type of your audio card.

DirectX has a special library (DirectSound) which is able to retrieve the information of your SoundCard and by using the TChart classes you have almost what u need.

--- LastCyborg ---
 
Great! That's exactly what I want to hear! Where is the library that I need though? I can't find any call in dsound that retrieves directx soundcard capable cards. I'm just glad we're on the directx page guy....

Why is it so difficult to retrieve system component names?!?
 
You need to download the DirectX SDK (for c++ obvious) from Microsoft site. I don't know where excatly the link is. I just bought a book and it contained those libraries. But don't worry they are FREE.

Even in the BCB's smples u can find some examples of using DirectX (I'm not sure but I think that they are just for video) anyway is a way to start in DirectX.

When I get a free time I'm going to check in the book if I can help u.

--- LastCyborg ---
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top