1
mirror of https://code.videolan.org/videolan/vlc synced 2024-07-29 11:58:24 +02:00
Commit Graph

76 Commits

Author SHA1 Message Date
Romain Vimont
3716a7da5b config: remove remaining "advanced" flags
The config "advanced" flag was unused and has been removed by
6a7a137f7b.

It has been removed from many add_*() macros, but not all. Remove it
from the remaining macros.
2021-06-06 08:42:50 +00:00
Lyndon Brown
d75459a35b remove unnecessary option longtext
where identical to shorttext, or near enough.

bad because:
 - wastes resources.
 - useless tooltips in prefs GUI (poor UX) - tooltip longtext should add
   something of value.
 - useless repetition of text in certain help output.

in some cases they differed only in full-stop, creating unnecessary extra
burden on translators.
2021-05-12 05:44:11 +00:00
Thomas Guillem
2049d40876 aout: use a separate drain callback
This callback is not mandatory. If it is NULL, the core will wait for the delay
returned by time_get(). This was already the case for most aout plugins:
PulseAudio, coreaudio, Android, DirectSound, Wasapi, and Jack.
2019-03-19 16:01:53 +01:00
Steve Lhomme
5363279805 remove the $Id$ in the source code 2019-01-17 12:21:18 +01:00
Steve Lhomme
08af3e16c0 modules: add more vlc_tick_from_samples() 2018-09-20 17:12:58 +02:00
Steve Lhomme
5e95c92802 modules: use samples_from_vlc_tick() 2018-09-20 16:05:51 +02:00
Steve Lhomme
1f17997348 rename VLC_TS_INVALID to VLC_TICK_INVALID 2018-07-03 07:10:07 +02:00
Steve Lhomme
8b0c6bb9fa rename msleep() to vlc_tick_sleep() 2018-06-22 13:29:09 +02:00
Steve Lhomme
ff56c92a5e rename mtime_t to vlc_tick_t
Keep a copy of vlc_tick_tfor backward compatibility.
2018-06-22 13:19:24 +02:00
Rémi Denis-Courmont
f1b244cd43 aout: pass system play time to play callback 2018-05-04 20:48:15 +03:00
Romain Vimont
ff2901aff3 core: remove global *_sys_t typedefs
Do not declare *_sys_t typedefs globally in vlc_common.h. Instead,
declare them locally in each module that provides a definition.

This paves the way to move C++ definitions into anonymous namespaces in
order to respect C++ ODR.

The picture_resource_t and sout_stream_id_sys_t typedefs will be handled
separately, since they require specific additional changes.

See #18033

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2018-04-30 14:20:50 +02:00
Michał Trzebiatowski
293819990a i18n: typo fixes
Signed-off-by: Michał Trzebiatowski <michtrz@gmail.com>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-12-05 00:41:20 +01:00
Thomas Guillem
d5621e301e aout: jack: force bitmap channel type 2017-07-19 18:46:05 +02:00
Thomas Guillem
9d54fab3d5 aout: channel mask can be 0
Audio outputs don't need the channel mask for S/PDIF or HDMI passthrough.
This will be convenient for Dolby Atmos that can have a higher channel count
that can't be mapped.
2016-10-07 12:09:03 +02:00
Jean-Baptiste Kempf
713fe4331e jack: name the output ports depending on the input name
So, if you use jack-name, your output will be named
<jack-name>_out_[1-8]

