Click here to Skip to main content
16,009,144 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionBinding Source Updation Pin
SekharOne11-Oct-07 21:04
SekharOne11-Oct-07 21:04 
AnswerRe: Binding Source Updation Pin
Dave Kreskowiak12-Oct-07 2:10
mveDave Kreskowiak12-Oct-07 2:10 
Questiondisplaying dynamic image in crystal report [modified] Pin
kiddsx4u11-Oct-07 20:39
kiddsx4u11-Oct-07 20:39 
QuestionPassing parameters to crystl Report at runtime using vb.et Pin
saneng11-Oct-07 20:11
saneng11-Oct-07 20:11 
AnswerRe: Passing parameters to crystl Report at runtime using vb.et [modified] Pin
kkb_200111-Oct-07 20:20
kkb_200111-Oct-07 20:20 
QuestionProblem in ODBCPERMISSION (VB .NET) [modified] Pin
kkb_200111-Oct-07 19:42
kkb_200111-Oct-07 19:42 
AnswerRe: Problem in ODBCPERMISSION (VB .NET) Pin
Vimalsoft(Pty) Ltd11-Oct-07 20:20
professionalVimalsoft(Pty) Ltd11-Oct-07 20:20 
QuestionTheory of the WAV Pin
Benny_Lava11-Oct-07 19:07
Benny_Lava11-Oct-07 19:07 
Hi
yet again me...
Thanks all for your patience.

I'm building a wav builder software for my firm. I have completed the program at 95% and only one bug remains.

The program has variable sampleRate, bits/second,frequency,duration.

My algorithm for building the sine wave works, but calculating how many samples would it take for a provided duration (ms) is buggy...

It goes something like this


dblFrequency = Frequency

dblWaveTime = 1 / dblFrequency
dblSampleTime = 1 / CDbl(lngSampleRate)
dblDataSlice = (2 * PI) / (dblWaveTime / dblSampleTime)


If intBits = 8 Then
lngLimit = 127
lngSamples = CDbl(lngSampleRate) * duration / 1000
Else
lngLimit = 32767
lngSamples =cdbl(lngsamplerate) * duration * 2 / 1000 'because it is 16 bit, 2 bytes is written, thus * 2
End If

This algorithm creates problems...
I have an array() as byte, in which the results are filled... They are calculated as math.sine...
But the problem is here in the upper code...

so, for example the duration is 323 ms, i need to calculate how many samples does it take for the duration.

Any help is greatly appreciated.

Thank you!


AnswerRe: Theory of the WAV Pin
Guffa11-Oct-07 21:13
Guffa11-Oct-07 21:13 
QuestionCrystalReport and Subreport ? Pin
dcode2511-Oct-07 15:19
dcode2511-Oct-07 15:19 
AnswerRe: CrystalReport and Subreport ? Pin
kkb_200111-Oct-07 20:11
kkb_200111-Oct-07 20:11 
Questioncapture images using webcam Pin
hulk414111-Oct-07 9:23
hulk414111-Oct-07 9:23 
AnswerRe: capture images using webcam Pin
Christian Graus11-Oct-07 10:37
protectorChristian Graus11-Oct-07 10:37 
GeneralRe: capture images using webcam Pin
Dave Kreskowiak11-Oct-07 10:40
mveDave Kreskowiak11-Oct-07 10:40 
AnswerRe: capture images using webcam Pin
Dave Kreskowiak11-Oct-07 10:39
mveDave Kreskowiak11-Oct-07 10:39 
AnswerRe: capture images using webcam Pin
Zia Ul Haq Soofi11-Oct-07 20:01
Zia Ul Haq Soofi11-Oct-07 20:01 
GeneralRe: capture images using webcam Pin
Dave Kreskowiak12-Oct-07 2:06
mveDave Kreskowiak12-Oct-07 2:06 
QuestionHow to run the application on machine without visual studio installed Pin
jyothim11-Oct-07 8:52
jyothim11-Oct-07 8:52 
AnswerRe: How to run the application on machine without visual studio installed Pin
Dave Kreskowiak11-Oct-07 10:11
mveDave Kreskowiak11-Oct-07 10:11 
GeneralRe: How to run the application on machine without visual studio installed Pin
jyothim15-Oct-07 7:00
jyothim15-Oct-07 7:00 
Questioncrystal Pin
twsted f811-Oct-07 7:23
twsted f811-Oct-07 7:23 
Questiondatagrid manipulation Pin
Abbhie11-Oct-07 6:09
Abbhie11-Oct-07 6:09 
AnswerRe: datagrid manipulation Pin
Dave Kreskowiak11-Oct-07 7:00
mveDave Kreskowiak11-Oct-07 7:00 
GeneralRe: datagrid manipulation Pin
Abbhie11-Oct-07 7:15
Abbhie11-Oct-07 7:15 
GeneralRe: datagrid manipulation Pin
Dave Kreskowiak11-Oct-07 7:55
mveDave Kreskowiak11-Oct-07 7:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.