Wim Taymans
8594d28f59
alsa: rework monitor
...
Enumerate all playback and capture devices
2017-04-05 18:37:12 +02:00
Wim Taymans
22070ecbf8
improve format filters
2017-04-04 20:25:02 +02:00
Wim Taymans
4bdbb58276
alsa: implement enum_format
2017-04-04 19:44:00 +02:00
Wim Taymans
4337a99bb0
alsa: add more formats
2017-04-04 17:25:47 +02:00
Wim Taymans
39c3650b5f
fix media.class
2017-04-04 15:32:11 +02:00
Wim Taymans
8071b76e41
alsa: improve default buffer size
...
Fix sample size
2017-04-04 12:05:35 +02:00
Wim Taymans
032cc69f2f
plugins: small cleanups
2017-04-04 09:40:12 +02:00
Wim Taymans
b05d82d514
plugins: use macros for input checks
...
That way we can compile them out if we want
2017-04-04 09:00:49 +02:00
Wim Taymans
32368d741d
audiotestsrc: implement sine wave
...
Fix audiomixer some more
2017-04-03 19:23:53 +02:00
Wim Taymans
5c32690cc8
Add sync and async support in *testsrc
...
Make minumum alsa latency configurable.
2017-04-03 16:54:44 +02:00
Wim Taymans
01c13adab5
improve node io
...
Unify input and output io areas.
Add support for ranges in the io area.
Automatically recycle buffers in the output areas in process_output
Improve the mixer, add use_buffer support, use a queue of input buffers,
fix mixing, add support for ranges.
Fix mixer and v4l2 tests
2017-04-03 14:56:04 +02:00
Wim Taymans
29fbf2e841
props: improve prop flags
...
Only keep the READONLY prop flag.
Work on test-mixer
2017-03-31 11:48:24 +02:00
Wim Taymans
7b8bb8da6b
implement alsa capture with timers
...
Add timer based alsa capture support
Improve format negotiation in alsa
Better track buffer owner in the links
2017-03-30 17:30:28 +02:00
Wim Taymans
3f8123143d
alsa: use absolute timers
...
Use absolute timers, together with the alsa timestamp they are
potentially more accurate.
fix some crashes
2017-03-29 16:39:24 +02:00
Wim Taymans
46928cbc04
alsa: use timerfd
...
Use timerfd instead of period events to wake up alsa.
module-autolink: fix crash
Some cleanups
2017-03-28 19:29:08 +02:00
Wim Taymans
29cb7bf39a
format: improve format parsing
2017-03-24 18:11:11 +01:00
Wim Taymans
25b7ede0bc
uri -> type
...
Clean up some more types.
2017-03-24 13:11:57 +01:00
Wim Taymans
5825c62d6d
types: more work on types
2017-03-24 11:40:58 +01:00
Wim Taymans
acedfe71c0
clean up types
2017-03-23 21:15:52 +01:00
Wim Taymans
3dba9f0fd4
pod: handle NULL
2017-03-23 16:08:50 +01:00
Wim Taymans
e28b5f91b8
props: make properties dynamic keys and values
2017-03-23 12:38:00 +01:00
Wim Taymans
048a4b81a8
alloc-params: use dynamic types for alloc-params
2017-03-23 10:12:20 +01:00
Wim Taymans
7270986c3a
monitor: use dynamic types
...
Make the monitor item a POD object and use dynamic types.
2017-03-23 08:54:04 +01:00
Wim Taymans
c44a7c9735
command: make commands dynamic
...
Ensure format object type.
2017-03-22 10:04:24 +01:00
Wim Taymans
4d9f2c5161
event: make events dynamic
...
Use uri for the events.
2017-03-21 20:39:20 +01:00
Wim Taymans
03292fd80f
audio: make audio format an uri type
2017-03-21 16:50:44 +01:00
Wim Taymans
ff62c1b9ce
format: make formats as uri
2017-03-21 13:36:22 +01:00
Wim Taymans
3f5a3e215b
format: make media types and properties dynamic
...
Use URI properties to dynamically register the media types/subtypes and
property names. Add some helpers to set up the mappings.
2017-03-21 11:28:23 +01:00
Wim Taymans
8a6ce3b179
Make AllocParams into POD objects
...
Make allocparams into pod objects. This makes it easy to serialize,
copy, create and intersect them.
Add convenience macros for properties
Add helper function to collect object properties.
2017-03-17 11:58:09 +01:00
Wim Taymans
c951264fff
spa: make events and commands as objects
...
So we can serialize and introspect them more easily
2017-03-15 16:21:05 +01:00
Wim Taymans
a1dad30fd1
Use new builder for props and formats
2017-03-07 19:40:51 +01:00
Wim Taymans
f92b68c3c3
Use types with known sizes where we can, easier to serialize
...
Add iterator for POD and use it to implement some demarshalling.
2017-03-07 11:56:43 +01:00
Wim Taymans
c063e206f4
v4l2: fix encoded formats
2017-03-01 14:59:49 +01:00
Wim Taymans
710a1a41e6
Improve negotiation
...
Fix selection of the default property value by restricting it to
something in the valid range of the property.
Fix audio/videotestsrc reuse
Fix format enum with filters.
Fix module property configuration
Fix connection refill
2017-03-01 14:07:02 +01:00
Wim Taymans
9dd826136d
update properties
2017-02-28 10:48:53 +01:00
Wim Taymans
dbae2e3f96
rework props with pod
2017-02-27 21:25:33 +01:00
Wim Taymans
f02f93cda9
pod: make format like other PODs
2017-02-27 17:07:48 +01:00
Wim Taymans
e2d930e394
props: move prop builder to pod-builder.h
2017-02-26 19:52:21 +01:00
Wim Taymans
825cbbbdd6
v4l2: fix negotiation
2017-02-24 17:15:29 +01:00
Wim Taymans
16b62de53a
Rework formats
...
Use a POD for the format body. This allows us to more easily build
and copy the formats.
Remove obsolete code to make video and audio formats.
Use SpaVideo/AudioInfo to keep track of formats. Make functions to parse
the format into the structures.
Update plugins
2017-02-24 09:28:18 +01:00
Wim Taymans
808d6b6fca
prop-builder: add helper to make properties and formats
...
Use this to make a format filter. Use the filter to negotiate
a format automatically.
2017-02-20 17:22:46 +01:00
Wim Taymans
df86fcec10
Improve negotiation
...
Try to link ports based on compatible formats
Add methods to filter formats.
2017-02-10 10:17:07 +01:00
Wim Taymans
1370fafd5b
Fix renegotiation
...
When we are idle and are asked to negotiate, suspend first so that we
can do full negotiation again instead of using the old format.
Stability fixes.
2017-02-02 17:48:39 +01:00
Wim Taymans
b38ecafe81
Use int counters for iterating items
...
Use counters instead of void* to iterate items. This simplifies some
things and makes it easier to do over the wire.
Add format description to NodeInfo and use this to add format
descriptions to pinos devices.
Small fixes to fix leaks and crashes.
2017-02-01 08:58:21 +01:00
Wim Taymans
fd5f0d96f3
improve states
2017-01-19 20:07:03 +01:00
Wim Taymans
0398f997d7
cleanups
...
Update some docs
Remove special structs for some events
Remove some unused flags
Update some plugins
2017-01-19 18:10:00 +01:00
Wim Taymans
7a9dc2c4fd
optimize data transport
...
Remove queue and ringbuffer between nodes. transfer the buffer id
directly between the io areas when possible.
Let only pinos send push or pull requests for now.
Allow polling multiple fds, like how alsa wants it
Remove port_id from events.
2017-01-18 18:29:15 +01:00
Wim Taymans
cae971e106
improve error reporting
...
Move signals from core to the objects themselves
Use per object info to track object signals
Use periods in alsasink and source
2017-01-17 10:27:58 +01:00
Wim Taymans
2f18af1fb2
plugins: small fixes
2016-12-20 19:13:04 +01:00
Wim Taymans
f5dbdbc0df
Improve process_output
...
process_output is now to finish processing of the output in async nodes,
which means we need to fill the io area before sending the HAVE_OUTPUT
event. This simplifies some things and improves performance because we
don't need to deal with queues and additional checks.
2016-12-20 18:10:50 +01:00