To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

The primary repository for this project is hosted at https://github.com/sonic-visualiser/sv-dependency-builds .
This repository is a read-only copy which is updated automatically every hour.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / src / portaudio_20161030_catalina_patch / qa / loopback / README.txt @ 162:d43aab368df9

History | View | Annotate | Download (3.61 KB)

1
README for PortAudio Loopback Test
2

    
3
Copyright (c) 1999-2010 Phil Burk and Ross Bencina
4
See complete license at end of file.
5

    
6
This folder contains code for a single executable that does a standalone test of PortAudio.
7
It does not require a human to listen to the result. Instead it listens to itself using
8
a loopback cable connected between the audio output and the audio input. Special pop detectors
9
and phase analysers can detect errors in the audio stream.
10

    
11
This test can be run from a script as part of a nightly build and test.
12

    
13
--- How to Build the Loopback Test ---
14

    
15
The loopback test is not normally built by the makefile.
16
To build the loopback test, enter:
17

    
18
  ./configure && make loopback
19
  
20
This will build the "bin/paloopback" executable.
21
  
22
--- How To Run Test ---
23

    
24
Connect stereo cables from one or more output audio devices to audio input devices. 
25
The test will scan all the ports and find the cables.
26

    
27
Adjust the volume levels of the hardware so you get a decent signal that will not clip.
28

    
29
Run the test from the command line with the following options:
30

    
31
  -i# Input device ID. Will scan for loopback if not specified.
32
  -o# Output device ID. Will scan for loopback if not specified.
33
  -r# Sample Rate in Hz. Will use multiple common rates if not specified.
34
  -s# Size of callback buffer in frames, framesPerBuffer.
35
  -w  Save bad recordings in a WAV file.
36
  -dDir  Path for Directory for WAV files. Default is current directory.
37
  -m  Just test the DSP Math code and not the audio devices.
38

    
39
If the -w option is set then any tests that fail will save the recording of the broken
40
channel in a WAV file. The files will be numbered and shown in the report.
41

    
42
--- ToDo ---
43

    
44
* Add check for harmonic and enharmonic distortion.
45
* Measure min/max peak values.
46
* Detect DC bias.
47
* Test against matrix of devices/APIs and settings.
48
* Detect mono vs stereo loopback.
49
* More command line options
50
   --quick
51
   --latency
52
   --duration
53
* Automated build and test script with cron job.
54
* Test on Windows.
55

    
56

    
57
/*
58
 * PortAudio Portable Real-Time Audio Library
59
 * Latest Version at: http://www.portaudio.com
60
 *
61
 * Copyright (c) 1999-2008 Phil Burk and Ross Bencina
62
 *
63
 * Permission is hereby granted, free of charge, to any person obtaining
64
 * a copy of this software and associated documentation files
65
 * (the "Software"), to deal in the Software without restriction,
66
 * including without limitation the rights to use, copy, modify, merge,
67
 * publish, distribute, sublicense, and/or sell copies of the Software,
68
 * and to permit persons to whom the Software is furnished to do so,
69
 * subject to the following conditions:
70
 *
71
 * The above copyright notice and this permission notice shall be
72
 * included in all copies or substantial portions of the Software.
73
 *
74
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
75
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
76
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
77
 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
78
 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
79
 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
80
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
81
 */
82

    
83
/*
84
 * The text above constitutes the entire PortAudio license; however, 
85
 * the PortAudio community also makes the following non-binding requests:
86
 *
87
 * Any person wishing to distribute modifications to the Software is
88
 * requested to send the modifications to the original developer so that
89
 * they can be incorporated into the canonical version. It is also 
90
 * requested that these non-binding requests be included along with the 
91
 * license above.
92
 */