Email Updates RSS Subscribe
Line

This blog is created and maintained by the technical team at Hook in an effort to preserve and share the insights and experience gained during the research and testing phases of our development process. Often, much of this information is lost or hidden once a project is completed. These articles aim to revisit, expand and/or review the concepts that seem worth exploring further. The site also serves as a platform for releasing Flash tools developed internally to help streamline ad development.

Launch
Line

Hook is a digital production company that develops interactive content for industry leading agencies and their brands. For more information visit www.byhook.com.

Line

Alchemy Series Part 6: Ogg Vorbis Library Source Release

Line
Posted on May 3rd, 2011 by Jake
Line

And here we are with the final Ogg Vorbis/Alchemy post (at least for a while). We finally got all of the licensing stuff in order (see the license.txt file, and the comments at the top of the source files) and are ready to release the C source, Yay!

Please Grab The Download Here.

The majority of the C code is from Xiph.org. We basically took that, and hacked out the parts that wouldn’t compile through the alchemy/cygwin environment, such as the self tests and some of the macros. We then also forced some of the ifdefs to the correct settings, and reorganized the file structure to make it a bit easier to compile under cygwin. Once that was up and running, we spent the majority of our time building the wrapper C code (hookoggvorbislib.c) and the AS3 interface layer to access that C code. You can check out our Decoder/Encoder post to see how to use the library.

Once you download the source you can go into the alchemy/ogglib folder and check out all of the Alchemy source.
For a quick Cygwin refresher you can check out our other Alchemy Series posts on getting set up:
http://labs.byhook.com/2011/03/01/alchemy-series-part-2-environment-setup/
http://labs.byhook.com/2011/03/09/alchemy-series-part-3-ubiquitous-hello-world/

To compile the library it takes a couple of steps:
1) Open your Cygwin environment and turn on alc with “alc-on”
2) Change the directory to the alchemy/ogglib/lib folder
3) Delete the old object and archive files:./reset.sh
4) Compile the Xiph lib: ./compileLib.sh
5) Archive the lib: ./arcLib.sh
6) Move back up a directory level, and link with the wrapper:

cd ..
./linklib.sh

That should create a brand new .swc for you called hookOggVorbisLib.swc

Most of the concepts used in the wrapper code have been covered through out our Alchemy series and its fairly well commented. So feel free to poke around and see whats up. There is one limitation thus far, seeking is not working properly for the decoding. Of course if you decode the whole file into memory, then you can seek through the bytearray as you see fit. But the seeking to parts of the ogg data, and decoding from there is not working. If someone feels like tackling that let us know :)

In any case, have fun and let us know if you manage to put any of this to good use, we would love to hear about it!

Also remember to like us on Facebook if you want to stay updated, or even just to show your support:

And/Or you can follow me on Twitter:
Follow JakeCallery on Twitter

