mpv/audio
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
..
decode audio: introduce a new type to hold audio frames 2017-08-16 21:10:54 +02:00
filter af_lavrresample: don't call swr_set_compensation() unless necessary 2017-08-12 12:12:52 +02:00
out audio: introduce a new type to hold audio frames 2017-08-16 21:10:54 +02:00
aframe.c audio: introduce a new type to hold audio frames 2017-08-16 21:10:54 +02:00
aframe.h audio: introduce a new type to hold audio frames 2017-08-16 21:10:54 +02:00
audio.c audio: introduce a new type to hold audio frames 2017-08-16 21:10:54 +02:00
audio.h audio: introduce a new type to hold audio frames 2017-08-16 21:10:54 +02:00
audio_buffer.c Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
audio_buffer.h Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
chmap.c chmap: remove misleading "downmix" channel layout name 2017-06-24 11:36:10 +02:00
chmap.h player: remove special-case for DL/DR speakers 2016-08-04 19:14:35 +02:00
chmap_sel.c audio: use --audio-channels=auto behavior, except on ALSA 2016-08-04 20:49:20 +02:00
chmap_sel.h audio: use --audio-channels=auto behavior, except on ALSA 2016-08-04 20:49:20 +02:00
fmt-conversion.c audio/fmt-conversion: change license to LGPL 2017-05-05 07:25:55 +02:00
fmt-conversion.h audio/fmt-conversion: change license to LGPL 2017-05-05 07:25:55 +02:00
format.c audio: drop AF_FORMAT_S24 2017-07-07 17:56:22 +02:00
format.h audio: drop AF_FORMAT_S24 2017-07-07 17:56:22 +02:00