annotate src/portaudio_20161030/qa/loopback/README.txt @ 169:223a55898ab9 tip default

Add null config files
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 02 Mar 2020 14:03:47 +0000
parents 59a8758c56b1
children
rev   line source
cannam@140 1 README for PortAudio Loopback Test
cannam@140 2
cannam@140 3 Copyright (c) 1999-2010 Phil Burk and Ross Bencina
cannam@140 4 See complete license at end of file.
cannam@140 5
cannam@140 6 This folder contains code for a single executable that does a standalone test of PortAudio.
cannam@140 7 It does not require a human to listen to the result. Instead it listens to itself using
cannam@140 8 a loopback cable connected between the audio output and the audio input. Special pop detectors
cannam@140 9 and phase analysers can detect errors in the audio stream.
cannam@140 10
cannam@140 11 This test can be run from a script as part of a nightly build and test.
cannam@140 12
cannam@140 13 --- How to Build the Loopback Test ---
cannam@140 14
cannam@140 15 The loopback test is not normally built by the makefile.
cannam@140 16 To build the loopback test, enter:
cannam@140 17
cannam@140 18 ./configure && make loopback
cannam@140 19
cannam@140 20 This will build the "bin/paloopback" executable.
cannam@140 21
cannam@140 22 --- How To Run Test ---
cannam@140 23
cannam@140 24 Connect stereo cables from one or more output audio devices to audio input devices.
cannam@140 25 The test will scan all the ports and find the cables.
cannam@140 26
cannam@140 27 Adjust the volume levels of the hardware so you get a decent signal that will not clip.
cannam@140 28
cannam@140 29 Run the test from the command line with the following options:
cannam@140 30
cannam@140 31 -i# Input device ID. Will scan for loopback if not specified.
cannam@140 32 -o# Output device ID. Will scan for loopback if not specified.
cannam@140 33 -r# Sample Rate in Hz. Will use multiple common rates if not specified.
cannam@140 34 -s# Size of callback buffer in frames, framesPerBuffer.
cannam@140 35 -w Save bad recordings in a WAV file.
cannam@140 36 -dDir Path for Directory for WAV files. Default is current directory.
cannam@140 37 -m Just test the DSP Math code and not the audio devices.
cannam@140 38
cannam@140 39 If the -w option is set then any tests that fail will save the recording of the broken
cannam@140 40 channel in a WAV file. The files will be numbered and shown in the report.
cannam@140 41
cannam@140 42 --- ToDo ---
cannam@140 43
cannam@140 44 * Add check for harmonic and enharmonic distortion.
cannam@140 45 * Measure min/max peak values.
cannam@140 46 * Detect DC bias.
cannam@140 47 * Test against matrix of devices/APIs and settings.
cannam@140 48 * Detect mono vs stereo loopback.
cannam@140 49 * More command line options
cannam@140 50 --quick
cannam@140 51 --latency
cannam@140 52 --duration
cannam@140 53 * Automated build and test script with cron job.
cannam@140 54 * Test on Windows.
cannam@140 55
cannam@140 56
cannam@140 57 /*
cannam@140 58 * PortAudio Portable Real-Time Audio Library
cannam@140 59 * Latest Version at: http://www.portaudio.com
cannam@140 60 *
cannam@140 61 * Copyright (c) 1999-2008 Phil Burk and Ross Bencina
cannam@140 62 *
cannam@140 63 * Permission is hereby granted, free of charge, to any person obtaining
cannam@140 64 * a copy of this software and associated documentation files
cannam@140 65 * (the "Software"), to deal in the Software without restriction,
cannam@140 66 * including without limitation the rights to use, copy, modify, merge,
cannam@140 67 * publish, distribute, sublicense, and/or sell copies of the Software,
cannam@140 68 * and to permit persons to whom the Software is furnished to do so,
cannam@140 69 * subject to the following conditions:
cannam@140 70 *
cannam@140 71 * The above copyright notice and this permission notice shall be
cannam@140 72 * included in all copies or substantial portions of the Software.
cannam@140 73 *
cannam@140 74 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
cannam@140 75 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
cannam@140 76 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
cannam@140 77 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
cannam@140 78 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
cannam@140 79 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
cannam@140 80 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
cannam@140 81 */
cannam@140 82
cannam@140 83 /*
cannam@140 84 * The text above constitutes the entire PortAudio license; however,
cannam@140 85 * the PortAudio community also makes the following non-binding requests:
cannam@140 86 *
cannam@140 87 * Any person wishing to distribute modifications to the Software is
cannam@140 88 * requested to send the modifications to the original developer so that
cannam@140 89 * they can be incorporated into the canonical version. It is also
cannam@140 90 * requested that these non-binding requests be included along with the
cannam@140 91 * license above.
cannam@140 92 */