Line
Facebook TwitThis Digg Reddit StumbleUpon del.icio.us
28 Responses to “Alchemy Series Part 6: Ogg Vorbis Library Source Release”
  1. To give the best look is the goal of cheap Oakley sunglasses
    To give you with that impeccable display, [url=http://www.cheap-oakley-sale.com/oakley-oil-rig-sunglasses-c-10.html/]Oakley Oil Rig Sunglasses[/url] pursuit a little number of the most inventive advances, shades of hue and form. Select from Sports pursuits, Energetic, Polarized, Asian Match, Photochromatic, Signature Sequence and Unique Edition accessible for each women and men. Within the men’s sunglass environs you are competent to strive these newest designs. The Polarized Split Jacket with light-weight perimeters and switchlock technologies which makes lens modifying not hard and speedy or even the M Body Striker in Jet Black giving the snugness and help of the faultless three-point match. Also you are competent to conclude the Oakley Fifty out of 100 Jacket sunglasses faultless to get a everyday display or even the [url=http://www.cheap-oakley-sale.com/oakley-crosshair20-sunglasses-c-1.html/]Oakley Crosshair2.0 sunglasses[/url]which are comprehensive on efficiency. And when you would like to gaze after a slice of setting go away for your Artist Sequence Edition sunglasses boosted by recitals, artwork, set about and sports activities.

    Oakley Women’s Sunglasses devotes for you in individual equates and kinds like by no signifies previous to. They’re solely conveyed ahead for present day women who reside by their very own guidelines. You will adore the vibrant Oakley Frogskins Sunglasses Discreet with trounce jewellery in the hinges and in supplement the 6-base quadrangle configuration that stylishly perimeters your encounter. You are competent to in supplement strive the evergreen Correspondent Sunglasses or even the flattering Encounter Glasses- each really are a phenomenal blend of glamour and competence, conceived to give your ascribe a emblem mark new definition.

    FGDSFFGUBDJETIHWERHKDSIOS

  2. Welcome to Oakley Sunglasses Outlet Store Online Hut to buy cool Cheap Oakley Sunglasses. We Cheap Oakley Flak Jacket, Cheap Oakley Frogskins, Cheap Oakley Fuel Cell, Cheap Oakley Gascan, Cheap Oakley Goggles, Cheap Oakley Holbrook, Cheap Oakley Hot Sale 2011, Cheap Oakley Jacket, Cheap Oakley Jawbone, Cheap Oakley Juliet, Cheap Oakley Jupiter, Cheap Oakley Livestrong, Cheap Oakley M Frame, Cheap Oakley Monster Dog, Cheap Oakley New Releases, Cheap Oakley Oil Rig, Cheap Oakley Polarized and Cheap Oakley Radar at the lowest price when compared with other peer products. All of cheap Oakley Sunglasses Sale are of the best quality and sold at wholesale price. Take action now and put them in your shopping cart to save more.3P6TWKM1PM 2OOFJBODWG

  3. YNHXFOXWYZKYZY
    Replica Oakley Sunglasses are Awesome and Well-liked by the Young

  4. This is one of the reliable post.I like your blog opportunity.This is one of teh useful post.I will again look forward towards this post.

  5. Apurve Mehra says:

    I have been looking all over for this website…i believed I had bookmarked it a week ago but could not find it and it was a pain to get your blog once again..google sucks.

  6. china beads says:

    http://www.zacoo.com is an online store providing jewelry beads, jewelry making supplies and jewelry findings

    • When do you think this Real Estate market will go back right side up? Or is it still too early to tell? We are seeing a lot of housing foreclosures in Winter Springs Florida. What about you? We would love to get your feedback on this.

  7. skin tag says:

    I am absolutely amazed at how terrific the stuff is on this site. I have saved this webpage and I truly intend on visiting the site in the upcoming days. Keep up the excellent work!

  8. My partner and I stumbled over here from a different page and thought I might as well check things out. I like what I see so i am just following you. Look forward to looking into your web page yet again.

  9. I really really like how you have laid out your blog. Outstanding design and style..and well-maintained..

  10. [...] Alchemy Series Part 6: Ogg Vorbis Library Source Release [...]

  11. Definitely believe that which you stated. Your favorite reason appeared to be on the internet the simplest thing to be aware of. I say to you, I certainly get annoyed while people consider worries that they plainly do not know about. You managed to hit the nail upon the top as well as defined out the whole thing without having side effect, people could take a signal. Will likely be back to get more. Thanks

  12. Thanks for sharing Interesting post. Thanks for taking this opportunity to discuss this, I appreciate with this and I like learning about this subject. If possible, as you gain information, please update this blog with more information. I have found it really useful.

  13. Markus says:

    Is there any way to change the encoding part to encode mono streams? What has to be done? Change in the Actionscript is clear (wavwriter, do not write stream two times etc), but what has to be done in the library?

    I’d really like to encode mono streams, because afaik the encoding speed should be faster. That would help me much already.

    Another idea: What about realtime-encoding (while speaking into the microphone, the stream gets encoded already)? I assume this is hard to implement, but maybe you thought about it already? Any ideas?

  14. With Larry Bird, Robert Parish, Cedric Maxwell and Kevin McHale of the Celtics will win over the Rockets are experts believe that, despite the release of Westward Moses said he got four boys home with him for the Rockets can win this series. Experts and Moses proved wrong. Although the Celtics won, Del Harris was discharged from the rocket team had a stubborn resistance, and ultimately lost 2-4 in the sixth only to.

  15. NHL jerseys says:

    I like your article so that I read all of your articles in a day.Please continue and keep on writing excellent posts.

  16. Wow! This information was truly valuable to me. Ill be coming back to your blog.

  17. Elf Sundae says:

    You’re did a great job, BIG THAAAAAAANKS!! You’re saving my time.
    I’ll read all posts about Alchemy, then try to compile libSpeex. Could you post me an answer about speex decode? Here’s my question: http://stackoverflow.com/q/8416185/521946 , Truly thanks!

  18. Beanie Hats says:

    Most of the concepts used in the wrapper code have been covered through out our Alchemy series

  19. There is also a long way and then end the night there and then the black end.

  20. And as you move donning with team colorations emblazoned which includes a favorite player’s term looks destined to live fashionable plus favored always by adolescents, sports jerseys glance set to live.

  21. I read with great interest.Thanks for you sharing.

  22. Once you download the source you can go into the alchemy/ogglib folder and check out all of the Alchemy source.

  23. Thanks for the sources, I’ll be sure to check that out. I find the possibility to “recycle” C code to use it with flex pretty exciting :)


Leave a Reply

*

Line
Line
Pony