1. 19 Oct, 2009 11 commits
    • Sam Lantinga's avatar
      Fixed compiler warnings · 90751f25
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404126
      90751f25
    • Sam Lantinga's avatar
      Fixed bug #858 · 0a724486
      Sam Lantinga authored
      Fixed compiler warning
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404125
      0a724486
    • Sam Lantinga's avatar
      Fixed bug #857 · 892e9d36
      Sam Lantinga authored
      Fixed compiler warnings
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404124
      892e9d36
    • Sam Lantinga's avatar
      Whoops, missing newline! · 7dea219b
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404123
      7dea219b
    • Sam Lantinga's avatar
      Added an untested code path for snd_pcm_wait() · 0d55d30a
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404122
      0d55d30a
    • Sam Lantinga's avatar
      ALSA write failed (unrecoverable): Resource temporarily unavailable · 88ba9725
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404121
      88ba9725
    • Sam Lantinga's avatar
      Added an error message for when ALSA audio fails · 32875d3f
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404120
      32875d3f
    • Sam Lantinga's avatar
      Getting as close as you can with periods is better than the default parameters. · e0929469
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404119
      e0929469
    • Sam Lantinga's avatar
      Recoomendation from Lennart Poettering: · 1cd8a4e6
      Sam Lantinga authored
      I guess I don't have to mention that, but ALSA_WaitAudio() is
      pure evil, and just broken. getpid() returns pids, not tids. You get
      those via gettid(). But I'd recommend dropping that entirely. It's
      just broken.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404118
      1cd8a4e6
    • Sam Lantinga's avatar
      Recommendation from Lennart Poettering: · 3070b39b
      Sam Lantinga authored
      In ALSA_PlayAudio() it is a good idea to use snd_pcm_recover() instead
      of checking for the error codes yourself.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404117
      3070b39b
    • Sam Lantinga's avatar
      Recommendation from Lennart Poettering: · 8ce0ea38
      Sam Lantinga authored
      In ALSA_OpenAudio(): instead of setting period_size+n_periods OR
      buffer_size I'd recommend copying the hwparams stuff before you do
      this, then first try period_size+n_periods, and then apply it with
      snd_pcm_hw_params() and check if that works. If it didn't you should
      take the copy of hwparams and try setting buffer_size and apply that
      via snd_pcm_hw_params() and check if that worked. And if that failed
      too, then take the copy and don't apply neither period nor buffer
      settings and see if that works.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404116
      8ce0ea38
  2. 18 Oct, 2009 5 commits
    • Sam Lantinga's avatar
      There's a bug with gcc 4.4.1 and -O2 where srcp doesn't get the correct value... · b0f60f0a
      Sam Lantinga authored
      There's a bug with gcc 4.4.1 and -O2 where srcp doesn't get the correct value after the first scanline.  Ugh.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404114
      b0f60f0a
    • Sam Lantinga's avatar
      Fixed bug #855 · dc78cb75
      Sam Lantinga authored
       Ludwig Nussel      2009-10-18 06:31:52 PDT
      
      an mprotect call was added to fix bug 528. However that results in a buffer
      that allows writing and code execution. Ie the no-execute security features of
      modern operating systems are defeated this way. Two mprotect calls are needed.
      One to make the buffer executable but not writeable when done and another one
      to make the buffer writeable again if the content needs to be changed.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404112
      dc78cb75
    • Sam Lantinga's avatar
      Use MacOS line endings for Mac resource files · dd601600
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404111
      dd601600
    • Sam Lantinga's avatar
      Use MacOS line endings for SDL.x · 94eab0d7
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404110
      94eab0d7
    • Sam Lantinga's avatar
      Fixed bug #853 · 8a8f96df
      Sam Lantinga authored
       Ludwig Nussel      2009-10-18 05:34:18 PDT
      
      src/joystick/linux/SDL_sysjoystick.c has some problems:
      
      - test_bit() might break with strict aliasing
      - test_bit() assumes array is Uint32 but its actually "unsigned long"
        on 64bit systems sizeof(long) != sizeof(Uint32).
      - the keybit array is too small
      - the arrays are unitialized so the number of
        detected buttons is quite random
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404109
      8a8f96df
  3. 17 Oct, 2009 6 commits
    • Sam Lantinga's avatar
      We no longer have a DirectInput link requirement · ad338773
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404105
      ad338773
    • Sam Lantinga's avatar
      Fixed bug #849 · a336ec9d
      Sam Lantinga authored
      This was a silly bug. :)
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404104
      a336ec9d
    • Sam Lantinga's avatar
      Don't need the define anymore... · e9bac2e9
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404101
      e9bac2e9
    • Sam Lantinga's avatar
      Enable the ALSA debug code via environment variable · 335f70fa
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404100
      335f70fa
    • Sam Lantinga's avatar
      Option to fix bug #851 · 86dfb899
      Sam Lantinga authored
      For some people setting the period size works better (and is what SDL 1.2.13 did), but for most people it's the same or worse.  You can use an environment variable to pick which one you want.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404099
      86dfb899
    • Sam Lantinga's avatar
      matthew green · 28207014
      Sam Lantinga authored
      actually, please don't apply this upstream.  i need to think about
      a better solution..
      
      thanks.
      
      .mrg.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404098
      28207014
  4. 16 Oct, 2009 6 commits
    • Sam Lantinga's avatar
      Allow the application to resize the window without destroying the OpenGL context · 0b578413
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404097
      0b578413
    • Sam Lantinga's avatar
      patch-pulse (from ahoka@NetBSD.org): · cb5e4ff8
      Sam Lantinga authored
      Fix assertion triggered in pulsaudio by returning "unknown" instead
      of NULL pointer when guessing application name.
      
      - Use getprogname on NetBSD as it wont return NULL
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404096
      cb5e4ff8
    • Sam Lantinga's avatar
      patch-ac (from mrg@NetBSD.org): · 242f11f7
      Sam Lantinga authored
      Look for libGL.so, not any particular libGL.so.<X>, on NetBSD.
      (the comment inline explains why)
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404095
      242f11f7
    • Sam Lantinga's avatar
      patch-ab (from reinoud@NetBSD.org): · dbe69ecf
      Sam Lantinga authored
      Apply patch to first unlock the CD before trying to eject it. Since
      SDL doesn't seem to have lock/unlock primitives, this looks like the
      right thing to do.
      
      Fixes audio/tcd's eject function too.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404094
      dbe69ecf
    • Sam Lantinga's avatar
      It helps to use the right constant. :) · a084339a
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404093
      a084339a
    • Sam Lantinga's avatar
      Use SDL's byte order check, just to be sure · f068193f
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404092
      f068193f
  5. 15 Oct, 2009 3 commits
    • Ryan C. Gordon's avatar
      Don't call it "ALSA 0.9 PCM audio" anymore, since we moved to the stable API. · b627675b
      Ryan C. Gordon authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404091
      b627675b
    • Sam Lantinga's avatar
      Fixed building on Mac OS X · aeea9fca
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404090
      aeea9fca
    • Sam Lantinga's avatar
      Fixed bug #728 · 2b8a4a45
      Sam Lantinga authored
      I am using a headset on my monitor as primary sound output device. From time to
      time it happens that I switch off my monitor when I leave my computer and
      switch it on when I come back.
      When doing so while wesnoth is running I get no sound back when I switch on my
      monitor. There is probably good reason for that. Therefore I wanted to exit and
      restart wesnoth. Unfortunately, wesnoth always hangs in this situation. It
      looks like wesnoth can not be exited when the primary sound device vanished.
      I created a backtrace of this situation (please see attachment).
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404089
      2b8a4a45
  6. 14 Oct, 2009 1 commit
  7. 13 Oct, 2009 8 commits