Results 1 to 3 of 3

Thread: I'm trying to do an audio streaming application

  1. #1
    Squire
    Join Date
    Jun 2012
    Location
    Mexico
    Posts
    26

    Default I'm trying to do an audio streaming application

    I want to stream audio via udp, and play it on the device, I have checked the source (and ofc) there was no way to do this, any tips/help for the implementation?

    Thanks!
    Zaxuhe//
    Game developer

  2. #2
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,377

    Default

    Well, two ways to go about this:

    1. Use high level native device methods, for instance, iOS cocoa stuff has functions to stream audio from the 'net, provided the files/broadcast is in the right format. The only problem is you would have to re-figure out and redebug this for each platform, and some platforms probably don't have a way to do it. Very not portable and you have to know ObjectiveC or whatever the platform uses.

    2. Write a SoundManagerMixer class and do your own mixing, and stream the raw data to the native platform. I think all platforms support a way to do this (feeding in a raw audio stream, for custom mixing), but would need to be setup per device. Once this is working, then you can decompress/mix in the audio from the net with custom code/libraries in any way you want. (ogg/mp3 decompression/panning/pitch shifting/etc could also be added, and would work across all platforms..)

    So, 1 is less work and might be ok if you were targeting a single platform, 2 is a lot of work but more flexible, and is generally the way it's done in the big-time company private frameworks I've seen when doing contract work.
    Seth A. Robinson
    Robinson Technologies

  3. #3
    Squire
    Join Date
    Jun 2012
    Location
    Mexico
    Posts
    26

    Default

    Seems like a uber hard task, but will try to do it, thank you for the tips!
    Zaxuhe//
    Game developer

Similar Threads

  1. Audio for Anroid
    By KWilk in forum Proton SDK
    Replies: 2
    Last Post: 04-12-2011, 09:36 AM
  2. Polishing an application
    By MagicPantsBoy in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 01-09-2010, 05:21 PM
  3. Application Icon
    By DavinciZhe in forum Official ClanLib SDK Forums
    Replies: 7
    Last Post: 07-30-2009, 06:47 AM
  4. ClanLib application icon?
    By alexv1 in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 05-19-2009, 09:52 AM
  5. Can't compile application
    By Magus in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 02-26-2008, 07:51 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •