Wav File Cart Chunk Header

ZeroEffect

Well-known member
Joined
Oct 24, 2004
Messages
180
Location
Detroit, MI
If you didnt know wav file can store data about the fine n a "cart chunk header" I am trying to find a way to read this information. I have found a code example in C# but I have no idea on C# this is the code

Code:
typedef struct cartchunk_tag
{
     DWORD ckID;
     DWORD ckSize;
     BYTE ckData[ckSize];
}
typedef struct cart_exetension_tag
{
     CHAR Version[4];
     CHAR Title[64];
     CHAR Artist[64];
     CHAR CutID[64];
     CHAR ClilentID[64];
     CHAR Category[64];
     CHAR Classification[64];
     CHAR OutCue[64];
     CHAR StartDate[10];
     CHAR StartTime[8];
     CHAR EndDate[10];
     CHAR EndTime[8];
     CHAR ProducerAppID[64];
     CHAR ProducerAppVersion[64];
     CHAR UserDef[64];
     DWORD dwLevelRefference
     CART_TIMER PostTimer[8];
     CHAR Reserved[276];
     CHAR URL[1024];
     CHAR TagText[];
} CART_EXTENSION;
typedef struct cart_timer_tag
{
     FOURCC dwUsage;
     DWORD dwValue;
} CART_TIMER

I think these are variables and byte sizes couuld someone give me a hand in doing the conversion to vb.net. Im trying to build an application that will rename file based on the info in the cart chunk header. Any help would be very helpfull.

Thansk In advance

ZeroEffect
 
This sort of thing always shocks me, why cant you read the c#? It uses all the same types, they languages are similar enough that you can directly convert between them with ease and for the most part all youre doing is a little keyword substitution. By not bothering to learn c# youre cutting yourself off from at least half the sample code availble for .NET.

Just in case youre interested that code isnt c#, its c, and while its slightly harder to translate than c# is if it ends up taking you more than 15 minutes you need to practice more.
 
Wraith said:
This sort of thing always shocks me, why cant you read the c#? It uses all the same types, they languages are similar enough that you can directly convert between them with ease and for the most part all youre doing is a little keyword substitution. By not bothering to learn c# youre cutting yourself off from at least half the sample code availble for .NET.

Just in case youre interested that code isnt c#, its c, and while its slightly harder to translate than c# is if it ends up taking you more than 15 minutes you need to practice more.

Wraith, Forgive me for sounding crass.

Please dont assume that I have stopped looking for an solution to my problem just because I have posted on this board. I really dont know the first thing about c, I was looking for some guidence. I have posted to this site only when I have hit a road block and cant seem to find an answer. While waiting to see if someone response I often scour through MSDN, my help files, other site and through the forum for anything remotely like what I am trying to do. I also build temp projects that are very crude to take apart and learn the how and why of the code. Also 99% of my needs are met by using VB.Net. I have only been program for about a year and a half and it has been mainly a small hobby. So I am still a little behind the curve.

If you have some constructive information please feel free to post again. I received a great deal of guidence from people on this site and thier sister site for vb6. I hope the help and guidence continues.

Thasnks for your input.

ZeroEffect
 
Back
Top