linux alsa aplay 怎么修改才能播放6.1ch音频
发布网友
发布时间:2022-04-25 08:38
我来回答
共1个回答
热心网友
时间:2023-11-09 18:43
错误信息:ALSA lib pcm.c :2212:(snd_pcm_open_noupdate) Unkown PCM aplayhooks aplay:main:660:audio open error :File exites
ps进程没其aplay运行底原
近看ALSA driver尝试android 编译alsa-utils工具面讲述我何进行编译及程遇问题何解决:
首先我ALSA 官网载alsa-utils-1.0.23版本工具我android alsa-lib 1.023版本防止版本现问题我选择版本我alsa-lib放路径android_source/external/alsa-lib目录面我载alsa-utils-1.023工具包载放面
接我需要完几作:
1、alsa-utils面创建Android.mk
写内容:
ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true)
LOCAL_PATH:= $(call my-dir)
#
# Build aplay command
#
include $(CLEAR_VARS)
LOCAL_CFLAGS := \
-fPIC -D_POSIX_SOURCE \
-DALSA_CONFIG_DIR=\"/system/usr/share/alsa\" \
-DALSA_PLUGIN_DIR=\"/system/usr/lib/alsa-lib\" \
-DALSA_DEVICE_DIRECTORY=\"/dev/snd/\"
LOCAL_C_INCLUDES:= \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/android \
external/alsa-lib/include
LOCAL_SRC_FILES := \
aplay/aplay.c
LOCAL_MODULE_TAGS := debug
LOCAL_MODULE := alsa_aplay
LOCAL_SHARED_LIBRARIES := \
libasound \
libc
include $(BUILD_EXECUTABLE)
3、进入第2步创建sys目录sys目录创建signal.h文件文件写内容
[plain] view plaincopyprint?
01.#include <signal.h>
#include <signal.h>4、接直接编译android 编译程能现 错误
4.1:kernel/common/linux/un.h:18: error: expected specifier-qualifier-list before 'sa_family_t
我alsa-utils/alsactl/init_parse.c面include un.h前没#include <sys/socket.h>要前include文件解决
4.2:能遇错误:aplay.c面提示报错'S_IRGRP' undeclared (first use in this function要aplay.c面添加文件:#include <sys/stat.h>,解决
4.3:接能语言错误:speaker-test.c面报wav_file_dir没定义值用定义wav文件存放pad位置随便放哪我定义路径 /sdcard目录面
经面种种修改alsa-utils工具终于编译功
我编译程遇问题
转载
热心网友
时间:2023-11-09 18:43
错误信息:ALSA lib pcm.c :2212:(snd_pcm_open_noupdate) Unkown PCM aplayhooks aplay:main:660:audio open error :File exites
ps进程没其aplay运行底原
近看ALSA driver尝试android 编译alsa-utils工具面讲述我何进行编译及程遇问题何解决:
首先我ALSA 官网载alsa-utils-1.0.23版本工具我android alsa-lib 1.023版本防止版本现问题我选择版本我alsa-lib放路径android_source/external/alsa-lib目录面我载alsa-utils-1.023工具包载放面
接我需要完几作:
1、alsa-utils面创建Android.mk
写内容:
ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true)
LOCAL_PATH:= $(call my-dir)
#
# Build aplay command
#
include $(CLEAR_VARS)
LOCAL_CFLAGS := \
-fPIC -D_POSIX_SOURCE \
-DALSA_CONFIG_DIR=\"/system/usr/share/alsa\" \
-DALSA_PLUGIN_DIR=\"/system/usr/lib/alsa-lib\" \
-DALSA_DEVICE_DIRECTORY=\"/dev/snd/\"
LOCAL_C_INCLUDES:= \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/android \
external/alsa-lib/include
LOCAL_SRC_FILES := \
aplay/aplay.c
LOCAL_MODULE_TAGS := debug
LOCAL_MODULE := alsa_aplay
LOCAL_SHARED_LIBRARIES := \
libasound \
libc
include $(BUILD_EXECUTABLE)
3、进入第2步创建sys目录sys目录创建signal.h文件文件写内容
[plain] view plaincopyprint?
01.#include <signal.h>
#include <signal.h>4、接直接编译android 编译程能现 错误
4.1:kernel/common/linux/un.h:18: error: expected specifier-qualifier-list before 'sa_family_t
我alsa-utils/alsactl/init_parse.c面include un.h前没#include <sys/socket.h>要前include文件解决
4.2:能遇错误:aplay.c面提示报错'S_IRGRP' undeclared (first use in this function要aplay.c面添加文件:#include <sys/stat.h>,解决
4.3:接能语言错误:speaker-test.c面报wav_file_dir没定义值用定义wav文件存放pad位置随便放哪我定义路径 /sdcard目录面
经面种种修改alsa-utils工具终于编译功
我编译程遇问题
转载
热心网友
时间:2023-11-09 18:43
错误信息:ALSA lib pcm.c :2212:(snd_pcm_open_noupdate) Unkown PCM aplayhooks aplay:main:660:audio open error :File exites
ps进程没其aplay运行底原
近看ALSA driver尝试android 编译alsa-utils工具面讲述我何进行编译及程遇问题何解决:
首先我ALSA 官网载alsa-utils-1.0.23版本工具我android alsa-lib 1.023版本防止版本现问题我选择版本我alsa-lib放路径android_source/external/alsa-lib目录面我载alsa-utils-1.023工具包载放面
接我需要完几作:
1、alsa-utils面创建Android.mk
写内容:
ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true)
LOCAL_PATH:= $(call my-dir)
#
# Build aplay command
#
include $(CLEAR_VARS)
LOCAL_CFLAGS := \
-fPIC -D_POSIX_SOURCE \
-DALSA_CONFIG_DIR=\"/system/usr/share/alsa\" \
-DALSA_PLUGIN_DIR=\"/system/usr/lib/alsa-lib\" \
-DALSA_DEVICE_DIRECTORY=\"/dev/snd/\"
LOCAL_C_INCLUDES:= \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/android \
external/alsa-lib/include
LOCAL_SRC_FILES := \
aplay/aplay.c
LOCAL_MODULE_TAGS := debug
LOCAL_MODULE := alsa_aplay
LOCAL_SHARED_LIBRARIES := \
libasound \
libc
include $(BUILD_EXECUTABLE)
3、进入第2步创建sys目录sys目录创建signal.h文件文件写内容
[plain] view plaincopyprint?
01.#include <signal.h>
#include <signal.h>4、接直接编译android 编译程能现 错误
4.1:kernel/common/linux/un.h:18: error: expected specifier-qualifier-list before 'sa_family_t
我alsa-utils/alsactl/init_parse.c面include un.h前没#include <sys/socket.h>要前include文件解决
4.2:能遇错误:aplay.c面提示报错'S_IRGRP' undeclared (first use in this function要aplay.c面添加文件:#include <sys/stat.h>,解决
4.3:接能语言错误:speaker-test.c面报wav_file_dir没定义值用定义wav文件存放pad位置随便放哪我定义路径 /sdcard目录面
经面种种修改alsa-utils工具终于编译功
我编译程遇问题
转载
热心网友
时间:2023-11-09 18:43
错误信息:ALSA lib pcm.c :2212:(snd_pcm_open_noupdate) Unkown PCM aplayhooks aplay:main:660:audio open error :File exites
ps进程没其aplay运行底原
近看ALSA driver尝试android 编译alsa-utils工具面讲述我何进行编译及程遇问题何解决:
首先我ALSA 官网载alsa-utils-1.0.23版本工具我android alsa-lib 1.023版本防止版本现问题我选择版本我alsa-lib放路径android_source/external/alsa-lib目录面我载alsa-utils-1.023工具包载放面
接我需要完几作:
1、alsa-utils面创建Android.mk
写内容:
ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true)
LOCAL_PATH:= $(call my-dir)
#
# Build aplay command
#
include $(CLEAR_VARS)
LOCAL_CFLAGS := \
-fPIC -D_POSIX_SOURCE \
-DALSA_CONFIG_DIR=\"/system/usr/share/alsa\" \
-DALSA_PLUGIN_DIR=\"/system/usr/lib/alsa-lib\" \
-DALSA_DEVICE_DIRECTORY=\"/dev/snd/\"
LOCAL_C_INCLUDES:= \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/android \
external/alsa-lib/include
LOCAL_SRC_FILES := \
aplay/aplay.c
LOCAL_MODULE_TAGS := debug
LOCAL_MODULE := alsa_aplay
LOCAL_SHARED_LIBRARIES := \
libasound \
libc
include $(BUILD_EXECUTABLE)
3、进入第2步创建sys目录sys目录创建signal.h文件文件写内容
[plain] view plaincopyprint?
01.#include <signal.h>
#include <signal.h>4、接直接编译android 编译程能现 错误
4.1:kernel/common/linux/un.h:18: error: expected specifier-qualifier-list before 'sa_family_t
我alsa-utils/alsactl/init_parse.c面include un.h前没#include <sys/socket.h>要前include文件解决
4.2:能遇错误:aplay.c面提示报错'S_IRGRP' undeclared (first use in this function要aplay.c面添加文件:#include <sys/stat.h>,解决
4.3:接能语言错误:speaker-test.c面报wav_file_dir没定义值用定义wav文件存放pad位置随便放哪我定义路径 /sdcard目录面
经面种种修改alsa-utils工具终于编译功
我编译程遇问题
转载
热心网友
时间:2023-11-09 18:43
错误信息:ALSA lib pcm.c :2212:(snd_pcm_open_noupdate) Unkown PCM aplayhooks aplay:main:660:audio open error :File exites
ps进程没其aplay运行底原
近看ALSA driver尝试android 编译alsa-utils工具面讲述我何进行编译及程遇问题何解决:
首先我ALSA 官网载alsa-utils-1.0.23版本工具我android alsa-lib 1.023版本防止版本现问题我选择版本我alsa-lib放路径android_source/external/alsa-lib目录面我载alsa-utils-1.023工具包载放面
接我需要完几作:
1、alsa-utils面创建Android.mk
写内容:
ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true)
LOCAL_PATH:= $(call my-dir)
#
# Build aplay command
#
include $(CLEAR_VARS)
LOCAL_CFLAGS := \
-fPIC -D_POSIX_SOURCE \
-DALSA_CONFIG_DIR=\"/system/usr/share/alsa\" \
-DALSA_PLUGIN_DIR=\"/system/usr/lib/alsa-lib\" \
-DALSA_DEVICE_DIRECTORY=\"/dev/snd/\"
LOCAL_C_INCLUDES:= \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/android \
external/alsa-lib/include
LOCAL_SRC_FILES := \
aplay/aplay.c
LOCAL_MODULE_TAGS := debug
LOCAL_MODULE := alsa_aplay
LOCAL_SHARED_LIBRARIES := \
libasound \
libc
include $(BUILD_EXECUTABLE)
3、进入第2步创建sys目录sys目录创建signal.h文件文件写内容
[plain] view plaincopyprint?
01.#include <signal.h>
#include <signal.h>4、接直接编译android 编译程能现 错误
4.1:kernel/common/linux/un.h:18: error: expected specifier-qualifier-list before 'sa_family_t
我alsa-utils/alsactl/init_parse.c面include un.h前没#include <sys/socket.h>要前include文件解决
4.2:能遇错误:aplay.c面提示报错'S_IRGRP' undeclared (first use in this function要aplay.c面添加文件:#include <sys/stat.h>,解决
4.3:接能语言错误:speaker-test.c面报wav_file_dir没定义值用定义wav文件存放pad位置随便放哪我定义路径 /sdcard目录面
经面种种修改alsa-utils工具终于编译功
我编译程遇问题
转载