Slashdot Mirror


Apple's Lossless Audio Codec (ALAC) Now Open Source

Revotron writes "Apple has released the full source to their Apple Lossless Audio Codec under the Apache license. ALAC was developed by Apple and deployed on all of its platforms and devices over the last 10 years. Could the release of the ALAC source code mark a possible first step in opening up more of the iOS platform?"

58 of 526 comments (clear)

  1. Why not... by Lanteran · · Score: 5, Insightful

    ...just use FLAC?

    --
    "People don't want to learn linux" hasn't been a valid excuse since '03.
    1. Re:Why not... by Anonymous Coward · · Score: 3, Funny

      Because FLAC is for cyber-communists.

    2. Re:Why not... by Tr3vin · · Score: 5, Informative

      If you use and iPod, FLAC isn't going to play.

    3. Re:Why not... by BasilBrush · · Score: 5, Informative

      It seems like FLAC has a slight compression edge

      Not according to this table.
      http://wiki.hydrogenaudio.org/index.php?title=Lossless_comparison

      Note for the compression ratio, smaller percentage is better. ALAC is slightly better than FLAC. But it's so marginal it makes no difference.

    4. Re:Why not... by MagusSlurpy · · Score: 2

      The fact that you have to interface the device with iTunes instead of just an OS file manager, and can't play FLAC, Ogg Vorbis or WMA files. Not so much of a problem now, since all the music stores have died, but it was a problem when it launched and everyone besides Apple sold music as DRMed WMA files.

      --
      My sister opened a computer store in Hawaii. She sells C shells by the seashore.
    5. Re:Why not... by NiceGeek · · Score: 3, Informative

      You *might* have a point about the connectors, but then again, that applies to many, many electronics manufacturers. You are *not* locked to iTunes, neither for the store or for updating your iPod. Spin your FUD elsewhere
      .

    6. Re:Why not... by tweak13 · · Score: 2

      Depending on which device you have, and which version of the software it's running... Yes, you may very well be locked into iTunes for moving music onto your iPod.

    7. Re:Why not... by Baloroth · · Score: 2

      libavcodec includes ALAC support (according to Wikipedia, anyways) so VLC or somesuch could convert ALAC->FLAC.

      --
      "None can love freedom heartily, but good men; the rest love not freedom, but license." --John Milton
    8. Re:Why not... by Yvan256 · · Score: 5, Interesting

      And going with a locked-down, Microsoft-created format is better how, exactly? And iPod/iTunes was compatible with MP3 from day one. I don't know any non-nerd who uses Vorbis or FLAC.

      And at least Apple had the insight of going with AAC, developed by Dolby, instead of trying to re-create the wheel like Microsoft always does.

      Take a screenshot with Windows: Microsoft BMP. Like there wasn't enough graphic formats at the time.
      Take a screenshot on Mac OS X: 24-bit PNG (Open format which already existed).

      Default audio format with Windows: Microsoft WMA. MP3 and VQF were available at the time.
      Default audio format with Apple: AAC (developed by Dolby)

    9. Re:Why not... by DJRumpy · · Score: 4, Informative

      No, the connectors that interface with the PC are standard USB or Firewire. This is FUD. Any MP3, AAC, AIFF, or WAV will work with an iPod, iPhone, iPad, etc. You are NOT required to use iTunes either. There are a multitude of alternatives (http://www.sourceforge.net). Even if you choose to use iTunes, it can be set to use MP3 if you don't like AAC.

      I mean seriously, 2 seconds on Google would net you a decent list of alternatives without any effort at all:

      http://www.pcworld.com/article/227348/apple_itunes_alternatives_make_managing_your_music_easy.html

      Frankly I think some of the folks on here are so Anti-Apple they dont' even bother to verify what they post anymore. They just regurge the same bile that seems all too common in here these days.

    10. Re:Why not... by blind+monkey+3 · · Score: 2

      Not FUD about flac, half my music is flac and my NanoTouch (a present) won't play them - unless you know of a way of getting flac to work?

      --
      BM3
    11. Re:Why not... by Nyder · · Score: 2

      You are locked to their eco-system. iTunes, Propreitory docks and cables, etc. Note that the spirit of the OP's comment applies to iPod Touch and iPhone too.

      I own an iPod classic 6, and while I am stuck using the software that is on the iPod, i use Winamp to move my music to my iPod. I don't even have iTunes installed.

      And while I locked down to the firmware that is in the Classic 6, it does what I need it to, play music. Sure, i convert flac to mp3, but whatever, that isn't hard.

      --
      Be seeing you...
    12. Re:Why not... by Moridineas · · Score: 3, Insightful

      Honestly, who gives a shit if the connector on one end isn't a mini-usb. iPhones/iPods/iPads support USB bus connections. Every hotel I've stayed at in the last 2-3 years just about has had an alarm clock with an Apple dock connector, so, I'm actually getting more utility out of the proprietary connector than you are with a standard (I've never even seen an alarm clock that has a USB plug). But again, who really gives a shit? You can get a new cable for like $3. I can see getting one's panties in a twist over DRM (though gone for years from music) or what not, but a cord--that is probably for most people even more ubiquitous than mini/micro-USB? Sheesh.

    13. Re:Why not... by Guy+Harris · · Score: 2

      Are you trying to say that Apple is using a USB plug, but it's not USB-compatible? I'd love to hear the details.

      No, he's saying that the iPods/iPhones/iPads have a connector that's not a USB connector; they also come with a cable that has a dock connector plug on one end, to plug into an iPod/iPhone/iPad, and a USB connector on the other end, to plug into a standard USB port. The cable does not carry all signals from the dock connector, as not all of them map to USB.

    14. Re:Why not... by Hadlock · · Score: 2

      There's very little if any reason not to include a mini/micro USB port on the ipod these days.
       
      Unless you're willing to fuck around with constantly updating software to keep your ipod working with whatever non-itunes software you're using, yeah, it's vendor lockin with software. Not all of us have that kind of time anymore, unfortunately :(

      --
      moox. for a new generation.
    15. Re:Why not... by Cyberax · · Score: 2

      "Take a screenshot with Windows: Microsoft BMP. Like there wasn't enough graphic formats at the time."

      Well, there actually was not that many formats back at the time of Windows 1.0 Besides, BMP is straightforward - just a list of scan-lines encoding colors and an optional palette (well, there is a possibility of compression but nobody used it).

    16. Re:Why not... by Moridineas · · Score: 3, Interesting

      I said probably because I obviously don't have any numbers to back my statements up, and I doubt they exist. I do think people--in general--run into iDevice dock connector devices far more often than devices that suport, well, anything else.

      There have been over 300 million iPods alone sold. 110 million plus iphones. 40 million iphones. Every single one uses the same dock connector. It may not be a standard, but it's pretty ubiquitous. Many cars have iPod dock options. As I said in my other post, almost every single hotel I've stayed at in the 2-3 years has had an iDock alarm clock (Marriotts mostly, FWIW). In terms of 3rd party device for support non-iDevices, does such a thing even exist?

    17. Re:Why not... by hairyfeet · · Score: 2, Informative

      So let me see if I understand correctly...so many here scream bloody murder about a "Microsoft tax" on PCs, but the fact that everything and its dog now has an Apple doc which they must pay a royalty to use is just....what? a gift of appreciation to the memory of the great one?

      Lock in is lock in is lock in friend, and just because your garden has flowers and pretty paintings on the wall doesn't make those walls any shorter. Oh and some forms of iPods use encryption on the playlists IIRC so good luck using anything but iTunes. That was cooked up to get rid of Real giving you choice BTW.

      --
      ACs don't waste your time replying, your posts are never seen by me.
    18. Re:Why not... by Moridineas · · Score: 4, Insightful

      You're right, I think a lot of the whining done here is bizarre.

      The Microsoft tax doesn't affect me; I choose to no longer use Microsoft products.

      The Apple tax and Apple walled garden affects me; I choose to use Apple products.

      Nobody is MAKING me do either thing. I, as an individual, can make decisions. It's obvious that a very large percentage of the human race doesn't like it when other people make contrary decisions.

      Why does someone--in this case "nashv"--care what product I use ("Ok , ok, I couldn't resist showing my distaste for those infernal locked down devices.")? Why does he care what type of cord a product he doesn't like uses? It's just mere human tribalism and partisanship. It's an "if you're not with me, you're against me" mentality. Beyond my that, just how unbelievably minor and petty, that so many people seem to need to come online and bash somebody's choice of cell phone or music device.

    19. Re:Why not... by Gadget_Guy · · Score: 2

      Every hotel I've stayed at in the last 2-3 years just about has had an alarm clock with an Apple dock connector, so, I'm actually getting more utility out of the proprietary connector than you are with a standard (I've never even seen an alarm clock that has a USB plug).

      Well, clocks with USB ports did exist. As did ports on car radios, stereo systems, DVD players etc. Then along comes Apple's non-standard connector and now you can play your iPod in your hotel, but I can't play my MP3 player. My player will never be able to work in a hotel because Apple owns the patents on the connector.

      That is just downright rude. If it were Microsoft doing this, then people wouldn't stand for it.

    20. Re:Why not... by bemymonkey · · Score: 3, Insightful

      Isn't that a reason NOT to use an iPod? Jeeze, stop buying crippled crap.

    21. Re:Why not... by westyvw · · Score: 2

      Nope. Might work at first, but slowly Apple changes the ipod database, so for some of the devices above you ARE locked into iTunes. 2 seconds on google is not the answer. 2 seconds on google and an hour of aggravation actually trying to get one of those to work is. You can see an iPad, iphone or ipod in a variety of applications, but to read and write to them requires tinkering if they are current gen. And some apps just ride on itunes libs, so you would be required to have itunes even if you dont use it.

    22. Re:Why not... by dabadab · · Score: 4, Informative

      You are NOT required to use iTunes either. There are a multitude of alternatives

      This is not true, at least not for everything. All the alternatives rely on libgpod and it does not support the newer devices:
      "This release has support for all iPod models except the iPod Nano 6g (the touch one). Most non-jailbroken iOS devices (iPod Touch, iPhone) are also supported with the notable exception of the iPad and the iPhone/iPod Touch 4 which are only supported as read-only devices."

      Maybe you should verify what you say by googling for two seconds ;-)

      --
      Real life is overrated.
    23. Re:Why not... by steveha · · Score: 4, Informative

      AAC, developed by Dolby,

      Incorrect. AAC was developed in an MPEG standards process. It was mostly based on the work of James D. Johnston ("JJ") who worked for Bell Labs at the time.

      Basically, AAC started out as "PAC", which was JJ Johnston's follow-on to MP3. See slide 5 of this presentation (PowerPoint format, sorry, but LibreOffice Impress does open it):

      http://www.aes.org/sections/pnw/ppt/jj/pac_history.ppt

      JJ was quite unhappy with some of the compromised in MP3, compromises that were forced upon him by the standards process. PAC was his improved coder, which didn't include the parts he didn't like from MP3. PAC won the "bake-off" between prospective coders; it was enough better than the others that MPEG reconsidered their "backward compatible" strategy and decided to go ahead with "non-backward compatible" (NBC).

      The Wikipedia page on AAC makes strangely little mention of JJ Johnston and his contributions, but if you look at the footnotes you will notice "J D Johnston" being frequently mentioned, especially in conjunction with the patents involved.

      JJ is a good guy who deserves more credit than he gets on Wikipedia.

      steveha

      --
      lf(1): it's like ls(1) but sorts filenames by extension, tersely
    24. Re:Why not... by teh+kurisu · · Score: 4, Informative

      A clock with a USB port is by necessity a much more complex device than a clock with an Apple dock connector. Aside from having to implement the USB mass storage specification, it also has to have its own audio hardware. Your MP3 player is just acting as a glorified hard drive, and the clock is doing all the work. Also, if you're using any audio functionality that isn't exposed over mass storage, or isn't supported by the clock's hardware, then it won't work.

      With an Apple dock connector, the clock only has to use the analogue signal from the dock connector's line out, and pass it straight to the amplifier. It will probably also use a subset of the Apple Accessory Protocol to provide audio controls - this works across a dedicated set of pins on the connector and is pretty simple to implement. With a dock connector, your iPod is doing all the work, so your clock is cheaper and with fewer compatibility concerns.

      It's no surprise that most manufacturers have gone down the route of including a dock connector at the expense of USB. The dock connector is supported by the majority (or certainly a large minority) of audio playing devices in users' hands, it's simpler to implement, and there won't be the questions over compatibility that would plague the equivalent USB device. It's not rudeness, it's good business sense.

      Most clocks like this will also have a standard 3.5 mm minijack line-in for compatibility with other devices anyway. Mine does.

      And yes, I'm still annoyed that Intel didn't think about implementing and standardising extra functionality such as this when it was designing USB 3.0. The time was right.

    25. Re:Why not... by am+2k · · Score: 4, Informative

      I don't know any non-nerd who uses Vorbis or FLAC.

      Actually, a lot of non-nerds do, they just don't know it. Nearly all games (on the consoles and PC/Mac) use ogg vorbis for the background music. The reason is that it doesn't cost anything (as opposed to mp3), and the game has to supply the music files and the decoder to play them anyways.

    26. Re:Why not... by makomk · · Score: 3, Informative

      You are NOT required to use iTunes either.

      On all modern iPods, you need a secret cryptographic key to be able to add or remove tracks that's specific to your iPod's serial number. Some very hard-working hackers have managed to reverse-engineer the algorithm in iTunes to generate keys from serial numbers, but after the first time they did this Apple changed the algorithm and threw all their code-obfuscation and anti-debugging techniques that they'd developed for the iTunes DRM into protecting it. They managed to deobfuscate it and get the new key generation algorithm, though Apple used legal threats to take down all info on how they did it so the next time Apple change their algorithm you'd better hope the original people are still around and willing.

      (Oh, and for iPhone and iPod Touch they go to a fair bit of effort to change the encryption and authentication keys with every major iOS update, if not more often.)

    27. Re:Why not... by Hatta · · Score: 2

      Then open the iPod software, so people can add support for the formats they prefer.

      --
      Give me Classic Slashdot or give me death!
    28. Re:Why not... by bobdinkel · · Score: 2

      Anyone that has ever owned an iPod or iPhone knows for sure that everything he said is a blatant lie.

      I don't know this DJRumpy character, but the claims he made didn't sound all that crazy to me

      No, the connectors that interface with the PC are standard USB or Firewire. This is FUD.

      That's the physical connector on one side, but I'm pretty sure thing is proprietary. I don't agree with this claim.

      Any MP3, AAC, AIFF, or WAV will work with an iPod, iPhone, iPad, etc.

      This is true.

      You are NOT required to use iTunes either. There are a multitude of alternatives (http://www.sourceforge.net).

      This claim is a bit ambiguous because I'm not sure if he means the management software or the music store. Regardless, you certainly don't have to use either. You can't rip your own CDs or buy MP3s from Amazon or whatever. And there are alternatives for the management software, but none of them work as smoothly as iTunes. I agree with this claim.

      Even if you choose to use iTunes, it can be set to use MP3 if you don't like AAC.

      Yup. Totally true.

      So three out of his four claims are valid. That's a pretty good fact to bullshit ratio for the internet.

      --
      A publicly traded company exists solely to make profits for shareholders.
    29. Re:Why not... by Dr.Dubious+DDQ · · Score: 3, Interesting

      Vorbis is also the audio codec for Google's legally-free "webm" video format, which is vp8 video and vorbis audio in a specific form of Matroska container (instead of Ogg, which seems to invoke hatred among some programmers where Matroska apparently doesn't). Hypothetically, you can make a standards-complaint audio-only webm file to use in place of Ogg Vorbis for anything that supports webm and get the superior-to-mp3 Vorbis quality sound in anything that supports webm - mostly web browsers and at least some Android devices.

      (ALL android-based devices support Ogg Vorbis audio, including the ones that don't mention it in the marketing materials, as do a lot of other handheld music players that aren't iGadgets or Zunes. I can't decide if audio-only-webm is likely to displace Ogg Vorbis at some point or not. The good news is that you can take Ogg Vorbis audio and move it to a webm format without losing any quality.)

      tl;dr: Vorbis audio and support for it seems to be a lot more widespread than people usually realize.

  2. Great, but how about patents? by bircho · · Score: 3, Interesting

    Apple has a lot of patents on audio/video compression. Have they licensed those for free for this implementation? How about another implementation or fork? Will those have the same license?

    1. Re:Great, but how about patents? by BasilBrush · · Score: 4, Informative

      Apache License...
      3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.

    2. Re:Great, but how about patents? by bonch · · Score: 2

      The multiple comments like this really illustrate how little many of Slashdot's readers know about the open source licenses they so often advocate.

  3. Re:Why? by larry+bagina · · Score: 2, Interesting

    Phase 1: DRM-laden, 128Kbps music. Phase 2: DRM-free, 256kbps music. Phase 3: lossless music. But the RIAA is scared of Apple, so they insisted on a non-proprietary lossless format.

    --
    Do you even lift?

    These aren't the 'roids you're looking for.

  4. Useful for Airplay by Drakino · · Score: 4, Insightful

    Keep in mind any Airplay compatible device can use ALAC, but can't use FLAC. This includes the Airport Express units that have been out since ~2004 or so, and the newer non Apple devices with Airplay compatibility. This is likely a move to assist with 3rd parties wanting to integrate more with Airplay, as the relevant network pieces (Bonjour) are already out there in source form.

    Sadly I'm sure most people here will go on and on about how it's not FLAC, and whatever. For once, just at least appreciate that Apple is continuing to throw some interesting things out to the OSS crowd instead of deciding to nitpick it to death. If you don't want to use it, thats fine. Just really tired of the nitpickery and general negative outlook geeks around here tend to have. Cheer up for once :-)

    1. Re:Useful for Airplay by Anonymous Coward · · Score: 5, Insightful

      Geeks don't tend to just get negative for no reason whatsoever.

      LOL thanks I needed that laugh. Please do go on believing your opinions are objectively better, though. It's lovely to see that level of arrogance justified.

    2. Re:Useful for Airplay by schnikies79 · · Score: 5, Insightful

      Geeks are biggest fanboys on the planet. They get mad and everything, reason or not.

      --
      Gone!
    3. Re:Useful for Airplay by epine · · Score: 2

      They're just pissed off that a company doesn't operate the way they want it to

      Infinitely unimpressed by the Mickey Mouse copyright act, pissed off at the pretense that this is patriotic capitalism as it ought to work.

      There are several Lessig videos on YouTube about his new rootstriker campaign. As much as I admire his content, he always sounds like a man wearing little round glasses--standard issue for taking down a whomping willow, but I'm not sure it will fly in Washington.

      Lessig loves pointing out that Milton Friedman would only sign on if the brief contained the phrase "no brainer" that retroactive copyright extension will not cause George Gershwin to write another GD note. Logic and founding fathers and patriotism aside, they lost to the giant Mickey Mouse billfold.

      You must be new here because this is how it works: if you don't shriek at the outrage, some cosmic lamer soon writes "Apple does this and no-one seems to complain so it must be OK". And the idiot fish swim happily ever after. Negative inference from silence makes silence a non-viable strategy.

      You'll note that when Steve Jobs needed to pull the wool, he pulled early and often. It's been brilliant over the past weeks learning how the man really operated: one part asshole, one part genius.

      Dave Winer: The Jobs Book â" Personal, Painful, Repetitive I'm personally no huge fan of Winer, but I think he hit the nail with this one.

      Unfortunately, authentic outrage is often mimicked by geeks-with-squeaky-training-wheels who mostly just like the noise. If they suffer and remember, some day they too can assume the clucking greybeard mantle.

  5. Re:open source, patent encumbered by JBMcB · · Score: 3, Informative

    Apache license clause 3, coward.

    --
    My Other Computer Is A Data General Nova III.
  6. Re:open source, patent encumbered by nashv · · Score: 2

    Only because they HAD to. They made Webkit from opensource Konqueror (KDE) code which ran on POSIX, to use in their new POSIX style OS. Apple uses Webkit in everything on Mac OS X+.

    --
    Entia non sunt multiplicanda praeter necessitatem.
  7. Re:No FLAC on iPod by Whiney+Mac+Fanboy · · Score: 2

    f we're free to convert between the two now, what advantage is there in using FLAC instead of ALAC?

    There are no differences between the two in terms of music quality, but FLAC:

    * Supports replaygain
    * Has better tagging support (subjective)
    * Is better known
    * Contains better (any!) error detection (able to batch-verify downloaded files)
    * Is preferred lossless codec for vast majority of digital music vendors.

    But honestly, all of this is irrelevant compared to how well flac / alac fit into the rest of your ecosystem. If you're using itunes (gag) / ipods, use alac. If not, use flac. If you're technically proficient & want to have lossless files that you reecnode for your portable device, I'd probably go flac for that too.

    --
    There are shills on slashdot. Apparently, I'm one of them.
  8. Try this by garote · · Score: 2, Interesting

    If you're a non-audiphile trying to learn how to detect the difference with your ears, I suggest this:

    Rip a CD into ALAC. Then re-rip one of the tracks into 256k mp3. Open each track side-by-side in music player apps and set the volume the same. Play each version 10 seconds at a time, paying attention to the perceived location of each instrument in the room.

    You may find that it is easier to perceive that location while listening to the ALAC track.

    I won't bore you with the scientific details. GIYF.

  9. Re:No by CharlyFoxtrot · · Score: 2

    I doubt you'll ever even see Darwin for ARM.

    What ?

    iPhone:~ root# uname -a
    Darwin iPhone 9.4.1 Darwin Kernel Version 9.4.1: Mon Dec 8 20:59:30 PST 2008; root:xnu-1228.7.37~4/RELEASE_ARM_S5L8900X iPhone1,2 arm N82AP Darwin

    --
    If all else fails, immortality can always be assured by spectacular error.
  10. Re:What is the difference between lossless codecs? by EvanED · · Score: 2

    I can think of a few things; in particular, how good the metadata support is and whether you can seek. At least for me, both of those are more important than a 10 or 20% compression difference.

    Though I strongly suspect both FLAC and AALC are pretty comparable on this point.

  11. Re:open source, patent encumbered by Guy+Harris · · Score: 2

    What is speculative about a fact that they used code that was already licensed as open-source and so they had to release source?

    "Was already licensed as open-source" wasn't the reason why they had to release source. For example:

    Developing your own engine is much harder, just like developing your own OS layer is harder when BSD is sitting there all ready with the basics.

    ...the BSD license is an free software/open source license but doesn't require you to make source to derived code available. KHTML was licensed under the LGPL, so Apple did have to make source to their derived-from-KHTML WebKit available (but, as it's the LGPL rather than the GPL, didn't have to make source to anything using WebKit available, or require all third-party code that links with WebKit to have its source code available).

  12. Re:No FLAC on iPod by tepples · · Score: 2
    • FLAC supports RG. ALAC supports Sound Check. What's the difference?
    • Better known? Did you try comparing to (ALAC or "Apple Lossless")? I'll grant however that FLAC going by one name all the time without synonyms gives it an SEO boost.
    • You're right that MPEG-4 expects error detection to be handled inside the codec, but in practice, I thought that's what sha1sum was for.
    • Vendors? It doesn't matter much what the vendors use if the vast majority of digital music devices are made by Apple. (Archos's Android PMPs don't appear to be sold in U.S. stores, and Samsung's Android PMP just came out a week ago.) Customers will have to convert their purchases from FLAC to ALAC or encode them to AAC before loading onto their iPod, iPhone, or iPad.
  13. Re:No by Revotron · · Score: 2

    Three reasons why your post is entirely off-base:

    1) The codec may be 10 years old but it's the codec used on every single Apple multimedia product. ALAC is required by Airplay. Thus, opening ALAC will allow third parties to implement Airplay interoperability into their products. Old =/= Useless

    2) I didn't say they would open source iOS as a whole. Basic English comprehension skills indicate that my last sentence asks "Might they open up more iOS features for third-party utilization?"

    3) I'm looking at Darwin on ARM right now, on my iPhone. And my iPad. And the iPod Touch located nearby. ARM is an architecture, not some exclusive hardware platform.

  14. What are ALAC's technical merits? by GWBasic · · Score: 3, Interesting

    Lossless audio compression is pretty brain-dead simple. If you think of how sticking a wav file in a .zip or .gz only saves about 10% of space, (give or take,) the most basic lossless codecs work by essentially zipping the mathematical difference between each sample. Because storing the difference between each sample, instead of the sample itself, is more likely to have repetition in audio; algorithms like .zip and .gz can then be applied.

    What I'd like to know is, considering how brain-dead-simple lossless audio compression is, are there technical merits for using ALAC, especially on embedded devices? Does FLAC rely on floating point when ALAC is purely integer, thus making ALAC easier to implement? Is it easier to seek within an ALAC? Or, is Apple's insistance on ALAC purely a "not invented here" mentality?

    1. Re:What are ALAC's technical merits? by PowerMacG4 · · Score: 3, Informative

      I've heard that ALAC was easier to decode on embedded devices back when they crafted it. FLAC was too processor-intensive, especially because you could choose different levels of compression that would have inconsistent decoding requirements.

    2. Re:What are ALAC's technical merits? by boristhespider · · Score: 3, Interesting

      I actually don't know the details about ALAC but I know it's not what you're speculating -- FLAC Is built on integer calculations and is a very lightweight lossless codec (especially compared to something like Monkey's Audio or TAC which are very intensive and not so pleasant to use as active media files rather than archiving, although their compression is better) and is good for playback with limited CPU. I'd guess that ALAC is also integer, and that practical differences from FLAC are minor.

      I think it comes down partly to a not-invented-here thing, and also that FLAC typically sits in its own container or in an OGG container, while ALAC sits in an MP4 container - not that Apple couldn't have embedded FLAC into MP4 if they really wanted to.

    3. Re:What are ALAC's technical merits? by Kohlrabi82 · · Score: 2

      Though the ALAC decoder in rockbox is probably not perfect, the codec performance comparison at http://www.rockbox.org/wiki/CodecPerformanceComparison clearly shows that decoding of FLAC is far more efficient in rockbox. Maybe ALAC decoding can close the gap now that ALAC sources are open.

    4. Re:What are ALAC's technical merits? by thetoadwarrior · · Score: 2

      The ipod came out like 10 years ago so it was over 10 years ago they would have made the decision on the format. The question is more what was the performance of FLAC on ARM devices and specially for ones that have to run on a battery. FLAC was certainly considered more CPU intensive than the likes of MP3 a decade ago.

      Considering Android didn't even include FLAC support until honeycomb (may 2011) I suspect there is a pretty good reason it was avoided prior to that.

  15. Re:open source, patent encumbered by beelsebob · · Score: 2

    Yeh, clearly apple only open sources things they have to. Because clang, alac, cups, ... don't exist.

  16. Re:open source, patent encumbered by smash · · Score: 2

    Yet apple has kept darwin open-source, anyway.

    --
    I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
  17. Hurray? by soodoo · · Score: 2

    The only reason Apple doesn't support FLAC on their devices/iTunes is because FLAC music usually comes from outside of their iTunes store. And they surely don't want people to not get music elsewhere.
    If Apple had any regard for open (source) standards they would've added support for FLAC, since technically it's a good format (maybe not the best, but good) and it's pretty much the de facto lossless standard, even tho lossless in general is not very popular.

    And now with open sourcing ALAC it seems like they want to make it more accessible to manufacturers, so that they can freely sell ALAC (lossless) music in iTunes and hardware/software manufacturers will have no choice but to support yet another redundant format (well, if they want to serve Apple costumers).

    I wouldn't mind it so much if ALAC had some clear technical advantages, but it doesn't. FLAC is pretty much the same in compression ratio, but is more efficient in encoding and decoding.
    I don't want to sound like a fan of FLAC. If you have better alternatives, bring them on. But ALAC is not one, sorry.

    IOW, it's business as usual from Apple.

    1. Re:Hurray? by TheRaven64 · · Score: 2

      Nope, the reason Apple didn't support FLAC was that it couldn't be implemented on the DSPs of the third generation iPods. ALAC could, but this came at the cost of about 1-2% larger file sizes. More modern players have more powerful DSPs (some of which even include FLAC encoders as well as decoders provided by the manufacturer), so it's less important.

      --
      I am TheRaven on Soylent News
    2. Re:Hurray? by ThePhilips · · Score: 2

      Sure, that could've been one of the reasons _in the past_. It's no longer a reason now. All things equal, FLAC is less CPU demanding than ALAC, for both encoding and decoding.

      But people who can't see an obvious marketing tactic by Apple are blind.

      Oh STFU.

      Unlike MSFT, Apple actually supports pretty much indefinitely all the audio and video formats once included in all previous version of Mac OS. ALAC is on the list too.

      There is precisely 0 marketing in the source code release. Some software engineers probably finally got permission to make the code open source. That's about all what is there in the story.

      Making ALAC open source is just a strategy to get more manufacturers on board, so that iTunes ALAC purchases will work on non-Apple devices.

      ALAC is supported by Cowon audio players since 2009, if I'm not mistaken. RockBox supports it too.

      Nobody actually cares that much about what lossless wrapper the music has, since duh the formats are lossless and music can be converted from one to another without any loss.

      --
      All hope abandon ye who enter here.
  18. Re:This patent grant protects Apple,. not you by Farmer+Tim · · Score: 3, Insightful

    Two questions:

    1- Who but a knuckle dragging moron would accept a software license and then try to sue the software's creator?

    2- Why is this clause evil when it's software from Apple, but not a problem when it's from the Apache Foundation?

    --
    Blank until /. makes another boneheaded UI decision.