Ref #16746

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2016-03-29 07:07:50 +02:00
Jean-Baptiste Kempf
035f11c8bf Jack: allow to specify a name of the instance through --jack-name
Ref #16746

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2016-03-25 08:40:35 +01:00
Rémi Denis-Courmont
972dfc6672 JACK: remove tautology
p_sys cannot be NULL here.
2014-04-23 19:43:33 +03:00
Rémi Denis-Courmont
fe3d8caa72 aout: remove Makefile recursion 2013-09-22 17:08:24 +03:00
Tristan Matthews
b195d6efae jack: lock ringbuffer in memory
The ringbuffer will be locked and later unlocked (during jack_ringbuffer_free),
on systems which implement mlock().

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2013-05-03 14:50:11 +02:00
Tristan Matthews
46db71d693 jack: don't deactivate/activate client in Flush()
Suspending audio processing in Flush() was breaking playback
for larger values of frames per period. Fixes #8551

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2013-05-02 18:41:56 +03:00
Tristan Matthews
070575cc97 jack: don't use legacy packet API
Instead, use a jack_ringbuffer which is shared between the thread
calling Play() and JACK's audio Process() thread. The ringbuffer is
a lock-free structure, safe for one writer and one reader thread to
use.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2013-04-13 19:49:03 +02:00
Rémi Denis-Courmont
70c1ea6b1b Remove aout_PacketPause() 2012-11-17 18:11:39 +02:00
Jean-Baptiste Kempf
fef270581f LGPL
Re-license almost all the playback modules to LGPLv2.1+ with
authorization from their respective contributors (230+)

This includes:
 - access, codec, packetizers, demux
 - audio filters, audio mixers, audio output
 - video filters, video chroma, video output
 - text renderers
 - XML parser
 - ARM NEON and SSE2 optimisations (mostly for chromas and filters)

Some modules are not concerned:
 - BDA and DShow access modules because Manol Manolov is AWOL
 - Real RTSP, because it is derived from Xine
 - x264 and t140 because they are encoders only
 - DLL Loader, because it is derived from MPlayer
 - DTS packetizer, because Jon Lech Johansen is AWOL
 - Shine and WMAfixed, because they are derived from Rockbox
 - Real demuxer, as it is derived from MPlayer and Wang Bo is AWOL
 - MPC demuxer, as Yavor Doganov is AWOL
 - Tivo demuxer, because it is derived from an MPlayer fork
 - Playlist demuxer, (WPL and ZPL parts missing), because suheaven is AWOL
 - iOS audio output and video display, because author refuses the license change
 - Equalizer and compressor, because Ronald Wright is AWOL
 - Mono, Headphone and Dolby, because author refuses the license change
 - hqdn3d and yadif, because they are from MPlayer/libavfilter
 - remoteosd, because it derives from RealVNC code
 - MMX optimisations, because Ollie Lho, from SiS, is AWOL
 - Rotate, because it depends on GPL motion

Nota Bene:
 - Some modules depend on GPL-only libraries, a LGPL module does not mean
   that the resulting binary module will be LGPL.
   Libraries affected would include liba52, libdvdcss, libdvdnav, libdvdread,
   faad2, libdca, libmad, libmpeg2, libpostproc, SRC, sid, zvbi and probably others.
