Results 1 to 10 of 14

Thread: [DirectSound][FreePascal 2.4.x]Playing OGG in separate threads

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    I don't have any experience with directsound, so I'm afraid I cant really help you.

    But why are you using DirectSound? First of all, it will only work on windows. Moreover, I've heard that it's a very hard API to work with (allthough you seem to be using a wrapper). Have you looked into OpenAL or SDL Mixer? Those seem quite good to me, especially for games.
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  2. #2
    Quote Originally Posted by chronozphere
    But why are you using DirectSound? First of all, it will only work on windows.
    Yeah, I know about this and I'm using Linux on my home PC Also I have OpenAL variant of OGG streaming(for Linux and MacOS X), but I want use DirectSound on Windows, because with it there is no need in 3rd party heavy dll's

  3. #3
    Why go through all the trouble, just to get rid of one or two DLL's? If you can make the game work with OpenAL on both linux and windows, you're done. Generally, users don't worry about DLL's.

    Also, the OpenAL installer is really lightweight, as far as I can tell. I normally include the installer when I distribute my games. It's about 750kb.
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  4. #4
    Quote Originally Posted by chronozpher
    Why go through all the trouble, just to get rid of one or two DLL's?
    Because of fun and I have some principles So, I want understand why my code didn't work correct with FreePascal 2.4.x

  5. #5
    I don't know if this has anything to do with the problem but posting anyway. It's about pointer size and integers, which work differently than Delphi i presume:
    http://wiki.freepascal.org/Integer

  6. #6
    User137
    Thanks for answer, but no, problem not in pointer size or something like that, because I use my own type(when calculate an address), and if the problem was in it - it will be reproducibly with one thread and any version of FreePascal.

  7. #7
    So... if nobody don't want to watch my code, or can't help me with answer "why demo doesn't work in FreePascal 2.4.x"- who can show me some examples of ogg streaming with DirectSound? With Pascal source code of course Maybe problem only in this version of FreePascal, but developers on official bugzilla not interested in this "bug".

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
  •