OpenBSD CVS

CVS log for src/usr.bin/aucat/dsp.h


[BACK] Up to [local] / src / usr.bin / aucat

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.12 / (download) - annotate - [select for diffs], Mon Apr 22 12:32:51 2024 UTC (3 weeks, 6 days ago) by ratchov
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

aucat: Use a 24-bit table for index to volume conversion

Revision 1.11 / (download) - annotate - [select for diffs], Mon Apr 22 12:21:49 2024 UTC (3 weeks, 6 days ago) by ratchov
Branch: MAIN
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

aucat: Fix comments, from similar comments fixes in sndiod

Revision 1.10 / (download) - annotate - [select for diffs], Mon Dec 26 19:16:00 2022 UTC (16 months, 3 weeks ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

spelling fixes; from paul tagliamonte
amendments to his diff are noted on tech

Revision 1.9 / (download) - annotate - [select for diffs], Mon Mar 7 09:04:45 2022 UTC (2 years, 2 months ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.8: +2 -16 lines
Diff to previous 1.8 (colored)

Switch internal sample representation to 24-bit fixed-point

Note that this also changes the default file encoding to 24-bit.

Revision 1.8 / (download) - annotate - [select for diffs], Tue May 25 08:06:12 2021 UTC (2 years, 11 months ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.7: +1 -44 lines
Diff to previous 1.7 (colored)

Drop assembly for 24-bit fixed-point operations

Now i386 compiler is smart enough to generate a single imul
instruction per fixed-point multiplication. This change also allows
24-bit precision to be used on all archs (if -DADATA_BITS=24 is used).

Tested on arm64 by Doug Moss <dougmoss710 at yahoo.com>, thanks

Suggested and ok naddy@

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jan 12 15:46:53 2021 UTC (3 years, 4 months ago) by naddy
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

const-ify lookup tables; ok ratchov@

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jan 11 14:45:51 2021 UTC (3 years, 4 months ago) by ratchov
Branch: MAIN
Changes since 1.5: +29 -2 lines
Diff to previous 1.5 (colored)

Use sndiod's 8-th order FIR low-pass filter for resampling

Removes most of the aliasing noise during resampling

Revision 1.5 / (download) - annotate - [select for diffs], Wed Jun 8 04:36:48 2016 UTC (7 years, 11 months ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.4: +0 -1 lines
Diff to previous 1.4 (colored)

removed unused fields of resamp structure

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jun 7 06:11:32 2016 UTC (7 years, 11 months ago) by ratchov
Branch: MAIN
Changes since 1.3: +1 -2 lines
Diff to previous 1.3 (colored)

Add resamp_getcnt() routine to calculate the exact number of samples
that would be consumed and produced by the sampler rate converter. Use
it to avoid partial samples that are not properly handled. Fixes
last samples of certain files causing aucat to abort.

Revision 1.3 / (download) - annotate - [select for diffs], Fri May 27 15:38:27 2016 UTC (7 years, 11 months ago) by ratchov
Branch: MAIN
Changes since 1.2: +3 -1 lines
Diff to previous 1.2 (colored)

Make resamp_do() get the exact number input and output samples and
provide routines to calculate them. This way we don't rely on it
to calculate the bytes procuded/consumed anymore. No behaviour change.

Revision 1.2 / (download) - annotate - [select for diffs], Thu May 26 06:17:31 2016 UTC (7 years, 11 months ago) by ratchov
Branch: MAIN
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

Make format conversion routines return the number of frames
consumed from both input and output buffers. No behaviour change.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jan 21 08:43:55 2015 UTC (9 years, 3 months ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7

Simplify internals and rewrite file header parsing code:
- remove -M, -t, -w, -C, -x flags that don't make sense anymore
- make "-j off" the default (sndiod already does the job)
- don't limit the number of played/recorded files.
- add support for floating-point encoded files.
- add support for apple .aiff and sun/next .au files

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.