[quake3-commits] [ioquake/ioq3] 4f8c7c: Support SDL audio devices that require float32 sam...

Ryan C. Gordon icculus at icculus.org
Sat Apr 14 00:45:54 EDT 2018


  Branch: refs/heads/master
  Home:   https://github.com/ioquake/ioq3
  Commit: 4f8c7c2f2f2ea979518d2e116e48838df45e7ea6
      https://github.com/ioquake/ioq3/commit/4f8c7c2f2f2ea979518d2e116e48838df45e7ea6
  Author: Ryan C. Gordon <icculus at icculus.org>
  Date:   2018-04-13 (Fri, 13 Apr 2018)

  Changed paths:
    M code/client/cl_avi.c
    M code/client/snd_dma.c
    M code/client/snd_local.h
    M code/client/snd_mix.c
    M code/sdl/sdl_snd.c

  Log Message:
  -----------
  Support SDL audio devices that require float32 samples.

Fixes missing audio when playing on Windows with SDL 2.0.7, which started
using WASAPI, which demands floating point audio.


  Commit: 62acfb3348d800a97484be4833c6d4ac7437f2ec
      https://github.com/ioquake/ioq3/commit/62acfb3348d800a97484be4833c6d4ac7437f2ec
  Author: Ryan C. Gordon <icculus at icculus.org>
  Date:   2018-04-13 (Fri, 13 Apr 2018)

  Changed paths:
    M code/sdl/sdl_snd.c

  Log Message:
  -----------
  sdl_snd.c should just initialize SDL audio without checking SDL_WasInit().

In SDL2, the initialized subsystems are referenced counted, so it's safe to
initialize them twice, and it makes the SDL_QuitSubSystem during our shutdown
correctly decrement the count. Before (as a probably-harmless bug), it would
not increment the refcount if the subsystem was already initialized, causing
problems when it decremented it later.


  Commit: 2f62394174bb31dff4f56eaf7d84158f4a8d3968
      https://github.com/ioquake/ioq3/commit/2f62394174bb31dff4f56eaf7d84158f4a8d3968
  Author: Ryan C. Gordon <icculus at icculus.org>
  Date:   2018-04-13 (Fri, 13 Apr 2018)

  Changed paths:
    M code/sdl/sdl_snd.c

  Log Message:
  -----------
  There's no need to SDL_PauseAudio(1) before calling SDL_CloseAudio().


  Commit: 69f92daf084b5545f223ec000e62306b5a6d9700
      https://github.com/ioquake/ioq3/commit/69f92daf084b5545f223ec000e62306b5a6d9700
  Author: Ryan C. Gordon <icculus at icculus.org>
  Date:   2018-04-13 (Fri, 13 Apr 2018)

  Changed paths:
    M code/client/snd_dma.c
    M code/client/snd_local.h
    M code/null/null_snddma.c
    M code/sdl/sdl_snd.c

  Log Message:
  -----------
  Added audio capture support to SDL backend.

This lets you speak through VoIP when not using OpenAL. Previously you could
listen but not speak.


  Commit: 78c70d0afc383446e4163ad81b4f1af572a6eea9
      https://github.com/ioquake/ioq3/commit/78c70d0afc383446e4163ad81b4f1af572a6eea9
  Author: Ryan C. Gordon <icculus at icculus.org>
  Date:   2018-04-13 (Fri, 13 Apr 2018)

  Changed paths:
    M code/sdl/sdl_snd.c

  Log Message:
  -----------
  Use the SDL2 audio device interface instead of the legacy 1.2 API.

This is a little bit of future-proofing, but also gives us a little more
flexibility in general; now we can add in the cvars to open a specific
device, etc, that the OpenAL codepath does.


Compare: https://github.com/ioquake/ioq3/compare/3377f9981a5c...78c70d0afc38


More information about the quake3-commits mailing list