首页 > 其他分享 >QSound相关记录

QSound相关记录

时间:2025-01-23 11:31:11浏览次数:3  
标签:files enable 记录 -- QSound default disable 相关 DIR

controlC0 -->用于声卡的控制,例如通道选择,混音,麦克风的控制等
midiC0D0 -->用于播放midi音频
pcmC0D0c-->用于录音的pcm设备
pcmCoDop -->用于播放的pcm设备
seq -->音序器
timer-->定时器


其中,COD0代表的是声卡0中的设备0,pcmC0D0c最后一个c代表capture,pcmC0D0p最后一个p代表playback,

ALSA 是 Linux 下处理音频硬件的核心子系统之一,提供了丰富的编程接口和工具,使得开发者能够高效地管理和控制声音硬件。交叉编译alsa-lib-1.2.3.2.tar.bz2生成相关的命令;

下载(www.alsa-project.org):alsa-lib-1.2.3.2.tar.bz2

1.解压到home/arm/alsa/

@ubuntu:~/arm/alsd$ tar -xvf alsa-lib-1.2.3.2.tar.bz2

2.查看./configure 帮助文档

@ubuntu:~/arm/alsd/alsa-lib-1.2.3.2$ ./configure -help
`configure' configures alsa-lib 1.2.3.2 to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print `checking ...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, `make install' will install all the files in
`/usr/bin', `/usr/lib' etc.  You can specify
an installation prefix other than `/usr' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/alsa-lib]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-silent-rules   less verbose build output (undo: "make V=1")
  --disable-silent-rules  verbose build output (undo: "make V=0")
  --disable-maintainer-mode
                          disable make rules and dependencies not useful (and
                          sometimes confusing) to the casual installer
  --enable-dependency-tracking
                          do not reject slow dependency extractors
  --disable-dependency-tracking
                          speeds up one-time build
  --enable-static[=PKGS]  build static libraries [default=no]
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --enable-symbolic-functions
                          use -Bsymbolic-functions option if available
                          (optmization for size and speed)
  --enable-debug          enable assert call at the default error message
                          handler
  --enable-resmgr         support resmgr (optional)
  --disable-aload         disable reading /dev/aload*
  --disable-mixer         disable the mixer component
  --disable-pcm           disable the PCM component
  --disable-rawmidi       disable the raw MIDI component
  --disable-hwdep         disable the hwdep component
  --disable-seq           disable the sequencer component
  --disable-ucm           disable the use-case-manager component
  --disable-topology      disable the DSP topology component
  --enable-alisp          enable the alisp component
  --disable-old-symbols   disable old obsoleted symbols
  --enable-mixer-modules  enable the additional mixer modules (experimental)
  --enable-mixer-pymods   enable the mixer python modules (experimental)
  --disable-python        disable the python components
  --enable-python2        prefer python2
  --disable-thread-safety disable thread-safe API functions

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
                          both]
  --with-aix-soname=aix|svr4|both
                          shared library versioning (aka "SONAME") variant to
                          provide on AIX, [default=aix].
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
                          compiler's sysroot if not specified).
  --with-configdir=dir    path where ALSA config files are stored
  --with-plugindir=dir    path where ALSA plugin files are stored
  --with-pkgconfdir=dir   path where pkgconfig files are stored
  --with-versioned        shared library will be compiled with versioned
                          symbols (default = yes)
  --with-debug            library will be compiled with asserts (default =
                          yes)
  --with-tmpdir=directory directory to put tmp socket files (/tmp)
  --with-softfloat        do you have floating point unit on this machine?
                          (optional)
  --with-libdl            Use libdl for plugins (default = yes)
  --with-pthread          Use pthread (default = yes)
  --with-librt            Use librt for monotonic clock (default = yes)
  --with-wordexp          Use wordexp when expanding configs (default = no)
  --with-alsa-devdir=dir  directory with ALSA device files (default /dev/snd)
  --with-aload-devdir=dir directory with aload* device files (default /dev)
  --with-pythonlibs=ldflags
                          specify python libraries (-lpthread -lm -ldl
                          -lpython2.4)
  --with-pythonincludes=Cflags
                          specify python C header files
                          (-I/usr/include/python)
  --with-pcm-plugins=<list>
                          build PCM plugins (default = all)
  --with-ctl-plugins=<list>
                          build control plugins (default = all)
  --with-max-cards        Specify the max number of cards (default = 32)

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  LT_SYS_LIBRARY_PATH
              User-defined run-time library search path.

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to the package provider.

3.配置环境变量

@ubuntu:~/arm/alsd/alsa-lib-1.2.3.2$ export PATH=$PATH:/home/arm/arm-linux-gnueabihf-7.5.0/bin

4.生成Makefile

./configure --host=arm --prefix=/home/arm/alsd/armAlsd CC=arm-linux-gnueabihf-gcc --disable-static

5.make

6.make install

sound内核配置选项步骤:

标签:files,enable,记录,--,QSound,default,disable,相关,DIR
From: https://blog.csdn.net/qq_40594248/article/details/145320256

相关文章

  • 【做题记录】2025提高刷题-dp
    A.Min-FundPrison(Medium)考虑一个边双连通分量一定不可能分为合法的两部分,于是进行缩点。缩完后显然是一个森林。设\(dp_{i,j,0/1}\)表示第一堆有\(i\)个点,第二堆有\(j\)个点,两堆点有没有用一条边连起来的最小花费。对于每棵树,考虑将它加入第一堆/加入第二堆/一部分加......
  • K8S标签相关的管理
     K8S标签相关的管理标签作用:kv格式,对资源进行标签化,通过标签对资源进行关联管理,以松散耦合的方式。通过labels进行定义、结合selector选择器进行管理标签管理的范围:[root@k8smaster01~]#kubectllabelapiservices.apiregistration.k8s.io......
  • 打靶记录25——darkhole_2
    靶机:https://vulnhub.com/entry/darkhole-2,740/下载(镜像):https://download.vulnhub.com/darkhole/darkhole_2.zip难度:高目标:获得Root权限+2Flag攻击方法:主机发现端口扫描Git库泄露源码分析SQL注入本地端口转发密码爆破水平提权1、2Root提权1、2主......
  • 如何准确查看和记录网站内容的修改时间以确保数据完整性
    准确查看和记录网站内容的修改时间对于维护数据完整性和追踪历史版本至关重要。以下是详细的步骤和建议:利用CMS系统自带功能:如果使用的是内容管理系统(如WordPress、Joomla),大多数平台都内置了版本控制和日志记录功能。例如,在WordPress中,可以通过“修订历史”查看文章或页面的......
  • 如何记录网站后台的修改内容
    问题描述:如何记录网站后台的修改内容。解决方法:使用日志记录功能:许多网站后台管理系统都提供了日志记录功能,可以记录用户的操作行为和修改内容。启用日志记录功能后,系统会自动记录每次修改的时间、用户、操作类型、修改内容等信息。自定义日志记录:如果网站后台管理系统没有提......
  • 【CodeForces训练记录】Codeforces Round 1000 (Div. 2)
    训练情况赛后反思C题猜了个假结论WA4,每次选择度最多的删掉,在连续三个度都是最大的情况下,删中间的会寄A题有点前缀和的感觉,\([1,l]\)互质个数为\(l\),\([1,r]\)互质个数为\(r\),所以区间\([l,r]\)的个数就是\(r-l\),特判一下\(l=1,r=1\)的情况答案是\(1\)点击查看代......
  • 二进制相关 // Kalthyix 团队周报计划
    前言文章作为面向团队内部成员的读物,我就语言不那么严谨直接开始瞎胡扯了。根据@Tighnarri的建议,我们来写一些大家可能会用到的与二进制有关的简单小玩意,希望大家喜欢。常识部分世界上只有\(10\)种人,一种的懂二进制的人,一种是不懂二进制的人。1、原码、补码、反码机器......
  • 不到500KB,轻松应对Windows11相关事宜!
    软件介绍        Win11轻松设置这款软件超级方便,无需安装,解压后直接运行软件就行。    ​软件共有六个大类的选项卡,每个页面都有对应的设置项,下方还有针对特定功能的设置。咱们先从第一页系统设置看起。    ​第一页能找到一些常用的系统设置项。我比较推......
  • ftp相关
    ftp问题问题一,客户端重复登录详细描述:一直显示登录,输入电脑密码又不对,匿名也不对一直重复弹框解决:属性->安全->编辑,或者文件夹属性->安全,添加everyone用户到用户组问题二,确认你有权限在此储存文件并且该文件名有效详细信息:FTP文件夹错误,终止FTP会话解决:勾上问题三的......
  • 【vjudge训练记录】大一寒假专项训练——前缀和/差分
    训练情况A题前缀和模板题,我们输入完\(a_i\)后直接求前缀和\(a_i=a_i+a_{i-1}\),求区间\([l,r]\)的和就为\(a_r-a_{l-1}\)点击查看代码#include<bits/stdc++.h>#defineintlonglong#defineendl'\n'usingnamespacestd;voidsolve(){intn,m;c......