S
Sakharam Phapale
Hi All,
Yestrday I had problem regarding WAVEFORMAT structure in WaveInOpen API
function call.
Following structure works properly. But next to that didn't.
Can anybody tell me why should I used Int16 and Int32 why not just Integer.
Since in it's original definition they are Long, in .NET long is converted
to Integer.
But giving Integer it doesn't works.
Even if I give all elements as int32 it doesn't works.
Explain when to use Int16 or Short, Int32 or Integer?
Hope explanation.
Following is not working
Structure WAVEFORMAT
Dim wFormatTag As Integer
Dim nChannels As Integer
Dim nSamplesPerSec As Integer
Dim nAvgBytesPerSec As Integer
Dim nBlockAlign As Integer
Dim wBitsPerSample As Integer
Dim cbSize As Integer
End Structure
This format works
Structure WAVEFORMAT
Dim wFormatTag As Int16
Dim nChannels As Int16
Dim nSamplesPerSec As Int32
Dim nAvgBytesPerSec As Int32
Dim nBlockAlign As Int16
Dim wBitsPerSample As Int16
Dim cbSize As Int16
End Structure
Thanks and Regards
Sakharam Phapale
Yestrday I had problem regarding WAVEFORMAT structure in WaveInOpen API
function call.
Following structure works properly. But next to that didn't.
Can anybody tell me why should I used Int16 and Int32 why not just Integer.
Since in it's original definition they are Long, in .NET long is converted
to Integer.
But giving Integer it doesn't works.
Even if I give all elements as int32 it doesn't works.
Explain when to use Int16 or Short, Int32 or Integer?
Hope explanation.
Following is not working
Structure WAVEFORMAT
Dim wFormatTag As Integer
Dim nChannels As Integer
Dim nSamplesPerSec As Integer
Dim nAvgBytesPerSec As Integer
Dim nBlockAlign As Integer
Dim wBitsPerSample As Integer
Dim cbSize As Integer
End Structure
This format works
Structure WAVEFORMAT
Dim wFormatTag As Int16
Dim nChannels As Int16
Dim nSamplesPerSec As Int32
Dim nAvgBytesPerSec As Int32
Dim nBlockAlign As Int16
Dim wBitsPerSample As Int16
Dim cbSize As Int16
End Structure
Thanks and Regards
Sakharam Phapale