473,473 Members | 2,215 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Sound card control with VB6?

I am modifying some VB6 code I found online
for computing the spectra of sound card data
http://fullspectrum.com/deeth/programming/vb.html#Spect
in order to build a receiver to detect Gamma Ray
Bursts (GRB).
http://www.infiltec.com/SID-GRB@home

The original code allows for sampling rates from 11.025 - 44.1khz,
and that works OK, but I need to sample my Audigy2 sound card
at 48 or preferably 96khz in order to look at signals around 24khz.

So far I have not been able to figure out how to adjust
the sampling rate to 48 or 96kHz. The original code
has the following statements:

Private Const WAVE_FORMAT_1M08 = &H1& '/* 11.025 kHz,
Mono, 8-bit
Private Const WAVE_FORMAT_1S08 = &H2& '/* 11.025 kHz,
Stereo, 8-bit
Private Const WAVE_FORMAT_1M16 = &H4& '/* 11.025 kHz,
Mono, 16-bit
Private Const WAVE_FORMAT_1S16 = &H8& '/* 11.025 kHz,
Stereo, 16-bit
Private Const WAVE_FORMAT_2M08 = &H10& '/* 22.05 kHz,
Mono, 8-bit
Private Const WAVE_FORMAT_2S08 = &H20& '/* 22.05 kHz,
Stereo, 8-bit
Private Const WAVE_FORMAT_2M16 = &H40& '/* 22.05 kHz,
Mono, 16-bit
Private Const WAVE_FORMAT_2S16 = &H80& '/* 22.05 kHz,
Stereo, 16-bit
Private Const WAVE_FORMAT_4M08 = &H100& '/* 44.1 kHz,
Mono, 8-bit
Private Const WAVE_FORMAT_4S08 = &H200& '/* 44.1 kHz,
Stereo, 8-bit
Private Const WAVE_FORMAT_4M16 = &H400& '/* 44.1 kHz,
Mono, 16-bit
Private Const WAVE_FORMAT_4S16 = &H800& '/* 44.1 kHz,
Stereo, 16-bit

And I tried to add

Private Const WAVE_FORMAT_48M16 = &H1000& '/* 48 kHz, Mono,
16-bit 01/29/05
Private Const WAVE_FORMAT_96M16 = &H2000& '/* 96 kHz, Mono,
16-bit 01/29/05

But when I try to access the 48 or 96kHz mode I get
an error message saying "You have no audio input devices!"

Any suggestions?

TIA,

Dave
Jul 17 '05 #1
0 7394

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
by: The Road To Utopia | last post by:
Here's one for the trolls...a common jibe from them is setting up audio/video hardware under linux. Ok, true story: at work today, someone asked me if I could tell him why his XP Home would play...
4
by: Robert Gravereaux | last post by:
I'm putting together a C# .Net forms project on win2k. The application requires some sort of horn sound. I've never implemented any audio in .Net, so I'm not sure how best to accomplish this. ...
3
by: June Li | last post by:
H I got a problem with detecting sound card with Windows x I use SDK function waveInGetNumDevs() to test if there is a sound card. But even if there is no sound card installed, the function...
0
by: June Li | last post by:
H I got a problem with detecting sound card with Windows xp I am working on an application to test microphone. First I need detect if there is a sound card installed (or integrated audio...
3
by: larry | last post by:
Hi, my friends, My boss asked me to use sound card to do analog to digital conversion for my application. I know when we record sound, sound card changes anolog signal to digital file. I have no...
7
tpgames
by: tpgames | last post by:
I know that an internal sound card has to be one listed as for a specific mother board. However, does this rule apply to external sound cards? I use a satellite A75-s2112 toshiba laptop, intel pent...
3
by: =?Utf-8?B?SlZE?= | last post by:
In my system, i have two sound card installed. I am developing one multimedia application in c# using DirectShow. I want to select particular sound card and play one audio file and, play another...
2
by: JDeats | last post by:
Using VS.NET 2005, if you place a WinForms WebBrowser control on a form, then place a command button on that form and in the "click" even handler for the command you do: webBrowser1.DocumentText...
2
by: lazzypink | last post by:
hi guys! i having a problem in my project which is create a media player and let the user choose the sound card for audio output. Let say i have 2 sound card in my computer, i want to select the...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.