Bug 1891341 - Add text button as an after list action in IconListItem r=android-revie...
[gecko.git] / media / libvorbis / README.md
blob30c88d391d928b2fccca9690fcaee05299aa4e44
1 # Vorbis
3 [![GitLab Build Status](https://gitlab.xiph.org/xiph/vorbis/badges/master/pipeline.svg)](https://gitlab.xiph.org/xiph/vorbis/-/pipelines)
4 [![Travis Build Status](https://travis-ci.org/xiph/vorbis.svg?branch=master)](https://travis-ci.org/xiph/vorbis)
5 [![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/github/xiph/vorbis?branch=master&svg=true)](https://ci.appveyor.com/project/rillian/vorbis)
7 Vorbis is a general purpose audio and music encoding format
8 contemporary to MPEG-4's AAC and TwinVQ, the next generation beyond
9 MPEG audio layer 3. Unlike the MPEG sponsored formats (and other
10 proprietary formats such as RealAudio G2 and Windows' flavor of the
11 month), the Vorbis CODEC specification belongs to the public domain.
12 All the technical details are published and documented, and any
13 software entity may make full use of the format without license
14 fee, royalty or patent concerns.
16 This package contains:
18 - libvorbis, a BSD-style license software implementation of
19   the Vorbis specification by the Xiph.Org Foundation
20   (https://xiph.org/)
22 - libvorbisfile, a BSD-style license convenience library
23   built on Vorbis designed to simplify common uses
25 - libvorbisenc, a BSD-style license library that provides a simple,
26   programmatic encoding setup interface
28 - example code making use of libogg, libvorbis, libvorbisfile and
29   libvorbisenc
31 ## What's here ##
33 This source distribution includes libvorbis and an example
34 encoder/player to demonstrate use of libvorbis as well as
35 documentation on the Ogg Vorbis audio coding format.
37 You'll need libogg (distributed separately) to compile this library.
38 A more comprehensive set of utilities is available in the vorbis-tools
39 package.
41 Directory:
43 - `lib` The source for the libraries, a BSD-license implementation of the public domain Ogg Vorbis audio encoding format.
45 - `include` Library API headers
47 - `debian` Rules/spec files for building Debian .deb packages
49 - `doc` Vorbis documentation
51 - `examples` Example code illustrating programmatic use of libvorbis, libvorbisfile and libvorbisenc
53 - `macosx` Project files for MacOS X.
55 - `win32` Win32 projects files and build automation
57 - `vq` Internal utilities for training/building new LSP/residue and auxiliary codebooks.
59 ## Contact ##
61 The Ogg homepage is located at 'https://xiph.org/ogg/'.
62 Vorbis's homepage is located at 'https://xiph.org/vorbis/'.
63 Up to date technical documents, contact information, source code and
64 pre-built utilities may be found there.
66 ## Building ##
68 #### Building from master ####
70 Development source is under git revision control at
71 https://gitlab.xiph.org/xiph/vorbis.git. You will also need the
72 newest versions of autoconf, automake, libtool and pkg-config in
73 order to compile Vorbis from development source. A configure script
74 is provided for you in the source tarball distributions.
76     ./autogen.sh
77     ./configure
78     make
80 and as root if desired:
82     make install
84 This will install the Vorbis libraries (static and shared) into
85 /usr/local/lib, includes into /usr/local/include and API manpages
86 (once we write some) into /usr/local/man.
88 Documentation building requires xsltproc and pdfxmltex.
90 #### Building from tarball distributions ####
92     ./configure
93     make
95 and optionally (as root):
97     make install
99 #### Building RPM packages ####
101 after normal configuring:
103     make dist
104     rpm -ta libvorbis-<version>.tar.gz
106 ## Building with CMake ##
108 Ogg supports building using [CMake](https://cmake.org/). CMake is a meta build system that generates native projects for each platform.
109 To generate projects just run cmake replacing `YOUR-PROJECT-GENERATOR` with a proper generator from a list [here](https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html):
111     cmake -G YOUR-PROJECT-GENERATOR .
113 Note that by default cmake generates projects that will build static libraries.
114 To generate projects that will build dynamic library use `BUILD_SHARED_LIBS` option like this:
116     cmake -G YOUR-PROJECT-GENERATOR -DBUILD_SHARED_LIBS=1 .
118 After projects are generated use them as usual
120 #### Building on Windows ####
122 Use proper generator for your Visual Studio version like:
124     cmake -G "Visual Studio 12 2013" .
126 #### Building on Mac OS X ####
128 Use Xcode generator. To build framework run:
130     cmake -G Xcode -DBUILD_FRAMEWORK=1 .
132 #### Building on Linux ####
134 Use Makefile generator which is default one.
136     cmake .
137     make
139 ## License ##
141 THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE.
142 USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS
143 GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE
144 IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.
146 THE OggVorbis SOURCE CODE IS COPYRIGHT (C) 1994-2020
147 by the Xiph.Org Foundation https://xiph.org/