twinaphex
c62d52de0f
Start properly implementing libretro SDK for boolean.h include
...
header, glsym, and rthreads
2014-10-21 05:05:52 +02:00
twinaphex
a35c61ec90
(Audio driver) Add 'alive' function callback
2014-10-01 21:42:19 +02:00
twinaphex
75d2e13dcb
Make drivers non-const
2014-09-11 07:06:20 +02:00
Mike Robinson
addbcc6487
Fix buffer overflow in JACK audio driver
...
retroarch.c:flush_rewind_audio() can potentially send up to
audio_data.rewind_buf of 2048 frames (4096 samples) to audio_flush().
rarch_resampler_process() can potentially multiply the number of
frames by AUDIO_MAX_RATIO, to 32768 frames.
audio/jack.c:write_buffer() allocates a buffer of only 2048 frames on
the stack, which can overflow. This reliably happens when rewinding in
slow motion.
Multiply the JACK driver buffer by AUDIO_MAX_RATIO to prevent overflow.
However, DSP can also adjust the number of frames without limit. There
is no DSP_MAX_RATIO, so check the number of frames in
audio/jack.c:write_buffer() and truncate if they will not fit the
buffer. This will cause garbled audio, but in practice it is unlikely
to occur (DSP plugins do not usually add frames, flush_rewind_audio()
does not usually send the maximum possible number of frames).
2014-08-31 15:50:34 +01:00
twinaphex
0a15a17d44
Update years on all license headers
2014-01-01 01:50:59 +01:00
Themaister
7aa8b40759
Fixup C89 for loops.
2013-10-22 21:37:56 +02:00
Themaister
0b4cf2d053
Update license headers to 2013.
2013-01-01 01:41:15 +01:00
Themaister
29a1e7ac27
Purge some still lingering SSNES-isms.
2012-09-07 21:56:26 +02:00
Themaister
e5b3a61f9f
Replace use of unsafe strtok() with strtok_r.
...
Implement compatibility for strtok_r() on Win32.
2012-06-24 02:37:19 +02:00
Themaister
ce740f8948
More fixups.
2012-04-21 23:31:57 +02:00
Themaister
aab8fb6151
ssnes_* => rarch_*.
2012-04-21 23:25:32 +02:00
Themaister
9ab51ad23a
SSNES => RetroArch.
2012-04-21 23:17:43 +02:00
Themaister
e3a71a8c5b
Fixup headers.
2012-04-09 22:05:26 +02:00
Themaister
62c96ea937
Change license header.
2012-04-09 22:03:57 +02:00
Themaister
9698cd7dbd
Change headers.
2012-04-09 22:03:57 +02:00
Themaister
c833a71d2c
Rate control for Pulse and Jack.
2012-02-20 18:39:50 +01:00
Themaister
b4248038fb
Update license headers.
2012-01-08 01:12:05 +01:00
Themaister
eac468ba19
MSVC compat.
2011-12-25 01:38:59 +01:00
Themaister
d5fca50a2f
Can build for C++.
2011-12-24 15:26:01 +01:00
Themaister
4806d2fe88
Clear up inconsistencies, and avoid breaking standard compliance.
2011-11-02 20:04:31 +01:00
Themaister
0f010cf3d2
Fix style nits.
2011-11-02 19:31:36 +01:00
Themaister
a76b25aff9
Fix ugly Jack crash with race condition.
2011-08-14 16:29:31 +02:00
Themaister
343852af26
Allocate before activation.
2011-08-14 16:24:42 +02:00
Themaister
6244671b04
Small API cleanup.
2011-05-15 15:57:47 +02:00
Themaister
84b2b9c7a5
Fix up Jack deprecation.
2011-03-06 16:58:33 +01:00
Themaister
2267c7d048
Update licensing headers.
2011-01-23 20:29:28 +01:00
Themaister
c7e6e73bcb
Fix a blooper in headers.
2011-01-17 20:54:58 +01:00
Themaister
5c9c4f42c3
Clean up float handling a bit.
...
ALSA now checks if floating point is supported to avoid one extra
conversion, also clean up the driver itself a bit.
2011-01-15 20:37:42 +01:00
Themaister
eceac31060
Some rework in Jack. Better buffer handling and should reach lower
...
latencies more stable.
2011-01-14 16:32:12 +01:00
Themaister
6b21e6b8a3
Clean up audio a bit. Less use of nasty statics and VLAs.
2011-01-14 15:34:38 +01:00
Themaister
5f69145be2
Fix some issues with jack driver.
2011-01-01 04:50:35 +01:00
Themaister
b47f58c338
Add Jack audio driver.
2011-01-01 03:53:30 +01:00