Results 1 to 10 of 27

Thread: Win/Linux/Mac OSX Sound API with no .DLL/.SO dependencies?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Actually he has just replied but I am still in the dark - I will have to read his parsing text and see I get any headway

    ==============
    You'll somehow have to parse the iOS AVFoundation framework on your Mac in order to get access to the Objective C AVAudioPlayer class that you can use in Pascal as in the example code.

    Note that you don't need the entire class, just the methods you need. See this explanation for how to "parse" those methods by hand for now until an updated parser is available:

    https://forums.embarcadero.com/threa...427&tstart=375

    Thanks.

    -Phil
    ===========

    I might have to put it into the too hard basket for a few weeks and come back to it
    The views expressed on this programme are bloody good ones. - Fred Dagg

  2. #2
    I had a weird idea one day, putting Delphis TMediaPlayer in a dll so it could be used with Lazarus for musics... That component never failed me with MP3's. Other than that i used to have OpenAL ogg player for Delphi but i haven't managed to get that working with Lazarus.

  3. #3
    I use OpenAL with FPC. No problems, except that Apple's OpenAL implementation seems less that satisfactory. I have seen reports of rather severe bugs.

  4. #4
    Thanks for the info Ingemar
    I don't know if I will be able to port my game to Mac OS X any time soon - I don't have any Mac hardware, and haven't been able to get OS X working in a virtual machine to test either

    That will have to wait for some future time

    On the upside, I have gotten it to work on Windows and now Linux (Ubuntu), Yay! This is thanks to me using SDL, OpenGL, and OpenAL

    cheers,
    Paul

  5. #5
    Didn't I hear someone mentioning that the problems with playing sounds in SDL was fixed? Maybe wishful thinking but there was a thread about sound libraries in the Mac game programming mailing list.

    I really don't want to use Core Audio. It is yet another platform dependent library, and a messy one for that matter.

  6. #6
    For crossplatforming I certaintly would recommend OpenAL, available for every platform (as it lets you reuse the same code and it just works), combined with libogg/libmad makes it very easy to play ogg or mp3 everywhere.
    I had zero problems with it in all platforms I've tested (basically all of them)
    There is just a situation that I found that required a different solution. Decoding of mp3/ogg in iOS (and possibly Android) is quite slow if done in software, and there I just use the native audio library that uses the hardware decoder (ogg not supported though).

  7. #7
    Quote Originally Posted by Relfos View Post
    I had zero problems with it in all platforms I've tested (basically all of them)
    Were you playing in more than two channels simultaneously? With different volume in each channel?

Tags for this Thread

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
  •