On Tue, 2007-07-03 at 00:49 +0200, Roman Haefeli wrote:
i hacked around a bit in aiff-files. here the flag '-rate 96000' didn't have any effect on the resulting aiff-files as well. it seems like it is hardcoded to 44100 for aiff-files. can anyone confirm this by reading the source of [writesf~]?
anyway, i found out, how to fix aiff-files. the interesting bytes are 28-31, resp. 0x0000001C -> 0x0000001F
you'll find this:
40 0E AC 44
change this to:
40 0F BB 80
two additions are needed:
valid for files made with pd/[writesf~].
the exponent part (where 0x0E means '*1', 0x0F means '*2', 0x0D means '*0.5', etc.) and WX YZ the fraction part.
roman
___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de