obs-studio/libobs
jp9000 4b15880231 libobs: Discard remainder audio if source audio stopped
If the circular audio buffer of the source has data remaining that's
less than the audio frame tick count (1024 frames), it would just leave
that audio data on the source without discarding it.  However, this
could cause audio buffering to increase unnecessarily under certain
circumstances (when the next audio timestamp is within the timestamp
jump window), so it would append data to that circular buffer despite
the audio stopping that long ago, causing audio buffering to have to
increase to compensate.

Instead, just discard pending audio if it hasn't been written to.  In
other words, if the audio has stopped and there's insufficient audio
left to continue processing.
2016-01-31 00:55:02 -08:00
..
callback libobs/callback: Allow ability to use calldata_t with stack 2016-01-25 17:29:08 -08:00
data libobs: Add Planar444 conversion to effect 2015-04-16 22:43:46 -07:00
graphics libobs/graphics: Add gs_image_file_* functions (w/animated gifs) 2016-01-25 17:29:08 -08:00
media-io libobs/media-io: Reset audio array for each input 2016-01-26 11:49:36 -08:00
util libobs/util: Make all atomic funcs inline and use intrinsics 2016-01-23 07:17:44 -08:00
CMakeLists.txt libobs: Implement transition sources 2016-01-26 11:49:45 -08:00
LibObsConfig.cmake.in cmake: Export plugin data destination 2014-09-27 09:41:32 -07:00
LibObsConfigVersion.cmake.in Export libobs cmake target, so external plugins can be built without ugly hacks 2014-05-08 14:43:16 +02:00
obs-audio-controls.c libobs: Do not use signals with audio capture/controls 2016-01-26 11:49:47 -08:00
obs-audio-controls.h libobs: Do not use signals with audio capture/controls 2016-01-26 11:49:47 -08:00
obs-audio.c libobs: Discard remainder audio if source audio stopped 2016-01-31 00:55:02 -08:00
obs-avc.c libobs: Add function to determine AVC keyframes 2014-12-21 10:14:22 -08:00
obs-avc.h libobs: Add function to determine AVC keyframes 2014-12-21 10:14:22 -08:00
obs-cocoa.c libobs: Use IOKit error code when polling hotkeys (OSX) 2015-10-07 11:06:40 +02:00
obs-config.h libobs: Update version to 0.13.0 2016-01-27 15:48:35 -08:00
obs-data.c libobs: Fix unsigned expression warning 2015-11-16 08:22:55 -08:00
obs-data.h libobs: Add obs_data wrappers for media_frames_per_second 2015-11-14 15:37:59 +01:00
obs-defs.h libobs: Add output stop error for "no space left" 2015-09-18 22:04:23 -07:00
obs-display.c libobs: Add func to set display background color 2015-04-10 07:27:23 -07:00
obs-encoder.c libobs: Ensure paired encoders start up at the same time 2016-01-31 00:55:01 -08:00
obs-encoder.h (API Change) libobs: Pass type data to get_name callbacks 2015-09-16 09:21:12 -07:00
obs-ffmpeg-compat.h Use propper ffmpeg compatiblity instead of relying on deprecated functions 2014-06-28 20:54:14 +02:00
obs-hotkey-name-map.c libobs: Fix warning from mingw 2015-07-11 14:26:48 -07:00
obs-hotkey.c libobs: Use byte sequence for non-breaking spaces 2015-10-15 01:31:07 -07:00
obs-hotkey.h libobs: Add scene item hotkeys 2015-05-11 20:45:25 +02:00
obs-hotkeys.h libobs: Add global hotkey support 2015-05-11 20:45:24 +02:00
obs-interaction.h Add interaction support to libobs 2014-09-15 17:19:37 -05:00
obs-internal.h libobs: Discard remainder audio if source audio stopped 2016-01-31 00:55:02 -08:00
obs-module.c libobs: Do not require get_width/height for filters/transitions 2016-01-26 11:49:43 -08:00
obs-module.h libobs: Add API func to get module config path 2015-08-19 12:16:21 -07:00
obs-nix.c libobs: Fix mouse button hotkeys on linux 2015-05-16 20:10:49 -07:00
obs-output-delay.c libobs: Use calldata with stack for simple signals 2016-01-26 11:49:56 -08:00
obs-output.c libobs: Try to pair video with one multi-track encoders 2016-01-31 00:55:00 -08:00
obs-output.h (API Change) libobs: Pass type data to get_name callbacks 2015-09-16 09:21:12 -07:00
obs-properties.c libobs: Add frame rate property 2015-11-14 15:37:59 +01:00
obs-properties.h libobs: Add frame rate property 2015-11-14 15:37:59 +01:00
obs-scene.c libobs: Use calldata with stack for simple signals 2016-01-26 11:49:56 -08:00
obs-scene.h libobs: Buffer scene item visibility actions 2016-01-26 11:49:36 -08:00
obs-service.c libobs: Allow "private" contexts 2016-01-26 11:49:47 -08:00
obs-service.h (API Change) libobs: Pass type data to get_name callbacks 2015-09-16 09:21:12 -07:00
obs-source-transition.c libobs: Implement transition sources 2016-01-26 11:49:45 -08:00
obs-source.c libobs: Fix variable being access outside of a mutex 2016-01-31 00:54:55 -08:00
obs-source.h libobs: Add source output flag OBS_SOURCE_DO_NOT_DUPLICATE 2016-01-26 11:49:50 -08:00
obs-ui.h libobs: Add private data to definition structures 2015-09-16 09:17:13 -07:00
obs-video.c libobs: Remove "presentation volume" and "base volume" (skip) 2016-01-26 11:49:32 -08:00
obs-view.c libobs: Hide sources when an obs_view is destroyed 2015-03-02 12:23:25 -08:00
obs-win-crash-handler.c libobs: Always write crashing thread first 2015-11-18 12:42:14 -08:00
obs-windows.c libobs/util: Add os_get_abs_path(_ptr) functions 2015-10-15 01:35:18 -07:00
obs.c libobs: Refactor obs_get_source_by_name 2016-01-26 11:49:49 -08:00
obs.h (API Change) libobs: Add 'type' to obs_scene_duplicate 2016-01-26 11:49:52 -08:00
obs.hpp (API Change) libobs: Add global module config path 2015-08-19 12:16:20 -07:00
obsconfig.h.in libobs/util: Add functions to inhibit sleep 2015-09-12 22:08:05 -07:00