Csound Csound-dev Csound-tekno Search About

Re: Need selectable audio output device

Date1998-11-13 16:37
FromJoel Stern
SubjectRe: Need selectable audio output device
Tobiah wrote:

> > BTW, why can't I pipe csound's output samples into another
> > process?  It claims 'stdout audio not supported' or something.
> > There are some nice purposes for this as well.

If I correctly understand what you're after I think I have accomplished this
by using "Virtual Audio Cable", the blurb of which is attached below.

Joel
-----------------------------------attachment------------------------------

 Virtual Audio Cable Driver 1.00
                ===============================

Author: Eugene Muzychenko, Novosibirsk, Russia
        2:5000/14@FidoNet, music@spider.nrcde.ru


        Introduction
        ------------

The Virtual Audio Cable embodies an idea of physical interconnection
cable applied to Windows digital sound devices (Wave In and Wave Out).
Driver creates a pairs of Wave In/Out device ports; "In" and "Out"
devices in each pair are internally connected so all digital audio
data sent (played) to "Out" part of the cable by one program is
directly transferred to the "In" part and can be retrieved (recorded)
by another program. This mechanism allows to interconnect several
programs that are using Wave devices - software synthesizers, sound
processors, sound editors, sequencers etc. Additionally, it allows to
record pure digital audio data produced by programs that don't create
WAV files, sending audio only to Wave device in real time.


        Installation
        ------------

If driver files are packed, first unpack the archive to any empty
directory on your hard disk.

In Windows 95, go to the Control Panel, double click "Add New
Hardware" icon, answer "No" to auto search prompt, then select "Sound,
video and game controllers". In device list dialog select "Have disk"
and enter a path to the driver directory. Select "Virtual Audio Cable
Device Driver" and follow instructions displayed.

In Windows 3.1, go to the Control Panel, double click "Drivers" icon,
select "Add", then "Unlisted or updated driver", enter a path to the
driver directory and select "Virtual Audio Cable Device Driver".

Windows restart is required to activate installed driver.

*** WARNING ***

Driver designed to run in Windows 3.1 or above but tested only under
Windows 95. In Windows 3.x some problems may appear.


After system restart, there appears a new Wave Device "Virtual Audio
Cable", having two Digital Audio ports: "Audio Cable 1 In" for input
port and "Audio Cable 1 Out" for output port. Driver supports up to
eight independent cables; actual number is represented by
"NumberOfCables" entry of "[Virtual Audio Cable]" section of Windows
SYSTEM.INI file. This entry with initial value of 1 is appended to
your SYSTEM.INI during the installation process. You can edit this
file using SysEdit or any other text editor like NotePad, and manually
change this value in range 1..8, making desired number of cables.
Don't forget that Windows restart is required to take effect of the
changes.


        Working with cables
        -------------------

Both cable sides are standard Windows wave devices, you can use "In"
and "Out" ports of each cable with any program that works with audio
devices. All cables are completely independent. Both sides of one
cable must be open with same format: if other side isn't open, each
device accepts any wave format; when other side is open with given
format, device accepts only same format.

Virtual cable behaves as a real cable:

- when only output side is open, all played data is ignored;

- when only input side is open, silence is recorded;

- when both sides are open, all data sent to output side appears
unchanged at input side.


All internal data transfers from output to input side are completely
digital, and no quality degradation occurs. If you play WAV file to
output side and simultaneously record data from input side, all
recorded data will be same as played, except of possible leading
and/or trailing silence.


        Removing the driver from your system
        ------------------------------------

To remove driver from system you can select "Remove" in Control Panel
or simply delete "wave*=vac.drv" line from [drivers] section of
SYSTEM.INI. Additionally, you can delete the "[Virtual Audio Driver]
section. After Windows restart you will be able to delete driver file
VAC.DRV from Windows SYSTEM directory.


        Obtaining new versions of the driver
        ------------------------------------

If new versions or bug fixes are released, they will be placed at
ftp://spider.nrcde.ru/pub/sound/other/vac*.zip.


        Distribution policy
        -------------------

The driver is Freeware. You can distribute it freely if driver package
and file contents remains unchanged, and there are no commercial
purposes. You cannot sell it, independently or in one set with other
products, without my written permission.


Release history:
================

Version 1.00 (14.10.98) - first public release