title: Using libmms from Objective-C
body: <p>I want to use libmms in an objective-c project. I've taken the project from here - <a href="http://www.tunein-radio.com/lgpl.html" rel="nofollow noreferrer">http://www.tunein-radio.com/lgpl.html</a> - and included the libmms library in my own project. This avoids me having to compile libmms myself. Initially I just want to see if it works and hopefully output some audio.</p>
  
  <p>Here's what I have so far in my header file:</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  #import "mmsio.h"
  #import "mms.h"
  
  
  
  #define streamURL @"path/to/stream"
  
  @interface radiotestAppDelegate : NSObject &lt;UIApplicationDelegate&gt; {
      UIWindow *window;
   struct mms_t_io *io;
  
  }
  
  @property (nonatomic, retain) IBOutlet UIWindow *window;
  
  
  @end
  </code></pre>
  
  <p>I'm not really sure where to go from here but think I need to use this method from mms.h:</p>
  
  <pre><code>mms_t* mms_connect (mms_io_t *io, void *data, const char *url, int bandwidth);
  </code></pre>
  
  <p>However, I'm not well versed enough in C to unravel the libmms code. Can anyone offer any advice? I'd be happy to pay for some tuition but want to understand this myself.</p>
  
  <p>What frameworks should I be using to read the <em>mms_t</em> response type from the above method? </p>
  
  <p>Thanks,</p>