This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hello everyone, I want to read then write all the headers of a AU audio file to another AU file. I understand different audio formats have different headers. I'm specifically dealing with AU files here. Here is the header data for a AU file, http://docs.python.org/2/library/sunau.html. I can retrieve the magic word field by using FileInputStream. Here is what I have so far.
I know there are libraries that already handle this but I need to do this without those libraries. Help is appreciated!
Do you know how the bytes are encoded, ie big endian or little endian, are the bytes signed etc.
Can you show an example of the bytes you need to convert to an int and the actual int value they represent.
Joined: Feb 25, 2013
They are all 32-bit unsigned integers encoded in big-endian byte order.
Changing the System.out.print to System.out.println in the original code above would print