I hope someone can help me!! I need to read the header of a binary audio file (FLAC) which uses non-standard portions of bits for numeric fields. It also uses Big Endian. I have a function to convert normal 16 & 32 bit integers from little to big endian, but bit divisions in numbers is beyond me.
Here is the structure in bits. <20> SampleRate <3> Channels <5> BitsPerSample <36> TotalSamples This adds up to 64 bits (8 bytes). Given an array [1..8] of byte, can someone please help me obtain the value of these 4 fields. Many thanks. Ross. _______________________________________________ Delphi mailing list -> [email protected] http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

