Link to home
Start Free TrialLog in
Avatar of w3tim
w3tim

asked on

Urgent: Converting Byte(4) into integer (VB.Net)

ok, what I've got is...

24 08 00 00 which is apparently equal to 2084

equally

10 00 00 00 = 16
99 58 01 00 = 88200

I'm attempting breaking down a wave file for analysis.  I'm getting all my information off http://ccrma.stanford.edu/CCRMA/Courses/422/projects/WaveFormat/

Sorry if I'm sounding stupid but I'm having a bit of difficulty working with this out... It's probably fairly obvious (well, isn't it always when you know how).

Anyway, if anyone can explain how 24080000 is equal to 2084... please help! ;)

I'm hoping it's simple enough so a simple function would calculate it for the rest of the value i'll need in the file!

Thanks,

Tim
Avatar of jrandallsexton
jrandallsexton

Looks like you have hex:
2084d = h824 (turn it around 24 08 00 00h)
88200d = h15888

Avatar of w3tim

ASKER

Sorry, end of the day for me, I'm struggling.

Could you give me a rought guide for what I'm looking to do with the code!!
ASKER CERTIFIED SOLUTION
Avatar of jrandallsexton
jrandallsexton

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of w3tim

ASKER

Fantastic, that seems to be what I need :)!
Glad I could help.