aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/pulse_audio_dec.c
Commit message (Collapse)AuthorAgeFilesLines
* avformat/avformat: Add FFInputFormat, hide internals of AVInputFormatAndreas Rheinhardt2024-03-071-5/+6
| | | | | | | | | | | | | | | | | | | | | This commit does for AVInputFormat what commit 59c9dc82f450638a3068deeb1db5c56f6d155752 did for AVOutputFormat: It adds a new type FFInputFormat, moves all the internals of AVInputFormat to it and adds a now reduced AVInputFormat as first member. This does not affect/improve extensibility of both public or private fields for demuxers (it is still a mess due to lavd). This is possible since 50f34172e0cca2cabc5836308ec66dbf93f5f2a3 (which removed the last usage of an internal field of AVInputFormat in fftools). (Hint: tools/probetest.c accesses the internals of FFInputFormat as well, but given that it is a testing tool this is not considered a problem.) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* Revert "all: Don't set AVClass.item_name to its default value"Anton Khirnov2024-01-201-0/+1
| | | | | | | Some callers assume that item_name is always set, so this may be considered an API break. This reverts commit 0c6203c97a99f69dbaa6e4011d48c331e1111f5e.
* all: Don't set AVClass.item_name to its default valueAndreas Rheinhardt2023-12-221-1/+0
| | | | | | | | Unnecessary since acf63d5350adeae551d412db699f8ca03f7e76b9; also avoids relocations. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avdevice/pulse_audio_dec: deprecate frame_size optionMarton Balint2022-06-161-1/+2
| | | | | | It does not do anything. Frame sizes can be controlled by using fragment_size. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/pulse_audio_dec: reduce default fragment sizeMarton Balint2022-06-161-1/+6
| | | | | | | | | | | | | Reduces default fragment size from the pulse audio default of 2 sec to 50 ms. This also has an effect on the size of the returned frames, which will be around 50 ms as well, making timestamps more accurate. This should fix the regression in ticket #9776. Pulseaudio timestamps for monitor sources are still pretty inaccurate for me, but I don't see how else should we query latencies from the library. Signed-off-by: Marton Balint <cus@passwd.hu>
* Revert "avdevice/pulse_audio_dec: only set adjust latency flag if ↵Marton Balint2022-06-161-1/+1
| | | | | | | | | | fragment_size is not set" This reverts commit 7f059a250bb7bcbf7bba537c1a059a5934413035. Apparently adjusting latency makes a difference even if fragment size is specifed. Signed-off-by: Marton Balint <cus@passwd.hu>
* libavformat: Split version.hMartin Storsjö2022-03-161-0/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* pulseaudio: convert to new channel layout APIJames Almer2022-03-151-1/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avdevice: Constify all devicesAndreas Rheinhardt2021-04-271-1/+1
| | | | | | | This is possible now that the next-API is gone. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avdevice/pulse_audio_dec: do not read undersized framesMarton Balint2021-03-121-30/+41
| | | | | | | | | | | Keep on reading fragments until we got fragment_size amount of data, otherwise we might get frames with 1-2 samples only if pa_stream_peek is called slightly less frequently than sample rate. Note that fragments might contain a lot less data than fragment_size, so reading multiple fragments to get fragment_size amount of data is intentional. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/pulse_audio_dec: only set adjust latency flag if fragment_size is ↵Marton Balint2021-03-121-1/+1
| | | | | | | | not set Otherwise fragment_size is ignored. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/pulse_audio_dec: query actual fragment sizeMarton Balint2021-03-121-0/+9
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* libavdevice: Update the class name as uniform styleJun Zhao2019-08-151-1/+1
| | | | | | | Update the class name to uniform indev/outdev style. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* avdevice/pulse_audio_dec: set channel mapPaul B Mahol2018-09-141-1/+4
| | | | This fixes opening devices with >6 channels.
* avdevice: migrate to AVFormatContext->urlMarton Balint2018-01-281-2/+2
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* Merge commit '9200514ad8717c63f82101dc394f4378854325bf'Derek Buitenhuis2016-04-101-4/+4
| | | | | | | | | | | | | | | | * commit '9200514ad8717c63f82101dc394f4378854325bf': lavf: replace AVStream.codec with AVStream.codecpar This has been a HUGE effort from: - Derek Buitenhuis <derek.buitenhuis@gmail.com> - Hendrik Leppkes <h.leppkes@gmail.com> - wm4 <nfxjfg@googlemail.com> - Clément Bœsch <clement@stupeflix.com> - James Almer <jamrial@gmail.com> - Michael Niedermayer <michael@niedermayer.cc> - Rostislav Pehlivanov <atomnuker@gmail.com> Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* Merge commit 'c201069fac9a76e6604f9d84d76a172434d62200'Michael Niedermayer2015-04-091-2/+5
| | | | | | | | | | | | | | | | * commit 'c201069fac9a76e6604f9d84d76a172434d62200': avdevice: Add missing header for NULL_IF_CONFIG_SMALL Conflicts: libavdevice/alsa-audio-dec.c libavdevice/alsa-audio-enc.c libavdevice/pulse_audio_dec.c libavdevice/sndio_enc.c libavdevice/vfwcap.c libavdevice/x11grab.c libavdevice/xcbgrab.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* avdevice/pulse_audio_dec: remove double ;;Clément Bœsch2015-01-181-2/+2
|
* Merge commit '424b929b5cb9ca4094099f25179829260d4b0fa3'Michael Niedermayer2014-08-241-1/+4
| | | | | | | | | | | | | * commit '424b929b5cb9ca4094099f25179829260d4b0fa3': pulse: Add a wallclock option to be compatible with other other captures Conflicts: libavdevice/pulse_audio_dec.c wallclock mode was supported and default in FFmpeg already before this commit. its thus left the default Merged-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/pulse_audio_dec: use default source when no input providedLukasz Marek2014-08-181-1/+1
| | | | | | | | | PulseAudio expilitly requires name of the source. This patch makes it use default source when not provided. It simplifies programistic use. Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avdevice/pulse_audio_dec: reimplement using the non simple APIMichael Niedermayer2014-07-091-53/+234
| | | | | | | | This fixes timestamps Based-on: code from pulseaudio Reviewed-by: Lukasz Marek <lukasz.m.luki2@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avdevice/pulse_audio_dec: clear pa_simple pointer after deallocationMichael Niedermayer2014-07-031-0/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/pulse_audio_dec: implement get_device_list callbackLukasz Marek2014-03-291-0/+7
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd: add categories to device implementationsLukasz Marek2014-03-031-0/+1
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* pulse: get latency only when neededFederico Simoncelli2014-01-051-7/+8
| | | | | Signed-off-by: Federico Simoncelli <fsimonce@redhat.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* pulse: set time_base as multiple of sample_rateFederico Simoncelli2014-01-051-4/+10
| | | | | | | | | The stream time_base has been changed to be a multiple of the device sample_rate. Now the frame_duration computation is simpler and a message will warn about problematic frame_size values. Signed-off-by: Federico Simoncelli <fsimonce@redhat.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/pulse: add ff_ prefix and fix param typeLukasz Marek2013-11-041-1/+1
| | | | | | | Add ff_ prefix for internal API function. Change type of param from int into enum AVCodecID as it is more specific. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/pulse_audio_dec: apply cosmetic changesLukasz Marek2013-10-181-7/+7
| | | | | | | | In particular, fix punctuation in docs and make option help messages grammatically consistent. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* lavd/pulse: move common code to separate fileLukasz Marek2013-10-081-18/+1
| | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/pulse: rename pulse.c into pulse_audio_dec.cLukasz Marek2013-10-081-0/+190
This make name of the file more specific as there is also encoder implementation. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>