readme
来自「一个共享源码的音频库6 (编译程序用的 makefile等)」· 代码 · 共 154 行
TXT
154 行
This is the software for the Open Source Audio Library Project. This is a betarelease. It is hoped that this program will inspire others to join the OpenSource Audio Library Project to build a first class set of C++ classes andlibraries to handle all the fundamentals of a sound application. Any questions should be directed to:Darrick Servisdarrick@kdvs.orgOSALP was originally designed and created by Bruce Forsberg.REQUIREMENTSCurrently this library is known to run on: Linux on Intel Linux on Sparc FreeBSD Solaris SparcReports of other successes are welcome.This version requires the following software:Motif or Lesstif (To build the sample applications) -- Lesstif available from http://www.lesstif.org -- Motif available from http://www.opengroup.org/openmotifC++ Compiler with STL (Standard Template Library)Different file formats require the followingMPEG player (mpg123 version 0.59r or later, for the mpg123 module) -- Available from http://www.mpg123.deMPEG encoder (lame version 3.51 or later, to record mp3's) -- Available from http://www.sulaco.org/mp3MPEG encoder (blade version 0.91 or later, to record mp3's) -- Available from http://bladeenc.mp3.noCOMPILE & INSTALLATIONTo compile perform the following at this directory:./configuremakemake install (as root)For SOLARIS:If you use gcc and have installed it in /usr/local then youmight need to set the following:setenv LD_LIBRARY_PATH /usr/local/libsetenv LD /usr/local/bin/g++For FreeBSDFor the sample applications you will need to remove the -ldl linefrom the Makefiles.This version currently only supports Linux, FreeBSD, and Solaris Sparc.Reading and writing to audio files and devices is done via stand-alone modules and you can choose which ones to install. The configure scriptby default will try to compile and install as many as are supported onyour machine.-- Audio Devices ---OSS Device (Linux and FreeBSD) Solaris Sparc sound device -- Formats Based on the Audiofile Library --MS Wave formatAIFFAIFF-CAUNOTE: the audiofile library is included as source in this distribution.-- Formats readable by the soundtools library module <aflibSoxFile.so>-- SGI/Apple AIFF Sound Filea-law byte rawALSA /dev/snd/pcmXX DeviceSPARC .au with headerSox Module Sound File DetectionCDDA AudioCont. Varible Slope DeltaCont. Varible Solot DeltaText Data SamplesGSM 06.10Mac FSSD/HCOMInverse a-law byte rawInverse u-law byte rawAmiga MAUDAmiga 8SVXSound Blaster .VOCMicrosoft RIFFPison .wveYamaha TX16W and SY99 Sound FilesOSS /dev/dsp DeviceRaw File. Must specify rate, channels and byte type.Raw Signed BytesRaw Signed LongsIRCAM Sound FileSampleVision Sound FileSndtool Sound FileNIST Sphere Sound FileSun /dev/audio DeviceNOTE: To compile the aflibSoxFile module.Download sox-12.17.3 or higher.http://sourceforge.net/projects/soxuntar sox source.configure and compile sox (you don't need to install it).cd to the root of the osalp source../configure --with-libst=<path to sox source>make make installcompile and install the aflibSoxFile module.-- Misc. Formats --MPEG reader (one module based on mpg123 the other on Jung woo-jae's MPEG/WAVE library).MPEG writer (one module based on lame the other on blade).OGG-VORBIS (uses ogg-vorbis library).NOTE: The aflibLameFile uses the Lame encoder to write mp3's. TheaflibBladeFile uses the Blade encoder to write mp3's. If you use either of themp3 formats then you will need to make sure that your PATH environment variableis set to where these applications are located. The mpg and mpg123 modules readmp3's.SAMPLE APPLICATIONSThere are three sample applications. They are in the player, editor, and osalpdirectories. Perform a "make" in these directories in order to run these. Thenexecute the s script to run the program.There are many combinations with the sample application that don't work right. Thesewill be fixed in due time.LICENSEEach source file should be examined to determine what license applies.All the code under formatlib and aflib is LGPL (see COPYING.LIB in thisdirectory) except the FFT class which is in the public domain.The source code in app, editor, and player is in the public domainsince they serve as examples of how to use this library.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?