Archive

Posts Tagged ‘mac’

Pulling metadata out of enhanced podcasts (.m4a) and into XML

August 13th, 2009 pj4533 2 comments

puzzle_pieces300x199

For my radio show iPhone application project, I wanted to use the metadata contained in my enhanced podcast files. Including:

  • chapter information (artist/song)
  • chapter start time
  • chapter image

Once I had this information I wanted to store it in XML on my server so I could access it whenever I wanted (from the iPhone application).

Read more…

Prebuffering iPhone Audio Streams For Gapless Playback

August 10th, 2009 pj4533 4 comments

prebuff

I have been working on a project that requires me to stream audio from a webserver to the iPhone, starting at an offset in an mp3 file. I showed how to modify Matt Gallagers awesome AudioStreamer code in a previous post. What I find myself doing quite a bit is stopping play on one file and starting play on another. Obviously you want the gap between tracks to be as minimal as possible.

The easy way to do this would be just to keep track of duration in a ’switcher’ object, Read more…

ceeFrenzy: APPROVED!

August 7th, 2009 pj4533 No comments

iconicon

My first iPhone application got approved! Details are on the Say Goodnight Software page.
Read more…

A Simple Quick Reusable XML Parser For The iPhone

August 5th, 2009 pj4533 2 comments

logo

I found that I was needing an XML parser for nearly every iPhone application I was writing. Once you figure out the streaming nature of NSXMLParser, it really isn’t very difficult to use. However, since I was always having the didStartElement/foundCharacters/didEndElement functions in each application, I really wanted to break them out into a reusable class.

I found that most my XML implementations were VERY simple, as I was just using it for data storage and transfer. However, of course, each XML is different so my class has to handle that properly.

After making several iterations, I settled on using an NSArray for the root of the XML file. Each node is a NSDictionary with three object/key pairs:

Read more…

Say Goodnight Software: AirportTraffic

April 26th, 2009 pj4533 4 comments

To everyone looking for my old project AirportTraffic, I have decided to make this domain point directly to my new blog. Say Goodnight Software, and any projects I do with the name will just be posted to this blog.

As for AirportTraffic, I havn’t done much work on it lately. I still have plans to update it, but my focus has been on PC/Windows applications lately, so I havn’t done much OSX development. If you are new to AirportTraffic it is a simple utility for OSX 10.5+ that uses SNMP to communicate to an Aiport Extreme base station & retrieve WLAN bandwidth usage statistics.

You can download the source and hack on it yourself by going to the GoogleCode page.