summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/sample-util.c
Commit message (Collapse)AuthorAgeFilesLines
* sample: fix build on BE archsLennart Poettering2009-06-081-1/+1
|
* sample-util: fix iteration loop when adjusting volume of s24 samplesLennart Poettering2009-05-011-4/+4
|
* sample-util: properly allocate silence block for s24-32 formatsLennart Poettering2009-05-011-0/+4
|
* Use LGPL 2.1 on all files previously using LGPL 2Colin Guthrie2009-03-031-1/+1
|
* don't overflow when we do digital amplification of 16 bit samplesLennart Poettering2009-01-231-31/+71
|
* Add support for 24bit samples encoded in the LSB of 32 bit wordsLennart Poettering2009-01-161-0/+120
|
* add support for 24bit packed samplesLennart Poettering2009-01-161-0/+123
|
* add new API function pa_memchunk_sine()Lennart Poettering2009-01-121-0/+34
| | | | | Ease generation of sine signals. Try to make the repeatable sine memblock fit into a single mempool slot.
* make things compile againLennart Poettering2009-01-081-1/+2
|
* Add new debuuging API pa_memchunk_dump_to_file()Lennart Poettering2009-01-081-0/+27
|
* fix return value of pa_frame_aligned()Lennart Poettering2008-10-211-1/+1
|
* make a few casts explicit to remove compiler warningsLennart Poettering2008-10-031-2/+2
|
* user lrint() and friends in inner loops instead of normal C casts to speed ↵Lennart Poettering2008-10-031-2/+2
| | | | up a few things
* optimize mixing routines a bit by pulling the multiplication with the global ↵Lennart Poettering2008-10-031-112/+85
| | | | volume out of the inner loop by applying it first to the per-stream volumes
* when we mix into a 16bit accumulator make sure we clamp before we scale with ↵Lennart Poettering2008-10-021-4/+4
| | | | a volume to avoid range faults when multiplying
* add byte-to-usec and usec-to-byte converters that round up, not downLennart Poettering2008-08-281-0/+33
|
* add a few more gcc warning flags and fix quite a few problems found by doing soLennart Poettering2008-08-191-14/+13
|
* otpimize mixing code a bit by moving a few checks out of the inner loopsLennart Poettering2008-08-111-83/+39
|
* optimize volume changing a bit by only using a single counter for the inner ↵Lennart Poettering2008-08-111-31/+36
| | | | loops instead of two
* adhere to struct gcc aliasing rulesLennart Poettering2008-08-111-7/+3
|
* get rid of svn $ keywordsLennart Poettering2008-06-181-2/+0
|
* merge glitch-free branch back into trunkLennart Poettering2008-05-151-42/+138
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2445 fefdeb5f-60dc-0310-8127-8f9354f1896f
* optimize mixing code a bit. Add mixers for S32LE, S32BE, ULAW, ALAW and ↵Lennart Poettering2007-11-091-110/+450
| | | | | | FLOAT32BE. Add volume adjusters for FLOAT32BE, ALAW, ULAW. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2041 fefdeb5f-60dc-0310-8127-8f9354f1896f
* replace a few CLAMPs by PA_CLAMP_UNLIKELYLennart Poettering2007-11-091-3/+3
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2040 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add support for 32bit integer samplesLennart Poettering2007-11-091-6/+55
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2037 fefdeb5f-60dc-0310-8127-8f9354f1896f
* merge 'lennart' branch back into trunk.Lennart Poettering2007-10-281-83/+205
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1971 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Kill spaces on EOLLennart Poettering2007-05-291-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1465 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Fix a DoS with allocating overly large silence buffers. (Identified by Luigi ↵Lennart Poettering2007-05-231-0/+12
| | | | | | Auriemma (re #67) git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1450 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Add copyright notices to all relevant files. (based on svn log)Pierre Ossman2007-02-131-0/+3
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1426 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Huge trailing whitespace cleanup. Let's keep the tree pure from here on,Pierre Ossman2007-01-041-69/+69
| | | | | | | mmmkay? git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1418 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Support reversed endian floats. (closes #28) (closes #35)Pierre Ossman2006-11-081-0/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1412 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Revert r1404 and keep it on a development branch until it is fully tested.Pierre Ossman2006-11-061-82/+34
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1409 fefdeb5f-60dc-0310-8127-8f9354f1896f
* rework memory block management to be thread-safe and mostly lock-free.Lennart Poettering2006-09-261-34/+82
| | | | | | | | | | | | | | | | | | | | | pa_memblock is now an opaque structure. Access to its fields is now done through various accessor functions in a thread-safe manner. pa_memblock_acquire() and pa_memblock_release() are now used to access the attached audio data. Why? To allow safe manipulation of the memory pointer maintained by the memory block. Internally _acquire() and _release() maintain a reference counter. Please do not confuse this reference counter whith the one maintained by pa_memblock_ref()/_unref()! As a side effect this patch removes all direct usages of AO_t and replaces it with pa_atomic_xxx based code. This stuff needs some serious testing love. Especially if threads are actively used. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1404 fefdeb5f-60dc-0310-8127-8f9354f1896f
* remove all occurences of Lennart Poettering2006-08-181-2/+2
| | | | | | | | | | | | pa_logXXX(__FILE__": and replace them by pa_logXXX(" git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1272 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Rework memory management to allow shared memory data transfer. The central ideaLennart Poettering2006-08-181-3/+4
| | | | | | | | | | | | | | | is to allocate all audio memory blocks from a per-process memory pool which is available as read-only SHM segment to other local processes. Then, instead of writing the actual audio data to the socket just write references to this shared memory pool. To work optimally all memory blocks should now be of type PA_MEMBLOCK_POOL or PA_MEMBLOCK_POOL_EXTERNAL. The function pa_memblock_new() now generates memory blocks of this type by default. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1266 fefdeb5f-60dc-0310-8127-8f9354f1896f
* big s/polyp/pulse/gLennart Poettering2006-06-191-0/+405
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1033 fefdeb5f-60dc-0310-8127-8f9354f1896f