Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
043aa14b
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
043aa14b
编写于
12月 28, 2010
作者:
A
amenkov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6842956: Assertion error in javax_sound on 64-bit RHEL 5.3 with 32-bit JDK
Reviewed-by: bae
上级
ef99ad96
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
33 addition
and
1 deletion
+33
-1
src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_MidiIn.c
...ve/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_MidiIn.c
+33
-1
未找到文件。
src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_MidiIn.c
浏览文件 @
043aa14b
...
@@ -32,6 +32,9 @@
...
@@ -32,6 +32,9 @@
#include <alsa/asoundlib.h>
#include <alsa/asoundlib.h>
#include "PlatformMidi.h"
#include "PlatformMidi.h"
#include "PLATFORM_API_LinuxOS_ALSA_MidiUtils.h"
#include "PLATFORM_API_LinuxOS_ALSA_MidiUtils.h"
#if defined(i586)
#include <sys/utsname.h>
#endif
/*
/*
* Helper methods
* Helper methods
...
@@ -73,9 +76,38 @@ char* MIDI_IN_GetErrorStr(INT32 err) {
...
@@ -73,9 +76,38 @@ char* MIDI_IN_GetErrorStr(INT32 err) {
return
(
char
*
)
getErrorStr
(
err
);
return
(
char
*
)
getErrorStr
(
err
);
}
}
INT32
MIDI_IN_GetNumDevices
()
{
INT32
MIDI_IN_GetNumDevices
()
{
/* Workaround for 6842956: 32bit app on 64bit linux
* gets assertion failure trying to open midiIn ports.
* Untill the issue is fixed in ALSA
* (https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4807)
* report no midi in devices in the configuration.
*/
#if defined(i586)
static
int
jre32onlinux64
=
-
1
;
if
(
jre32onlinux64
<
0
)
{
jre32onlinux64
=
0
;
/* The workaround may be disabled setting "JAVASOUND_ENABLE_MIDIIN"
* environment variable.
*/
if
(
getenv
(
"JAVASOUND_ENABLE_MIDIIN"
)
==
NULL
)
{
struct
utsname
u
;
jre32onlinux64
=
0
;
if
(
uname
(
&
u
)
==
0
)
{
if
(
strstr
(
u
.
machine
,
"64"
)
!=
NULL
)
{
TRACE0
(
"jre32 on linux64 detected - report no midiIn devices
\n
"
);
jre32onlinux64
=
1
;
}
}
}
}
if
(
jre32onlinux64
)
{
return
0
;
}
#endif
TRACE0
(
"MIDI_IN_GetNumDevices()
\n
"
);
TRACE0
(
"MIDI_IN_GetNumDevices()
\n
"
);
return
getMidiDeviceCount
(
SND_RAWMIDI_STREAM_INPUT
);
return
getMidiDeviceCount
(
SND_RAWMIDI_STREAM_INPUT
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录