mpv/audio/out
wm4 1f593beeb4 audio: introduce a new type to hold audio frames
This is pretty pointless, but I believe it allows us to claim that the
new code is not affected by the copyright of the old code. This is
needed, because the original mp_audio struct was written by someone who
has disagreed with LGPL relicensing (it was called af_data at the time,
and was defined in af.h).

The "GPL'ed" struct contents that surive are pretty trivial: just the
data pointer, and some metadata like the format, samplerate, etc. - but
at least in this case, any new code would be extremely similar anyway,
and I'm not really sure whether it's OK to claim different copyright. So
what we do is we just use AVFrame (which of course is LGPL with 100%
certainty), and add some accessors around it to adapt it to mpv
conventions.

Also, this gets rid of some annoying conventions of mp_audio, like the
struct fields that require using an accessor to write to them anyway.

For the most part, this change is only dumb replacements of mp_audio
related functions and fields. One minor actual change is that you can't
allocate the new type on the stack anymore.

Some code still uses mp_audio. All audio filter code will be deleted, so
it makes no sense to convert this code. (Audio filters which are LGPL
and which we keep will have to be ported to a new filter infrastructure
anyway.) player/audio.c uses it because it interacts with the old filter
code. push.c has some complex use of mp_audio and mp_audio_buffer, but
this and pull.c will most likely be rewritten to do something else.
2017-08-16 21:10:54 +02:00
..
ao.c audio: introduce a new type to hold audio frames 2017-08-16 21:10:54 +02:00
ao.h audio: introduce a new type to hold audio frames 2017-08-16 21:10:54 +02:00
ao_alsa.c ao_alsa: drop use of AF_FORMAT_S24 2017-07-07 17:56:18 +02:00
ao_audiounit.m ao_coreaudio: change license to LGPL 2017-05-08 13:57:40 +02:00
ao_coreaudio.c ao_coreaudio: change license to LGPL 2017-05-08 13:57:40 +02:00
ao_coreaudio_chmap.c
ao_coreaudio_chmap.h
ao_coreaudio_exclusive.c ao_coreaudio: insane hack for passing through AC3 as float PCM 2017-06-30 09:06:01 +02:00
ao_coreaudio_properties.c ao_coreaudio: change license to LGPL 2017-05-08 13:57:40 +02:00
ao_coreaudio_properties.h ao_coreaudio: change license to LGPL 2017-05-08 13:57:40 +02:00
ao_coreaudio_utils.c ao_coreaudio: change license to LGPL 2017-05-08 13:57:40 +02:00
ao_coreaudio_utils.h ao_coreaudio: change license to LGPL 2017-05-08 13:57:40 +02:00
ao_jack.c ao_jack: update latency on buffer_size/graph change 2017-03-18 14:15:34 +01:00
ao_lavc.c audio/out: require AO drivers to report period size and correct buffer 2017-06-25 15:57:43 +02:00
ao_null.c audio/out: require AO drivers to report period size and correct buffer 2017-06-25 15:57:43 +02:00
ao_openal.c audio/out: require AO drivers to report period size and correct buffer 2017-06-25 15:57:43 +02:00
ao_opensles.c options: remove deprecated sub-option handling for --vo and --ao 2016-11-25 21:17:25 +01:00
ao_oss.c ao_oss: fix a dumb calculation 2017-07-21 19:45:59 +02:00
ao_pcm.c ao_pcm: drop AF_FORMAT_S24 usage 2017-07-07 17:56:18 +02:00
ao_pulse.c ao_pulse: reorder format choice 2017-06-23 21:12:44 +02:00
ao_rsound.c ao_pulse, ao_rsound: change license to LGPL 2017-05-08 14:09:49 +02:00
ao_sdl.c options: remove deprecated sub-option handling for --vo and --ao 2016-11-25 21:17:25 +01:00
ao_sndio.c ao_sndio: drop AF_FORMAT_S24 usage 2017-07-07 17:56:18 +02:00
ao_wasapi.c ao_wasapi: return bool instead of HRESULT from thread_init 2017-08-07 14:33:03 -07:00
ao_wasapi.h ao_wasapi: reorganize wasapi.h 2017-08-07 14:33:03 -07:00
ao_wasapi_changenotify.c ao_wasapi_changenotify: use %ls instead of %S for wchar_t 2017-04-20 07:38:03 +02:00
ao_wasapi_utils.c ao_wasapi: remove old comment 2017-08-07 16:33:29 -07:00
internal.h audio/out: add helper code to do 24 bit conversion in AO 2017-07-07 17:54:05 +02:00
pull.c audio/out: correct copy length in ao_read_data_converted 2017-07-09 13:46:13 -07:00
push.c Avoid calling close(-1) 2017-06-29 10:31:13 +02:00