• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[a little OT] File format for a bunch of floats
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[a little OT] File format for a bunch of floats


  • Subject: [a little OT] File format for a bunch of floats
  • From: Jerry <email@hidden>
  • Date: Wed, 22 Sep 2010 03:24:15 -0700

I have a _lot_ of audio files that have been generated by unusual means. They are 32-bit little endian floating point, one channel, with no header. I suppose this is some form of "raw." It's just a bunch of floats, all audio.

I would like to be able to have them play by e.g. invoking QuickLook on them or other similar means such as within DEVONthink. I don't want to modify the file unless I absolutely have to, and then only by automatic means (no manually opening in an editor and saving in another format.

I'm pretty sure this is a stupid question, but is there some file extension that I can add that will make the OS recognize them correctly?

My fallback is to save one file as AIFF and see how much bigger the AIFF is than the raw--that is the header size and it is at the beginning. I can read out that number of bytes and stuff them in to the front of my file before I write out the floats, then add .aiff to the file name. I recall having done this in the past (manually, for a small number of files) and it worked for all similar AIFF files regardless of lengths.

I know this isn't really a CoreAudio question but what better place to ask. 8^)

On a related note, I used to have an OS9 utility that would tell me the header length of AIFF files. Is there a tool around that does this? Command line?

Thanks,
Lance
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: [a little OT] File format for a bunch of floats
      • From: Jerry <email@hidden>
    • Re: [a little OT] File format for a bunch of floats
      • From: Paul Davis <email@hidden>
    • Re: [a little OT] File format for a bunch of floats
      • From: Jerry <email@hidden>
  • Prev by Date: Using Audio Unit to affect audio level application-wide ?
  • Next by Date: Re: [a little OT] File format for a bunch of floats
  • Previous by thread: Using Audio Unit to affect audio level application-wide ?
  • Next by thread: Re: [a little OT] File format for a bunch of floats
  • Index(es):
    • Date
    • Thread