This Chapter describes how to use the audio capabilities of the Audio/Serial Option.
There are a variety of utilities supplied by Silicon Graphics that let you manipulate the audio ports, work with audio files, bring audio signals into the system, and send audio signals out of the system. These include:
| apanel | A graphical control panel that manipulates the input signal levels and headphone output level, and switches between two-channel and four-channel audio modes. | |
| soundplayer | A graphical tool for playing audio files. | |
| soundeditor | A graphical tool for editing mono and stereo audio files. | |
| sfinfo | A command-line tool that describes the format of an audio file. | |
| sfplay | A command-line tool for playing audio files. |
These and other audio tools are found in the various dmedia_eoe and dmedia_tools subsystems. For an overview of the various audio tools and the audio hardware, see the audio(1) reference page, the Media Tools User's Guide, and the Media Control Panels User's Guide.
The Audio Library (AL) programming interface provides an application programming interface for developing audio applications. The Audio Library is provided in the IRIS Development System option. The Audio Library is documented in the IRIS Digital Media Programming Guide. This guide, as well as the Apple® Audio Interchange File Format – AIFF-C Specification, are available from Silicon Graphics in the IRIS Digital Media documentation kit. Also, the various audio library calls, for example AFclosefile(3dm), are documented in the digital media reference pages (section 3dm).
The graphical utility that controls audio on a Silicon Graphics workstation is the audio control panel, or apanel. You can start apanel from the Toolchest, by opening the apanel desktop icon, or by typing apanel at a shell prompt. Many utilities, such as capture and soundeditor, also provide the ability to start apanel. When you start apanel from the command line, a variety of options are available. See apanel(1).
Figure 3-1 shows apanel in the default, two-channel mode.
The audio control panel shows you the state of the audio hardware and allows you to control input levels, input and output sampling rates, and headphone output. You can also monitor both the signal and signal levels of a given input.
Although the output sliders are labeled “Speaker,” there is no external speaker provided with the Audio/Serial Option. The output sliders control the headphone volume.
![]() | Note: The input meters consume some CPU bandwidth and use one of the internal audio ports. |
To select the input or output sampling rates, pull down the Rate menu and select either Input or Output, then choose the appropriate rate. Figure 3-2 shows the Input sampling rate menu.
The Output rate sampling menu has the additional option of matching the Input sampling rate regardless of what the Input sampling setting. This is useful because apanel is not a sampling rate conversion tool. If the input and output rates do not match, the resulting audio signal is pitch-shifted and distorted.
Sampling-rate conversion is performed by the graphical tool soundfiler and by the command-line tool sfconvert. See audio(1) for an overview of the various tools.
Be aware that audio applications will change the sampling rates as needed and there is no way to “lock” the sampling rate so that this does not happen. Many applications return the sampling rate to the previous setting, but some applications do not.
By default, the left and right sliders of both the input and output controls are ganged together. If you want independent control over the sliders, select the Options menu and click on the check box that corresponds to the sliders you want to control. Figure 3-3 shows the Options menu.
In two-channel mode, you can select from one of the three input channels using the Input pulldown menu. Available input channels are digital I/O, line-level input, and microphone input.
You can switch the microphone input between mono and stereo modes using the Options menu.
To adjust the headphone volume, use the output sliders.
The line-level output, and digital I/O signal levels are not adjustable.
If you want to see the signal level of a sound file that you are playing (for example, using playaifc or soundeditor), switch the input mode to Digital. This causes the meters to display the signal level of the sound file as it plays, provided:
the output sampling rate is not set to “input rate,”
the sampling rate of the audio file you are playing is 30 kHz or greater, and
there is no plug installed in the serial digital audio jack.
Do not turn on monitoring (by checking the Monitor box) while listening to a sound file, as this will cause feedback.
In four-channel mode, the microphone and headphone jacks have different functions than in normal, stereo mode in order to provide four-channel, line-level input and output. Table 3-1 shows the function of each connector in four-channel mode.
Table 3-1. Input and Output Assignments in Four-Channel Mode
Input Selection | Connector | Function |
|---|---|---|
Microphone | Digital | N/A |
Line | Digital | N/A |
Digital | Digital | Digital In/Out (L1) |
You can switch the input scale between simple 1 to 10 gradations and decibel calibrations by running apanel with either the -decadescale or -dbscale options. See apanel(1) for more information.
You can save and load audio panel configurations through the File menu. Select the Save option to save the current apanel configuration in the default filename (apanel.parameters) in your home directory. The Save As option prompts for an alternate file name.
To load a configuration, select Open from the File menu.
Audio panel configurations are not automatically loaded when apanel starts. You have to specifically open a file that contains audio panel configuration settings.
All of the audio connectors accept 3.5-mm stereo phone plugs. The following connectors use stereo (L, R, and ground) connectors:
Line in
Line out
Serial digital audio
Headphone
The microphone connector accepts either mono or stereo plugs, depending upon the application and how the connector is configured (programmatically or through apanel).
For a complete description of the tip, ring, and sleeve connections for all of these jacks, see Appendix A, “Connector Pinouts.”
The audio connector bodies and strain-relief attachments cannot be longer than about 1.75 inches to 2 inches (4.4 cm to 5 cm). The exact length depends upon where the audio connector housing is installed, which jack you are using, and the flexibility of the audio cable you are attaching. Also, rackmount systems will typically provide greater clearance and deskside systems for connector housings. See Figure 3-4.
To avoid damaging the audio cables and connectors, use right-angle audio connectors whenever possible.
![]() | Warning: Do not operate a Challenge or Onyx system with the door open or removed. The door channels air for proper flow through the system and protects connectors and back-panel components from accidental damage. If an audio connector does not allow the door to close properly, you should obtain a right-angle connector or other adapter cable to allow you to close the system door. |
The following are some techniques that are useful for obtaining the best possible signals with the Audio/Serial Option.
Avoid using mono plugs in the stereo connectors, or cables that short some of the signals together. Avoid using cables with built-in attenuation.
The analog input circuitry for microphone and line-in recording has a software-controlled gain setting. The input circuitry accommodates signal levels of up to 8.4 Vpp (peak-to-peak) at the line-in connector. This is in excess of the levels produced at most modern consumer equipment line-out connectors.
To produce the best possible recordings, turn up the output control as far as possible without exceeding 8.4 Vpp (if the source machine has an output control). Start with the apanel input gain level setting at the “factory preset” level, which corresponds to “8” on the scale. Adjust the input gain level setting so that loudness peaks of the input material lights up almost the entire level meter. You can obtain the best results with a low input gain setting and a signal that registers nearly the entire span of the meter.
In order to minimize distortion and crosstalk effects between the headphone amplifiers and the more sensitive portions of the analog audio system, reduce the headphone volume level as much as possible during critical analog recording. Changing the headphone volume does not affect the line-out levels.
The analog audio instrumentation circuits in the Audio/Serial Option are very sensitive to the implementation of an analog ground voltage reference. You can achieve the best performance by letting the workstation be the only machine in your system of audio equipment that connects its system electrical ground to the safety grounding conductor.
If this is not possible, you may have to use signal isolation transformers. Note that the serial digital audio ports are already isolated by transformers within the machine, so that ground-reference problems do not typically apply to serial digital audio connections.
If your workstation is connected to a monitoring system such as a power amplifier driving speakers or headphones, turn the monitoring system volume down or off before you power the workstation on or off.
Do not wear headphones that are plugged into the workstation during power on or off cycles.
Do not record or monitor from an input connector that has nothing plugged into it.
Never connect a high-power output, such as the speaker output of a power amplifier, to any of the audio connectors on the Audio/Serial Option.
This section describes the electrical and performance specifications of the audio subsystem. Unless otherwise stated, all parameters given in the following sections are measured under the conditions shown in Table 3-2:
Table 3-2. Audio Subsystem Specifications Test Conditions
Specification | Test Condition |
|---|---|
Analog test signal levels Line-level input Microphone input | - 1 Vrms 0.1 Vrms |
Analog test signal output impedance | 600 Ω |
Test output destination impedances Line-level output Headphone output | - 5 kΩ 150 Ω |
Sampling rate | 48 kHz |
Measurement bandwidth | 17 Hz to 22 kHz, unweighted |
Digital test signal level | 100% of full scale |
The Stereo Serial Digital Audio interconnect is a coaxial digital interconnect that makes noiseless audio connections to DAT machines, professional audio equipment, CD players, other workstations, and so forth. It corresponds to the electrical characteristics of AES3-ID-DRAFT, for distribution of digital audio using 75-ohm video cable. The interconnect is transformer coupled to prevent ground loops and provide isolation.
It supports up to 24-bit, 50 kHz sampling. It is based on the following standards:
CP-340: EIAJ
AES3-1992: Audio Engineering Society
AES3-ID-DRAFT: Audio Engineering Society
IEC958: IEC
The sample rate is encoded in the incoming stream, and the input sample rate may serve as sample clock source for analog in, analog out, and digital out. The digital output is nominally set to consumer-level configuration.
Table 3-3 lists the specifications for the serial digital audio input and output:
Table 3-3. Serial Digital Specifications
Specification | Value |
|---|---|
Input impedance | 75 Ω, transformer coupled |
Input level | 0.5 Vpp nominal |
Input sample rates | 30 kHz to 50 kHz |
Output impedance | 75 Ω, transformer coupled |
Output level | 0.5 Vpp into 75 Ω load |
Output sampling rates | 32 kHz, 44.1 kHz, 48 kHz serial input sampling rate and divisors of those rates |
Resolution | Supports up to 24 bits per sample |
Table 3-4 lists the specifications for the line-level input.
Table 3-4. Line-Level Input Specifications
Specification | Value |
|---|---|
Impedance | 20 kΩ, nominal |
Frequency response | +/– 0.81 dB, 20 Hz to 20 kHz |
Total harmonic distortion + noise At 1 kHz Maximum | - < 0.006%, 20 Hz to 20 kHz < 0.007% |
Residual noise, unweighted | –86 dB |
Residual noise, A weighted | –88 dB |
Interchannel isolation 1 kHz 10 kHz 20 kHz | - –82 dB –72 dB –67 dB |
Full-scale amplitude | 0.63 Vpp to 8.4 Vpp |
Gain adjustment increment | 1.5 dB |
Gain range | 0 dB to +25 dB |
Table 3-5 lists the specifications for the line-level output:
Table 3-5. Line-Level Output Specifications
Specification | Value |
|---|---|
Impedance | 600 Ω, nominal |
Frequency response | +/– 1.2 dB, 20 Hz to 20 kHz |
Total harmonic distortion + noise At 1 kHz | - < 0.02%, 20 Hz to 20 kHz |
Residual noise, unweighted | –81 dB |
Residual noise, A weighted | –85 dB |
Interchannel isolation 1 kHz 10 kHz 20 kHz | - –80 dB –75 dB –71 dB |
Full-scale amplitude | 4.7 Vpp |
Table 3-6 lists the specifications for the microphone input:
Table 3-6. Microphone Input Specifications
Specification | Value |
|---|---|
Input impedance | 1.5 kΩ |
Frequency response | +/– 0.66 dB, 20 Hz to 20 kHz |
Total harmonic distortion + noise At 1 kHz Maximum (at 17.5 kHz) | - < 0.0053%, 20 Hz to 20 kHz 0.0067% |
Residual noise, unweighted | –86 dB |
Residual noise, A weighted | –89 dB |
Full-scale amplitude | 0.063 Vpp to 0.84 Vpp |
Microphone power supply | +3 VDC, 1 mA maximum |
Table 3-7 lists the headphone output specifications:
Table 3-7. Headphone Output Specifications
Specification | Value |
|---|---|
Headphone output level Into a 64 Ω load Into a 32 Ω Into a 16 Ω load
| - 36 mW 57 mW 74 mW
|
Impedance | 10 Ω |
Frequency response | +/– 2.3 dB, 20 Hz to 20 kHz |
Total harmonic distortion + noise At 1 kHz Maximum (at 19.3 kHz) | - < 0.2%, 20 Hz to 20 kHz 0.3% |
Residual noise, unweighted | –88 dB |
Residual noise, A weighted | –90 dB |
Interchannel isolation 1 kHz 10 kHz 20 kHz | - –87 dB –76 dB –73 dB |