Commit Graph

16 Commits

Author SHA1 Message Date
Alexandre Ratchov 6c1c0d3ff6 Remove unnecessary includes. From Michael W. Bombardieri <mb at ii.net>. 2017-01-03 08:05:41 +01:00
Alexandre Ratchov 2a451f9623 Fix many typos, from Michael W. Bombardieri <mb at ii.net>, thanks 2016-09-27 14:18:43 +02:00
Alexandre Ratchov 61005799d9 simpler resampler 2016-06-09 16:50:56 +02:00
Alexandre Ratchov 10f6027f0f remove unused fields of resamp structure 2016-06-09 16:43:47 +02:00
Alexandre Ratchov 00ffc8f5ab 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.
2016-06-07 08:11:46 +02:00
Alexandre Ratchov 028bb6e60d When resampling, use the exact resampling factor instead of the ration
between input and output block sizes.  This was inherited from sndion,
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.
2016-05-27 18:17:05 +02:00
Alexandre Ratchov 4772005ac1 Give the resamp_do() the exact number input and output samples and
provide routines to calculate them. This way we don't rely on it
anymore to calculate the bytes procuded/consumed. No behaviour change.
2016-05-27 17:36:53 +02:00
Alexandre Ratchov a6ea35ebb3 Make format conversion routines return the number of frames
consumed on both input and output. No behaviour change.
2016-05-26 08:16:17 +02:00
Alexandre Ratchov 6436780b57 fit in 80 columns, trailing spaces, tabs 2016-01-09 09:49:55 +01:00
Alexandre Ratchov 97bf660690 fit in 80 columns, trailing spaces, tabs 2016-01-09 09:35:54 +01:00
Alexandre Ratchov 04d8fe25dd Fix clipping bug in float to fixed point conversion, causing
audible glitches when samples smaller than the quantification
step are converted.
2015-05-04 14:53:28 +02:00
Alexandre Ratchov 2e1306cbeb s/afile_xxxmap/dec_xxxmap 2015-01-05 18:02:41 +01:00
Alexandre Ratchov 1341ff77a4 s/wav/afile/ 2015-01-05 18:01:29 +01:00
Alexandre Ratchov 7e4b5c54d9 merge alaw and mulaw code 2014-12-30 19:36:15 +01:00
Alexandre Ratchov 1602b19c78 move conversion code dsp.c 2014-12-30 19:17:32 +01:00
Alexandre Ratchov 7cbcc30319 - release constraints used to be required in server mode
- hardcode the processing chain (it used to be setup dynamically)
- merge simpler processing code from sndiod
- remove -M option, aucat is not a midi tool, sorry.
- remove -t flag (redundant with -q flag)
- remove -w flag (makes sense for server mode only)
- remove -C flag (necessary for full-duplex streams only)
- remove -x flag (xruns already handled by sndiod)
- make "-j off" the default (sndiod already does the job)
- don't limit the number of played/recorded files.
2014-11-15 13:51:02 +01:00