aboutsummaryrefslogtreecommitdiffstats
path: root/src/pq_codec.c
AgeCommit message (Collapse)AuthorFilesLines
2017-12-31procqueue: use queue / item names in loggingVadim Yanitskiy1-2/+3
2017-12-31procqueue: add item catedory and sub-category fieldsVadim Yanitskiy1-0/+4
This change adds two meta-information fields to the processing queue item structure. Both of them will be used for more detailed logging and for the human-readable processing queue description.
2017-12-31procqueue: add item type enum (source, sink, proc)Vadim Yanitskiy1-0/+1
There are currently three types of prcessing queue items: - source (file, alsa, rtp) - proc (format, codec) - sink (file, alsa, rtp) Let's assign corresponding type for each item. This would facilitate logging and the queue checking.
2017-12-31procqueue: add processing state callbackVadim Yanitskiy1-0/+1
In some cases it's required to wait for some queue items to finish processing. For example, the ALSA sink writes the audio samples to the buffer in non-blocking mode, so as soon as all of them will be written, a program may finish execution, causing the playback abort. To prevent that, this change extends the library's API, allowing each queue item to have a processing state callback that returns a positive integer if processing is not finished yet, and 0 otherwise.
2017-12-31libosmogapk: use Osmocom logging frameworkVadim Yanitskiy1-1/+2
Since this change, the libosmogapk uses the Osmocom logging framework. By default, logging is disabled and could be enabled by the external applications calling the osmo_gapk_log_init() with a desired log target as an argument.
2017-12-31Add an 'osmo_gapk' prefix to the exposed symbolsVadim Yanitskiy1-7/+9
To avoid a naming conflict between libosmogapk and other projects during linkage, all the exposed symbols should have an unique prefix. Let's use 'osmo_gapk' for that.
2017-12-31Install GAPK headers to '${includedir}/osmocom/gapk/'Vadim Yanitskiy1-3/+3
To be able to use the library, external applications need to know, which symbols are exposed. This information is provided by header files, which are being installed to a system's ${includedir} since this change.
2017-05-28direct all log statements to stderr to avoid breaking stdout data outHarald Welte1-1/+1
The tool has the capability to be used in a pipe, so stdout should recevie nothing else but actual codec/pcm data.
2017-05-28Print some useful information while putting together the procqueueHarald Welte1-0/+3
2017-05-27add some more comments throughout the codeHarald Welte1-0/+7
2010-11-11procqueue: Add Codec tasksSylvain Munaut1-0/+69
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>