Wim Taymans
06be2b8632
baseaudiosink: take clock time in setcaps
...
Take the time of the clock so that the last_time field is set. This is important
for sinks that restart their internal ringbuffer after a caps change and need to
know the last know position.
2009-09-09 18:26:03 +02:00
Wim Taymans
451789735c
audioclock: add some more debug
2009-09-09 18:26:03 +02:00
Wim Taymans
fe47c6c4d5
baseaudiosink: correct for clock reset
...
When going to NULL, we reset the ringbuffer so that it starts beck from 0. We
also make sure that the clock is updated with the elapsed time so that it
alsways increments even when the ringbuffer goes back to 0. When this happened
we need to adjust the sample position for the reset ringbuffer.
Fixes #594136
2009-09-09 16:19:32 +02:00
Wim Taymans
47550f6984
baseaudiosink: whitespace fixes
2009-09-09 16:17:02 +02:00
Wim Taymans
70f01fd797
ringbuffer: add more debug
2009-09-09 16:16:40 +02:00
Håvard Graff
058776bcf1
baseaudiosrc: improve slave skew resync
...
The old one did the mistake of not actually advancing the ringbuffer, it just
adjusted the segbase, introducing the whole lenght of the ringbuffer as an
extra delay in the pipeline.
Also make sure that the resync can never go back in time, producing the same
timestamps that has already been produced, as this can cause severe problems
for sinks and other synching mechanisms.
Fixes #594256
2009-09-08 12:59:20 +02:00
Sebastian Dröge
40aba9e0dc
introduction: Fix out-of-tree build
2009-09-05 13:46:58 +02:00
Sebastian Dröge
c53499c62b
audio: Remove debug echo
2009-09-05 13:09:17 +02:00
Sebastian Dröge
93e19acfec
audio: Fix build of introspection data by using dependency order for the headers/sources
2009-09-05 13:08:19 +02:00
Sebastian Dröge
7e90e0846c
introspection: Strip Gst prefix from all types/functions
2009-09-05 12:31:47 +02:00
Sebastian Dröge
7794caf9f8
introspection: Fix build if gir-repository is not installed
2009-09-05 11:49:41 +02:00
Sebastian Dröge
d91f5000e1
libs: Add nodist headers and sources to the introspection files
2009-09-05 11:31:48 +02:00
Sebastian Dröge
403f353bba
audio: Add gobject-introspection support
2009-09-05 11:09:33 +02:00
Eero Nurkkala
8ad8591e41
ringbuffer: Improve audiosink startup performance
...
When we start the ringbuffer, immediatly continue processing samples if the
writer prepared some for us.
Fixes #545807
2009-08-24 13:30:11 +02:00
Tim-Philipp Müller
0021e6b765
Revert inlines that cause compiler warnings and are not needed anyway
2009-08-08 17:51:10 +01:00
Edward Hervey
9329b8be72
gst-libs: Remove dead assignments and resulting unused variables.
2009-08-08 15:54:57 +02:00
Wim Taymans
090808a295
baseaudiosrc: change default slave method
...
Set the default slave method to the much better skew slaving algortihm.
2009-08-06 12:58:58 +02:00
Olivier Crête
429d3555a2
audiofilter: Don't assert on slightly different caps
...
Plugins should not assert on incompatible caps, caps negotiation will
fail anyway.
2009-07-30 14:34:05 +01:00
Olivier Crête
4e88633de4
audiosink: Add stream-status messages
...
Fixes #587695
2009-07-20 12:54:37 +02:00
Olivier Crête
cc0da016f8
audiosrc: Add stream-status messages
...
See #587695
2009-07-20 12:54:37 +02:00
Stefan Kost
0e967f1b14
multichannel: rewrite the new doc comment a bit
...
Its part of the audio lib.
2009-06-29 17:49:58 +03:00
Wim Taymans
8601862e27
ringbuffer: add vmethod to clear the ringbuffer
...
Add a vmethod so that subclasses can be notified when they should clear the data
in the ringbuffer.
2009-06-29 15:17:25 +02:00
Stefan Kost
57a7d6f699
docs: add basic section docs for multichannel and relocate the ones for audio
...
Add section docs for multichannel, so that it has a short desc in the toc too.
Move the section docs in adio up, so that the follow the copyright like
elsewhere.
2009-06-27 23:25:09 +03:00
Wim Taymans
ffd90dda89
audiosrc: fix get_offset
...
When we need to jump to the most recently captured sample, jump to where the
next sample will be written instead of to some old data.
Fixes #581460
2009-06-17 14:00:23 +02:00
Wim Taymans
57a13f28de
audiosink: free the ringbuffer when going to NULL
...
Unparent and free the ringbuffer when going to NULL, like we do with the
audiosrc element. We can do this now because we correctly manage the time
jumping back to 0.
2009-06-17 13:18:18 +02:00
Wim Taymans
e4492c24ea
audio: correctly handle short read/writes
2009-06-17 13:17:30 +02:00
René Stadler
2c5f455423
baseaudiosrc: add some extra logging for buffer timestamps
2009-06-17 12:36:50 +02:00
Tim-Philipp Müller
70089160f8
audiosink, audiosrc: do the class_ref()s in the right class_init functions
...
Spotted by Philip Jägenstedt. Hopefully fixes #585970 for real.
2009-06-16 14:14:26 +01:00
Tim-Philipp Müller
3767cb6005
audiosink,audiosrc: ref the audio ring buffer class and type in class_init
...
Hack around thread-safety issues in GObject and our racy _get_type()
functions (we could easily fix the _get_type() functions, but we still
need to hack around the GObject class races until we require a newer
GLib version, I think).
2009-06-15 15:39:09 +01:00
Wim Taymans
a5491ba218
audiosrc: return FALSE when receiving a SEEK event
...
When receiving a seek event, return FALSE as we don't implement seeking.
2009-06-15 12:57:39 +02:00
Wim Taymans
a9c82f9472
ringbuffer: handle border cases in resampler
2009-06-11 19:13:28 +02:00
Wim Taymans
69b7fb3845
baseaudiosink: reset accum when dropping samples
...
When we are resampling and we drop samples because we paused, reset the accum
counter because it's now invalid.
2009-06-11 12:38:35 +02:00
Tim-Philipp Müller
249d9b4aa1
Don't include config.h multiple times when build audio testchannel app.
...
Fixes build problem on win32 (#585075 ).
2009-06-10 21:37:29 +01:00
Wim Taymans
38e59ec75d
baseaudiosink: no need to cause discont when clipping
...
Remove the discont-when-clipping hack now that basesink provides us with
correctly clipped samples when stepping.
2009-06-09 12:09:15 +02:00
Wim Taymans
cb4952fc2e
audiosink: don't align when we clip
...
Don't align samples when they were clipped. Not entirely correct but better than
nothing for now.
2009-06-08 17:26:59 +02:00
Andy Wingo
c7ca6abe53
add can-activate-pull property to baseaudiosink
...
* gst-libs/gst/audio/gstbaseaudiosink.c: Add can-activate-pull property
to baseaudiosink.
2009-05-26 13:17:44 +02:00
Wim Taymans
81170c4989
audiosink: improve debug message
2009-05-21 10:48:49 +02:00
Wim Taymans
c68a361e31
audiosink: return the return value of wait_preroll
...
Return the value that _wait_preroll() returned instead of always WRONG_STATE.
2009-05-19 17:17:37 +02:00
Wim Taymans
b9723f6e1c
audioclock: make our internal time monotonic
...
Make the internal time increase monotonically.
2009-05-13 21:38:56 +02:00
Wim Taymans
d655120ee6
audioclock: make sure values are ever increasing
2009-05-12 10:39:41 +02:00
Andy Wingo
9f74ce745f
Revert "add can-activate-pull property to baseaudiosink"
...
This reverts commit c4074a2ee4
.
2009-04-29 11:18:42 +02:00
Andy Wingo
219a31fa3c
Revert "[baseaudiosink] add docs for can-activate-pull"
...
This reverts commit 416ce16f26
.
2009-04-29 11:18:33 +02:00
Andy Wingo
416ce16f26
[baseaudiosink] add docs for can-activate-pull
...
* gst-libs/gst/audio/gstbaseaudiosink.c: Add documentation for
can-activate-pull.
2009-04-28 18:48:33 +02:00
Andy Wingo
c4074a2ee4
add can-activate-pull property to baseaudiosink
...
* gst-libs/gst/audio/gstbaseaudiosink.c: Add can-activate-pull property
to baseaudiosink.
2009-04-28 18:28:50 +02:00
Wim Taymans
32904de58f
baseaudiosink: don't unparent the ringbuffer
...
when going to NULL, don't unparent the ringbuffer because we don't support going
back to 0 very well yet.
Fixes #579203
2009-04-17 11:03:32 +02:00
Stefan Kost
ab24d9d65c
log: use G_GUINT64_FORMAT instead of llu
2009-04-15 00:02:39 +03:00
Wim Taymans
dffd1bcc97
baseaudiosrc: adjust the internal timestamp
...
Adjust the internal timestamp before comparing it against the adjusted clock
time.
Fixes #578506
2009-04-14 13:16:14 +02:00
Wim Taymans
0c4c1410f9
baseaudiosink: use new clock time methods
...
Use the unadjusted internal clock times to calculate the internal/external
offset when calibrating the clock.
When going to NULL, unparent and free the ringbuffer, like we do in the source
element.
See #578506
2009-04-14 13:12:59 +02:00
Wim Taymans
4231d54823
audioclock: add methods for the internal offset
...
Add two methods for getting the unadjusted time of the clock and one for
adjusting an internal time. We will need these methods for correctly handling
the time after a gst_audio_clock_reset().
Add a debug category and some debug lines to the audio clock.
API: gst_audio_clock_get_time()
API: gst_audio_clock_adjust()
API: GST_AUDIO_CLOCK_CAST()
2009-04-14 13:08:52 +02:00
Wim Taymans
251f152c20
baseaudiosink: use the internal clock time
...
We can't assume that the internal clock time is the same as the function we
installed on our provided clock because somebody might have changed it.
2009-04-10 21:50:55 +02:00