Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cspctl(1) [suse man page]

cspctl(1)						      General Commands Manual							 cspctl(1)

NAME
cspctl - Sound Blaster 16 ASP/CSP control program SYNOPSIS
cspctl command [-options] <filename> DESCRIPTION
cspctl is a simple CSP microcode loader for Crative Sound Blaster 16ASP and some Sound Blaster AWE32 sound cards with Creative Signal Pro- cessor (CSP) chip (CT1748A) installed. cspctl can also be used as a post-install function to snd-sb16-csp module to load default codec at module installation. If CSP chip is succesfully detected and initialized, it will be installed as a hardware dependant device hwC0D2 into /dev/snd directory. Currently, following codecs can be loaded to CSP device: wfm0001a.csp QSound decoder wfm0006a.csp A-law codec wfm0007a.csp u-law codec wfm0011a.csp IMA ADPCM codec (distorted output for IMA test files) wfm0200a.csp Creative ADPCM codec (sounds like Intel/DVI IMA ADPCM compatible) wfm0202a.csp Fast Speech 8 codec wfm0203a.csp Fast Speech 10 codec These codecs are not yet supported by ALSA: wfm0201a.csp Text2Speech decoder Qsound microcode file has four functions, each function is a decoder for different sample rate. Rates for QSound functions #1, #2, #3 and #4 are 44100, 22050, 11025 and 8000Hz respectively. IMA ADPCM and FastSpeech codecs are formed of two functions, the first one is for cap- ture and the second one is for playback. A-law and u-law codecs have only one function. To load for example function #2 from QSound microcode file (decoder for 22050Hz), run as follows: % cspctl load -f 2 -d QSound wfm0001a.csp After successful loading, /proc/asound/SB16/cspD2 will show: Creative Signal Processor [v1.0] State: -x--L Codec: QSound [func #2] Sample rates: 22050Hz QSound decoder disabled With QSound decoder microcode loaded, all simple PCM file formats can be played with QSound 180 degree positioning applied. QSound element is dynamically added into mixer structure as 3DEffect1-space element. It will only show if support for CSP has been compiled into ALSA drivers, CSP chip has been found, and QSound codec is loaded into CSP. When enabled, QSound position can be dynamically changed by mixer slider, and proc interface should follow the state of CSP chip and its current QSound position: Creative Signal Processor [v1.0] State: Qx-RL Codec: QSound [func #2] Sample rates: 22050Hz QSound decoder enabled Processing 16bit mono PCM samples Qsound position: left = 0x9, right = 0x9 Driver supports autoloading of u-Law, A-Law and Ima-ADPCM hardware codecs. Autoloading is active only when there is no microcode loaded to CSP, and there is no need to preload appropriate *.csp files. To unload manually loaded microcode, you should run % cspctl unload If hardware codec microcode has been manually loaded, then CSP will support only loaded PCM format and autoloading will be disabled. In such case, proc interface will show loaded codec properties: Creative Signal Processor [v1.0] State: -x--L Codec: IMA-ADPCM [func #2] Sample rates: All PCM format ID: 0x400000 (16bit/-) [mono/stereo] [playback/-] COMMANDS
load Load microcode from filename to CSP. unload Unload microcode from CSP. OPTIONS
-h, --help Display a short help. -c card Select a card number. Option defaults to 0. -f function Select a function from microcode file. Option defaults to 1. -d description Optional microcode description string. AUTHOR
Uros Bizjak <uros@kss-loka.si>. April 27, 2000 cspctl(1)

Check Out this Related Man Page

QSound(3qt)															       QSound(3qt)

NAME
QSound - Access to the platform audio facilities SYNOPSIS
#include <qsound.h> Inherits QObject. Public Members QSound ( const QString & filename, QObject * parent = 0, const char * name = 0 ) ~QSound () int loops () const int loopsRemaining () const void setLoops ( int l ) QString fileName () const bool isFinished () const Public Slots void play () void stop () Static Public Members bool isAvailable () void play ( const QString & filename ) bool available () DESCRIPTION
The QSound class provides access to the platform audio facilities. Qt provides the most commonly required audio operation in GUI applications: asynchronously playing a sound file. This is most easily accomplished with a single call: QSound::play("mysounds/bells.wav"); A second API is provided in which a QSound object is created from a sound file and is played later: QSound bells("mysounds/bells.wav"); bells.play(); Sounds played using the second model may use more memory but play more immediately than sounds played using the first model, depending on the underlying platform audio facilities. On Microsoft Windows the underlying multimedia system is used; only WAVE format sound files are supported. On X11 the Network Audio System is used if available, otherwise all operations work silently. NAS supports WAVE and AU files. On Macintosh, ironically, we use QT (QuickTime) for sound, this means all QuickTime formats are supported by Qt/Mac. On Qt/Embedded, a built-in mixing sound server is used, which accesses /dev/dsp directly. Only the WAVE format is supported. The availability of sound can be tested with QSound::isAvailable(). See also Multimedia Classes. MEMBER FUNCTION DOCUMENTATION
QSound::QSound ( const QString & filename, QObject * parent = 0, const char * name = 0 ) Constructs a QSound that can quickly play the sound in a file named filename. This may use more memory than the static play function. The parent and name arguments (default 0) are passed on to the QObject constructor. QSound::~QSound () Destroys the sound object. If the sound is not finished playing stop() is called on it. See also stop() and isFinished(). bool QSound::available () [static] Returns TRUE if sound support is available; otherwise returns FALSE. QString QSound::fileName () const Returns the filename associated with the sound. bool QSound::isAvailable () [static] Returns TRUE if sound facilities exist on the platform; otherwise returns FALSE. An application may choose either to notify the user if sound is crucial to the application or to operate silently without bothering the user. If no sound is available, all QSound operations work silently and quickly. bool QSound::isFinished () const Returns TRUE if the sound has finished playing; otherwise returns FALSE. Warning: On Windows this function always returns TRUE for unlooped sounds. int QSound::loops () const Returns the number of times the sound will play. int QSound::loopsRemaining () const Returns the number of times the sound will loop. This value decreases each time the sound loops. void QSound::play ( const QString & filename ) [static] Plays the sound in a file called filename. Example: sound/sound.cpp. void QSound::play () [slot] This is an overloaded member function, provided for convenience. It behaves essentially like the above function. Starts the sound playing. The function returns immediately. Depending on the platform audio facilities, other sounds may stop or may be mixed with the new sound. The sound can be played again at any time, possibly mixing or replacing previous plays of the sound. void QSound::setLoops ( int l ) Sets the sound to repeat l times when it is played. Passing the value -1 will cause the sound to loop indefinitely. See also loops(). void QSound::stop () [slot] Stops the sound playing. On Windows the current loop will finish if a sound is played in a loop. See also play(). SEE ALSO
http://doc.trolltech.com/qsound.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qsound.3qt) and the Qt version (3.3.8). Trolltech AS 2 February 2007 QSound(3qt)
Man Page