1.CMakeLists.txt           SET(LIBTYPE SHARED) 改成 SET(LIBTYPE STATIC)
2.include/al/al.h 删除 dllexport
3.include/al/alc.h 删除 dllexport
4.alc/bs2b.c bs2b_set_level 改成 bs2b_set_level2 ...
5.OpenAL32/Include/bs2b.h bs2b_set_level 改成 bs2b_set_level2 ... 修改 openal/bs2b 是为了避免静态编译时与原来的 bs2b 发生冲突 --- CMakeLists.txt.orig 2011-02-16 04:05:40 +0800
+++ CMakeLists.txt 2016-03-23 08:23:05 +0800
@@ -51,7 +51,7 @@
ENDIF() IF(NOT LIBTYPE)
- SET(LIBTYPE SHARED)
+ SET(LIBTYPE STATIC)
ENDIF() SET(LIB_MAJOR_VERSION "1") --- include/al/al.h.orig 2010-11-29 07:09:04 +0800
+++ include/al/al.h 2016-03-23 10:09:22 +0800
@@ -5,20 +5,12 @@
extern "C" {
#endif -#if defined(AL_LIBTYPE_STATIC)
- #define AL_API
-#elif defined(_WIN32) && !defined(_XBOX)
- #if defined(AL_BUILD_LIBRARY)
- #define AL_API __declspec(dllexport)
- #else
- #define AL_API __declspec(dllimport)
- #endif
-#else
- #if defined(AL_BUILD_LIBRARY) && defined(HAVE_GCC_VISIBILITY)
- #define AL_API __attribute__((visibility("protected")))
- #else
- #define AL_API extern
- #endif
+#ifndef AL_API
+ #if defined (AL_BUILD_LIBRARY)
+ #define AL_API __attribute__((visibility ("default")))
+ #else
+ #define AL_API
+ #endif
#endif #if defined(_WIN32) --- include/al/alc.h.orig 2010-11-29 06:51:15 +0800
+++ include/al/alc.h 2016-03-23 10:09:51 +0800
@@ -5,20 +5,12 @@
extern "C" {
#endif -#if defined(AL_LIBTYPE_STATIC)
- #define ALC_API
-#elif defined(_WIN32) && !defined(_XBOX)
- #if defined(AL_BUILD_LIBRARY)
- #define ALC_API __declspec(dllexport)
- #else
- #define ALC_API __declspec(dllimport)
- #endif
-#else
- #if defined(AL_BUILD_LIBRARY) && defined(HAVE_GCC_VISIBILITY)
- #define ALC_API __attribute__((visibility("protected")))
- #else
- #define ALC_API extern
- #endif
+#ifndef ALC_API
+ #if defined (AL_BUILD_LIBRARY)
+ #define ALC_API __attribute__((visibility ("default")))
+ #else
+ #define ALC_API
+ #endif
#endif #if defined(_WIN32) --- alc/bs2b.c.orig 2010-03-19 05:22:27 +0800
+++ alc/bs2b.c 2016-03-23 10:04:14 +0800
@@ -122 +122 @@
-void bs2b_set_level(struct bs2b *bs2b, int level)
+void bs2b_set_level2(struct bs2b *bs2b, int level)
@@ -130 +130 @@
-int bs2b_get_level(struct bs2b *bs2b)
+int bs2b_get_level2(struct bs2b *bs2b)
@@ -135 +135 @@
-void bs2b_set_srate(struct bs2b *bs2b, int srate)
+void bs2b_set_srate2(struct bs2b *bs2b, int srate)
@@ -143 +143 @@
-int bs2b_get_srate(struct bs2b *bs2b)
+int bs2b_get_srate2(struct bs2b *bs2b)
@@ -148 +148 @@
-void bs2b_clear(struct bs2b *bs2b)
+void bs2b_clear2(struct bs2b *bs2b)
@@ -158 +158 @@
-int bs2b_is_clear(struct bs2b *bs2b)
+int bs2b_is_clear2(struct bs2b *bs2b)
@@ -170 +170 @@
-void bs2b_cross_feed(struct bs2b *bs2b, float *sample)
+void bs2b_cross_feed2(struct bs2b *bs2b, float *sample) --- OpenAL32/Include/bs2b.h.orig 2010-03-19 05:22:40 +0800
+++ OpenAL32/Include/bs2b.h 2016-03-23 07:21:38 +0800
@@ -78 +78 @@
-void bs2b_set_level(struct bs2b *bs2b, int level);
+void bs2b_set_level2(struct bs2b *bs2b, int level);
@@ -81 +81 @@
-int bs2b_get_level(struct bs2b *bs2b);
+int bs2b_get_level2(struct bs2b *bs2b);
@@ -86 +86 @@
-void bs2b_set_srate(struct bs2b *bs2b, int srate);
+void bs2b_set_srate2(struct bs2b *bs2b, int srate);
@@ -89 +89 @@
-int bs2b_get_srate(struct bs2b *bs2b);
+int bs2b_get_srate2(struct bs2b *bs2b);
@@ -92 +92 @@
-void bs2b_clear(struct bs2b *bs2b);
+void bs2b_clear2(struct bs2b *bs2b);
@@ -95 +95 @@
-int bs2b_is_clear(struct bs2b *bs2b);
+int bs2b_is_clear2(struct bs2b *bs2b);
@@ -103 +103 @@
-void bs2b_cross_feed(struct bs2b *bs2b, float *sample);
+void bs2b_cross_feed2(struct bs2b *bs2b, float *sample);

openal-1.13 静态编译(mingw32)的更多相关文章

  1. Ubuntu16.04下编译OpenCV2.4.13静态库(.a文件)

    Ubuntu16.04下编译OpenCV2.4.13静态库(.a文件) https://blog.csdn.net/woainishifu/article/details/79712110 我们在做项 ...

  2. mingw32环境上静态编译 dav1d 0.4.0

    2019-08-05 发布 dav1d 0.4.0 dav1d 'Cheetah', the fast and small AV1 decoder This is the fourth major r ...

  3. 记录下 QT Linux 静态编译遇到的坑

    Qt下静态编译Qt,根据我的经验,如果按照Windows下那种直接拿官方sdk安装之后的文件来编译是行不通的,需要直接下载Qt的source包,目前诺基亚的源码叫做qt-everywhere-open ...

  4. Linux下快速静态编译Qt以及Qt动态/静态版本共存

    Qt下静态编译Qt,根据我的经验,如果按照Windows下那种直接拿官方sdk安装之后的文件来编译是行不通的,需要直接下载Qt的source包,目前诺基亚的源码叫做qt-everywhere-open ...

  5. SpiderMonkey js引擎的静态编译与使用, SpiderMonkey的使用

    SpiderMonkey js引擎的静态编译与使用 2017年10月02日 02:51:22 yaolixing01 阅读数:536   原文出处: http://yaolixing.oltag.co ...

  6. Linux下快速静态编译Qt以及Qt动态/静态版本共存(提供了编译4.6,5.6的精通编译脚本,并且apt-get install 需要的库也全列出来了。还有分析问题的心理过程)good

    qt4.6 Linux./configure -static -release -confirm-license -opensource -qt-zlib -qt-libpng -qt-libjpeg ...

  7. 静态编译 Qt 5.6

    源码下载 Qt git地址:git://code.qt.io/qt/qt5.git 推荐用 SourceTree 客户端来克隆源码 准备工作 系统 Windows 7 或者 Windows 10 编译 ...

  8. 用mingw静态编译Qt4.8.2和Qt5.1.1(需要修改不少源码)

    因为一些乱七八糟的原因,我需要用mingw静态编译Qt4.8.2和Qt5.1.1.经历了一天的折腾之后,自觉编译一下Qt还是件颇为麻烦的事情,故将过程略作总结,以备不时之需. 首先,在编译之前,我需要 ...

  9. QT5静态编译工程(arm交叉编译)

    1.首先,QT编译环境默认是动态库,要编译静态程序是不可能的,所以要下载QT源码,重新编译QT编译环境 2.下载QT源码(5.13版本):http://download.qt.io/developme ...

随机推荐

  1. vim的寄存器和剪贴簿操作?

    vim 复制/ 删除 多行? 有确定序号的行: :10,15m20, 10,15co20 没有确定序号的行: ndd, nyy. 其中的n表示, 从当前行开始算起(当前行本身要包含!!!), 向下共删 ...

  2. C语言动态内存分配

    考虑下面三段代码: 片段1 void GetMemory(char *p) { p = (); } void Test(void) { char *str = NULL; GetMemory(str) ...

  3. NIOS ii 流水灯

    为了做项目的前期验证工作,实验室购买了某开发板,下面是基于该板子的实现过程.作为笔记记录,供入门者参考. 1:创建一个Quartus II的工程 next选择器件,然后finish.我的器件是cycl ...

  4. 前端性能利器——dynatrace ajax edition

    因为最近的工作跟性能分析有关系,所以写个小总结. 顺带推荐两个我常用的小工具: 1.文件对比工具beyond compare,非常好用,对比.修改很简单.当然我只是用的试用版本.google一下官网下 ...

  5. Codeforces Round #270 1002

    Codeforces Round #270 1002 B. Design Tutorial: Learn from Life time limit per test 1 second memory l ...

  6. 【C语言入门教程】2.4 浮点型数据

    浮点型数据又称实型数据,是一个以十进制表示的符号实数.符号实数的值包括整数部分.尾数部分和指数部分. 2.4.1 浮点型常量 一些较大的数值,或者有小数位.指数位的数值都需要用浮点型常量表示.浮点型常 ...

  7. ajax状态

    ajax的几个状态 Uninitialized 初始化状态.XMLHttpRequest 对象已创建或已被 abort() 方法重置. Open open() 方法已调用,但是 send() 方法未调 ...

  8. UNIX Time 时间戳 与 北京时间 相互转换

    typedef struct t_xtime { int year; int month; int day; int hour; int minute; int second; } _xtime ; ...

  9. DevPress GridControl添加按钮列

    把列的ColumnEdit属性设置为RepositoryItemButtonEdit 把TextEditStyle属性设置为HideTextEditor; 把Buttons的Kind属性设置为Glyp ...

  10. 9 patch png 的上下左右

    9 patch png 的上下左右   前言: 9 patch png 图片,扩展名为.9.png,是一个标准的PNG图像,它包括额外的1个像素的边界,通过对这个边界的描述来达到我们预期的拉伸效果.a ...