Next: , Previous: Top, Up: Top


1 Starting Open Cubic Player

When starting OCP, it first tries to setup a directory in your home-directory where cache and configuration will be stored, aswell at locating where OCP has installed its main files.

OCP then tries to detect the sound card/driver defined in the ocp.ini file. If the card/driver is not found you cannot use it. If more than one sound card/driver is installed and found by OCP the first one listed in the ocp.ini is used as the default device. 1

By entering a filename as parameter onto the command line you can load a module. If a filename is given the file will be loaded and OCP starts with the player. 2 When the parameter is the name of a directory the fileselector starts with the given directory. If the parameter equals a certain archive all files found inside the archive will be played (by adding them to the playlist).

If more than one parameter is given a playlist will be set up, containing all found files. You can mix filenames of archives, files in archives and normal files on the hard disk.

OCP can be configured using the command line, although the configuration through the ocp.ini file is more comfortable. The options split up into three main sections each starting with “-” followed by a letter. For each section different options are given, which will configure the player accordingly. You can precede each option with the section prefix every time or supply multiple options seperated with “,”. Some special options do not require the use of a sections prefix, like the help switch.

The command line looks like:

     ocp [prefix option[,option]] [specialOption] [filename]3

Special options include:

Fileselector options are envoked with -f. The values in square brackets define a choice that must be made when using one of these options.

Playback options are preceded by -v. Values in sharp brackets define a range in which the value must be taken.

Device setting are accomplished with the suffix -s.

Finally an example to illustrate the above features:

     ocp -fl0,r1 -va80,p50,f2 -spdevpdisk -sr44100 ftstar.xm

This will start OCP and load the file ftstar.xm 4. The music will be played once and will not loop (-fl0, r1). Further the player is advised to amplify this file with 80%, set the panning to 50% and interpolate every sample (-va80, p50, f2). The mixed output will be saved into .wav format through the See Using the diskwriter, device (-spdevpdisk) with a sample rate of 44.1KHz (-sr44100).

You can burn this WAV file directly onto a CD-Audio and play it with every normal CD player. A much simpler and more convinient way to make such a sample image of a module is by using predefined configurations with the -c switch. Have a look at See Using the diskwriter.


Footnotes

[1] You can change this in the player by using the setup: device. See page See specialdrive, for detail.

[2] This will work if the file is inside an archive located in the current directory. If no (unpacked) file is found all archives in the current directory are searched for an appropriate filename.

[3] Square brackets [] indicate an optional item that can be repeated.

[4] A marvelous piece of music composed by KB which won The Party 1997.