home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 3
/
PDCD_3.iso
/
utilities
/
utilss
/
soundconv
/
!SoundCon
/
!Help
< prev
next >
Wrap
Text File
|
1995-04-17
|
15KB
|
339 lines
S o u n d C o n
=================
version 1.41, 17-04-95
by Rick Hudson
This software is FreeWare. It must only be distrubuted in its original form.
The PlaySample module is also FreeWare and can be used in other applications
but you must obtain my permission if you wish to distribute it separately
from SoundCon.
Summary
=======
SoundCon is an application for basic sound sample format conversion on the
Archimedes. It can read and write samples in a variety of formats common on
various computer platforms and can directly playback most the formats it can
read (without converting it first). An important feature of SoundCon is that
all processing and playback is done from disc meaning that the only memory
required is for the application itself and there is no limit to the sample
size.
As of version 1.40 SoundCon can respond to render requests from ArcWeb so
that WWW sounds can be played by just clicking on them.
Other documentation
===================
The Docs directory within !SoundCon conatins further information on the
PlaySample module and the various sound formats supported. The latter
contains format descriptions, what sub-formats are and aren't supported and
which ones can be played without conversion.
Interactive help is supported. Theoretically, you should be able to stop
reading this now and use that.
Supported formats
=================
Major formats sub-formats
Audio IFF 8/16 bit, mono/stereo
Armadeus n/a
ARMovie (read only) 8/16 bit, (un)signed linear, VIDC, mono/stereo
Sun Audio 8 bit µ-law, 8 bit lin, 16 bit lin, mono/stereo
AudioWorks 8/16 bit (un)signed, µ-law, VIDC, mono/stereo
IFF/8SVX n/a
VOC n/a
Voice modules 4 volume modes, fixed/var frequency, voice/transient
RIFF WAVE 8/16 bit PCM, µ-law, MS ADPCM, DVI ADPCM, mono/stereo
Raw data 8/16 bit, (un)signed linear, µ-law, VIDC, mono/stereo
For more information on these formats see the file Docs.Formats which
describes in more details what the formats can support and what the menu
sub-options do.
==============
Using SoundCon
==============
Loading a sample:
================
SoundCon is sample converter so it can't do anything until you give a
sample. Drag a file onto the icon bar icon or any of it's windows to 'open'
the sample. The settings of the preferences may cause some actions to happen
automatically at this point (see later) but the default is not do anything
except open the sample information window (click select on the icon bar icon
to open it if you need to). This window displays information about the file
loaded. If the format is not recognised (or a recognisable format is
unsupported - WAVEs have several such formats) then an error message is
reported and sample is loaded as raw data.
Changing the interpretation:
===========================
Recognised formats will not usually have to be fiddled with but raw data
will probably have to have the interpretation of the data changed to make
it sound right - this is largely a trial and error process.
At the bottom of the sample info window (click on Toggle Size or scroll
down) there is the interpretation format and frequency - use the pop-up
menus to change these. The format selections are summarised by interactive
help (if your version of RISC OS isn't too old) and described in more detail
in the file docs.Formats.
The interpretation frequency set how many sample frames per second to
assume. A sample frame is the samples on all channels at any given point and
so frames per second means samples per channel per second. The menu provides
a list of common frequencies as well as a writable entry for other
frequencies.
Listening to the sample
=======================
The playback control window can be opened by clicking Adjust on the icon bar
icon, clicking Adjust in the sample info window or by selecting the menu
item in the sample info window or icon bar menus. The sample will be played
based on the format and frequency set in the Interpret As section of the
sample info window. An exception to this are samples that cannot be
interpreted as raw data by SoundCon (ADPCM and Audioworks formats) which can
only be played in their original format.
The CD-style buttons control the playback and their use should be obvious.
The slider marking the sample progress can be dragged around as an
alternative to setting the sample position with the cue and rewind buttons.
The volume slider controls the volume and the speaker button toggles the
speaker on and off (as if that wasn't obvious). If the volume is changed or
the speaker toggled from another application then SoundCon updates the
volume slider and speaker button automatically. Note though that the volume
is independant of the normal system volume so other system-volume
controllers will have no effect.
Note that the ADPCM play routines are quite CPU intensive (since they
decompress on the fly) and the sound quality will probably suffer when
interrupts are used heavily (eg lots of disc activity).
Converting the sample to another format
=======================================
Open the conversion window from the info window or icon bar menus. The
current destination format is shown with the usual elements of a save box.
Change the format, sample rate and filename (if current settings are not
suitable) and drag the icon to where you want the new sample to be or click
OK/press Return if a complete path is already present. The conversion
progress window will open and the conversion will occur in the background.
The conversion can be paused if you need the computer to be more responsive
for a while or aborted by clicking the appropriate button.
The filename initially present in the convert window will depend on the
preferences (see Preferences for options).
The conversion produces a sample (in the specified format) so that playing
it at the speed set in the 'Rate' box will sound the same as the original
sample played at the speed set the 'Frequency' box of the 'Interpret As'
section. That is, the sample is resampled at the new frequency. If the
frequencies are different then new samples are generated by linearly
interpolating between the original samples.
See the file Docs.Formats for a description of the supported formats and
their sub formats.
Preferences
===========
Default Conversion format: This controls what output format will initially
be in the conversion save box when the program is loaded. This format may
also be set on loading a new sample (see Auto Load Actions below). The
effect of these settings is described in 'Converting a sample' above.
Interpret Unknown As: When an unrecogised sample is loaded, the data will be
initially interpreted according the settings in this box. The pop-up menus
are identical to those for the Interpret As part of the info window (see
'Changing The Interpretation' above).
Auto Actions On Load: Any combination (including none) of the following
actions are performed when a new sample is opened.
- Open info window: The window displaying the information on the sample is
opened.
- Open convert window: The conversion/save window is opened.
- Open play window: The play control window is opened.
- Default format: The format and frequency used for the output sample is
set from the Default Conversion Format part of the preferences.
- Convert: The conversion process is started using the format and filename
determined from other preference settings.
- Play: The sample is played back.
If either convert or play (or both) are selected then the sample is cleared
after their respective operation has completed to allow the next queued
sample to be processed automatically. If convert AND play are selected then
the sample is cleared after both have finished.
Sound: This section specifies how to set up the sound system on loading
SoundCon:
- Set