libalsa/1.2.10

Library of ALSA: The Advanced Linux Sound Architecture, that provides audio and MIDI functionality to the Linux operating system
Recipe info
LGPL-2.1-or-later
2023-09-17

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
libalsa/1.2.10

Using libalsa

Note

If you are new with Conan, we recommend to read the section how to consume packages.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
libalsa/1.2.10
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("libalsa/1.2.10")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): ALSA
  • CMake target name(s): ALSA::ALSA
  • pkg-config file name(s): alsa.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(ALSA REQUIRED)
# ...
target_link_libraries(YOUR_TARGET ALSA::ALSA)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the libalsa homepage listed above:

#include "alsa/asoundef.h"
#include "alsa/asoundlib.h"
#include "alsa/conf.h"
#include "alsa/control.h"
#include "alsa/control_external.h"
#include "alsa/control_plugin.h"
#include "alsa/error.h"
#include "alsa/global.h"
#include "alsa/hwdep.h"
#include "alsa/input.h"
#include "alsa/mixer.h"
#include "alsa/mixer_abst.h"
#include "alsa/output.h"
#include "alsa/pcm.h"
#include "alsa/pcm_external.h"
#include "alsa/pcm_extplug.h"
#include "alsa/pcm_ioplug.h"
#include "alsa/pcm_old.h"
#include "alsa/pcm_plugin.h"
#include "alsa/pcm_rate.h"
#include "alsa/rawmidi.h"
#include "alsa/seq.h"
#include "alsa/seq_event.h"
#include "alsa/seq_midi_event.h"
#include "alsa/seqmid.h"
#include "alsa/sound/asoc.h"
#include "alsa/sound/asound_fm.h"
#include "alsa/sound/emu10k1.h"
#include "alsa/sound/hdsp.h"
#include "alsa/sound/hdspm.h"
#include "alsa/sound/sb16_csp.h"
#include "alsa/sound/sscape_ioctl.h"
#include "alsa/sound/tlv.h"
#include "alsa/sound/type_compat.h"
#include "alsa/sound/uapi/asoc.h"
#include "alsa/sound/uapi/asound_fm.h"
#include "alsa/sound/uapi/emu10k1.h"
#include "alsa/sound/uapi/hdsp.h"
#include "alsa/sound/uapi/hdspm.h"
#include "alsa/sound/uapi/sb16_csp.h"
#include "alsa/sound/uapi/sscape_ioctl.h"
#include "alsa/sound/uapi/tlv.h"
#include "alsa/timer.h"
#include "alsa/topology.h"
#include "alsa/ump.h"
#include "alsa/ump_msg.h"
#include "alsa/use-case.h"
#include "alsa/version.h"
#include "asoundlib.h"
#include "sys/asoundlib.h"