Skip to content

C++ audio library supporting ALSA/OSS/libao and wav, wv, flac, ogg formats

License

Notifications You must be signed in to change notification settings

industral/SilentMedia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SilentMedia Library

Features

  • wav, wv, flac, ogg formats support
  • ALSA/OSS/libao
  • OSS Mixer
  • XSPF playlist

INSTALL

libconfig >= 1.4.3: http://www.hyperrealm.com/libconfig/ uriparser >= 0.7.5: http://uriparser.sourceforge.net/ (./configure --disable-test --disable-doc) libboost (>= 1.40)

http://xiph.org/downloads/

libxspf >=1.2: http://sourceforge.net/projects/libspiff/files/ (./configure --disable-test) libflac++-dev libogg libvorbis-dev libao-dev libasound2-dev (Linux) libwavpack-dev liblog4cxx (>= 0.1) http://logging.apache.org/log4cxx/ (for OS X: CXXFLAGS="-stdlib=libstdc++" LDDFLAGS="-stdlib=libstdc++" make)

googletest >= 1.4.0

Application deploy without any problems in Ubuntu 9.10.

To build application:

cmake .
make

for developing:

cmake -D BuildType=Debug -D LibraryType=shared .

for release:

cmake -D BuildType=Release -D LibraryType=static .
cmake -D Test=true .
cmake -D OSS=1 .
cmake -U OSS .

cmake -G"Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug .

API

Audio * audio = new Audio();

audio -> init(); // init Audio system

audio -> open("wav.wav", "file1");

audio -> getInfo("file1");


audio -> play("file1");
audio -> pause("file1");
audio -> play("file1");
audio -> stop("file1");
audio -> close("file1");

audio -> finish();

delete audio; audio = 0;

About

C++ audio library supporting ALSA/OSS/libao and wav, wv, flac, ogg formats

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages