OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.20 / (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.19: +33 -18 lines
Diff to previous 1.19 (colored)

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

Revision 1.19 / (download) - annotate - [select for diffs], Wed Mar 20 08:42:11 2024 UTC (8 weeks, 4 days ago) by ratchov
Branch: MAIN
Changes since 1.18: +29 -27 lines
Diff to previous 1.18 (colored)

aucat: Add generic channel mapping in place of -j and -c options.

The argument to the -m option specifies the source and destination
channel ranges to be mapped. Compatibility is maintained: if -m
is not used, the -c and -j options still work.

Help and suggestions from Jan Stary <hans@stare.cz>, thanks.

Revision 1.18 / (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.17: +2 -2 lines
Diff to previous 1.17 (colored)

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

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jul 5 08:29:59 2021 UTC (2 years, 10 months ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.16: +4 -4 lines
Diff to previous 1.16 (colored)

Fix off-by-one array access when 64 channel stream is resampled

Revision 1.16 / (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.15: +6 -6 lines
Diff to previous 1.15 (colored)

const-ify lookup tables; ok ratchov@

Revision 1.15 / (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.14: +120 -7 lines
Diff to previous 1.14 (colored)

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

Removes most of the aliasing noise during resampling

Revision 1.14 / (download) - annotate - [select for diffs], Thu Dec 10 17:20:39 2020 UTC (3 years, 5 months ago) by ratchov
Branch: MAIN
Changes since 1.13: +4 -2 lines
Diff to previous 1.13 (colored)

Check sample signedness when setting up format conversions.

Fixes confusion between s16 and u16 found and analysed by
James Cook <falsifian at falsifian.org>. Thanks.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Nov 7 21:22:34 2018 UTC (5 years, 6 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
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

Fix clipping during float to integer conversions.

From Jari Vetoniemi <mailroxas at gmail.com>. Thanks!

Revision 1.12 / (download) - annotate - [select for diffs], Tue Sep 18 04:29:58 2018 UTC (5 years, 8 months ago) by miko
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)

clear p->ctx array with memset(); ok ratchov@

Revision 1.11 / (download) - annotate - [select for diffs], Fri Sep 30 08:43:23 2016 UTC (7 years, 7 months ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.10: +1 -2 lines
Diff to previous 1.10 (colored)

Remove unnecessary includes. From Michael W. Bombardieri <mb at ii.net>.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Sep 23 07:29:24 2016 UTC (7 years, 7 months ago) by ratchov
Branch: MAIN
Changes since 1.9: +5 -5 lines
Diff to previous 1.9 (colored)

Fix many typos, from Michael W. Bombardieri <mb at ii.net>, thanks

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jun 10 06:42:22 2016 UTC (7 years, 11 months ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.8: +17 -53 lines
Diff to previous 1.8 (colored)

Simplify the sample rate converter, no behaviour change.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jun 8 04:36:48 2016 UTC (7 years, 11 months ago) by ratchov
Branch: MAIN
Changes since 1.7: +0 -2 lines
Diff to previous 1.7 (colored)

removed unused fields of resamp structure

Revision 1.7 / (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.6: +35 -20 lines
Diff to previous 1.6 (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.6 / (download) - annotate - [select for diffs], Fri May 27 16:18:59 2016 UTC (7 years, 11 months ago) by ratchov
Branch: MAIN
Changes since 1.5: +29 -1 lines
Diff to previous 1.5 (colored)

When resampling, use the exact resampling factor instead of the ratio
between input and output block sizes.  This was inherited from sndiod,
but is not required for files because they are continuous streams of
samples and do not need to be split in blocks of equal duration.

This change makes playback/recording rate match exactly the requested
sample rate.

Revision 1.5 / (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.4: +49 -9 lines
Diff to previous 1.4 (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.4 / (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.3: +9 -6 lines
Diff to previous 1.3 (colored)

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

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jan 10 11:06:44 2016 UTC (8 years, 4 months ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.2: +7 -5 lines
Diff to previous 1.2 (colored)

trailing spaces, fit in 80 columns

Revision 1.2 / (download) - annotate - [select for diffs], Mon May 4 12:51:13 2015 UTC (9 years ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.1: +13 -3 lines
Diff to previous 1.1 (colored)

Fix clipping bug in float to fixed point conversion, causing
audible glitches when samples smaller than the quantification
step are converted.

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_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.