annotate src/portaudio_20140130/qa/loopback/README.txt @ 39:7ddb4fc30dac

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