2012-11-13 16:25:56 +01:00
Rémi Denis-Courmont
c19df7839c aout: separate time and play callbacks 2012-11-12 23:01:24 +02:00
Rémi Denis-Courmont
0c3c36fd01 aout: implement changing of software gain while not playing
This concerns ALSA, AudioQueue, JACK and KAI.
2012-10-31 20:32:44 +02:00
Rémi Denis-Courmont
b1c459e950 aout: add distinct start/stop callbacks (refs #4787, refs #7601)
This would enable the input manager to hold an audio output plugin at
all times. Then it would be possible to keep track of output devices,
volume, policy and (JACK) routing continuously. For this to work,
outputs will need to be patched so that device selection and volume
handling works even when playing back.

Note though that this commit only introduces the change in the
audio_output_t interface; it does not implement the features above.
2012-10-31 20:21:00 +02:00
Rémi Denis-Courmont
f626393984 aout: remove pf_ prefix where left (cosmetic) 2012-10-31 17:50:46 +02:00
Rémi Denis-Courmont
0b087d2113 JACK: use software amplification 2012-07-19 20:38:40 +03:00
Rémi Denis-Courmont
e2b439cfa1 Replace remaining instances of aout_buffer_t with block_t 2012-05-22 23:21:16 +03:00
Rémi Denis-Courmont
8fbafffc9d Replace remaining call sites of aout_BufferFree() 2012-05-22 23:06:52 +03:00
Rémi Denis-Courmont
c028792eba JACK: fix sampling rate (regression in VLC 2.0)
The format must be initialized before aout_PacketInit().
Fix Debian #664279 and LP#987231.

Pointed-out-by: Walter Ösch
2012-05-04 19:40:15 +03:00
Pere Orga
9abcaacf83 fix filename self-references
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2011-12-15 17:09:31 +02:00
Rémi Denis-Courmont
97521497e5 Simplify, clean up and rename aout_OutputNextBuffer() 2011-08-06 17:53:04 +03:00
Rémi Denis-Courmont
9b8e8006fe Call aout_PacketDestroy() on error paths too
aout_PacketInit() does not allocate anything yet, but it will have too.

By the way, the error paths of the (untouched by the commit)
DirectSound plugin seem a bit suspicious to me...
2011-08-04 18:49:35 +03:00
Rémi Denis-Courmont
297aefb712 aout: move packet FIFO management to plugins that need it 2011-08-04 18:16:10 +03:00
Rémi Denis-Courmont
3fe456070e fix warning 2011-08-04 18:16:09 +03:00
Rémi Denis-Courmont
cfca8bcd6d aout: split out packet-oriented output support code
This provides aout_PacketPlay(), aout_PacketPause() and
aout_PacketFlush() helpers for legacy audio outputs. They conveniently
match the callback prototypes of pf_play, pf_pause and pf_flush
respectively.
2011-08-04 00:08:52 +03:00
Rémi Denis-Courmont
e071592a44 aout: pass audio buffer explicitly to pf_play 2011-08-03 00:01:29 +03:00
Rémi Denis-Courmont
cba93dafca aout: add an optional flush/drain callback
Audio output plugins can use this to expedite discarding pending
buffers. This reduces latency upon seeking or stopping the input.

This new callback also supports explicit draining, but this is not
used for the time being.
2011-08-01 20:14:47 +03:00
Rémi Denis-Courmont
2516061e58 Rename aout_instance_t to audio_output_t 2011-07-25 18:15:57 +03:00
Rémi Denis-Courmont
d809a3fb94 Merge aout_output_t into aout_instance_t
This prepares for a possible cleanup of the audio output object,
especially hiding more stuff into the core.
2011-07-25 18:15:37 +03:00
Rémi Denis-Courmont
1d7fcd8c73 Add pause callback for audio output (aout_output_t.pf_pause)
This is required for PulseAudio synchronization and to pause/resume
with low-latency. This should also be useful for other buffered
 audio outputs such as ALSA or CoreAudio.
2011-07-08 20:58:50 +03:00
Jean-Baptiste Kempf
68cedacfe8 Jack: auto-connect by default
And do not flag as advanced the 2 useful options
2011-03-17 00:21:01 +01:00
Rémi Denis-Courmont
40b4d780a4 add_bool: remove callback parameter 2010-10-22 21:11:38 +03:00
Rémi Denis-Courmont
3204d23260 Remove legacy parameter from add_string() 2010-10-22 21:09:47 +03:00
Rémi Denis-Courmont
ae2c9e4fb6 var_InheritInteger -> var_InheritBool 2010-06-07 00:25:10 +03:00
Rémi Denis-Courmont
90020f6641 JACK output: use var_Inherit 2009-12-30 20:39:38 +02:00
Jakob Leben
7bb31a1f8c jack: use real latency for buffer date 2009-12-03 14:56:45 +01:00
Jakob Leben
19a97d7922 jack: correct requested buffer date
+ remove a dead line & kill a warning
2009-11-28 11:02:37 +01:00
Jakob Leben
82a66cf4c0 jack: replace deprecated jack_client_new with jack_client_open 2009-11-25 08:48:01 +01:00