Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
1a40d5e2
Q
qemu
项目概览
openeuler
/
qemu
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
1a40d5e2
编写于
8月 11, 2009
作者:
J
Juan Quintela
提交者:
malc
8月 11, 2009
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
use C99 initializers for all audio/*
Signed-off-by:
N
Juan Quintela
<
quintela@redhat.com
>
上级
1dd3e4d1
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
56 addition
and
53 deletion
+56
-53
audio/alsaaudio.c
audio/alsaaudio.c
+4
-2
audio/dsoundaudio.c
audio/dsoundaudio.c
+10
-12
audio/esdaudio.c
audio/esdaudio.c
+2
-4
audio/fmodaudio.c
audio/fmodaudio.c
+29
-20
audio/ossaudio.c
audio/ossaudio.c
+4
-2
audio/paaudio.c
audio/paaudio.c
+2
-5
audio/sdlaudio.c
audio/sdlaudio.c
+1
-1
audio/wavaudio.c
audio/wavaudio.c
+4
-7
未找到文件。
audio/alsaaudio.c
浏览文件 @
1a40d5e2
...
...
@@ -786,8 +786,10 @@ static int alsa_run_in (HWVoiceIn *hw)
int
add
;
int
len
;
}
bufs
[
2
]
=
{
{
hw
->
wpos
,
0
},
{
0
,
0
}
{.
add
=
hw
->
wpos
,
.
len
=
0
},
{.
add
=
0
,
.
len
=
0
}
};
snd_pcm_sframes_t
avail
;
snd_pcm_uframes_t
read_samples
=
0
;
...
...
audio/dsoundaudio.c
浏览文件 @
1a40d5e2
...
...
@@ -49,18 +49,16 @@ static struct {
struct
audsettings
settings
;
int
latency_millis
;
}
conf
=
{
1
,
1
,
1
,
0
,
16384
,
16384
,
{
44100
,
2
,
AUD_FMT_S16
},
10
.
lock_retries
=
1
,
.
restore_retries
=
1
,
.
getstatus_retries
=
1
,
.
set_primary
=
0
,
.
bufsize_in
=
16384
,
.
bufsize_out
=
16384
,
.
settings
.
freq
=
44100
,
.
settings
.
nchannels
=
2
,
.
settings
.
fmt
=
AUD_FMT_S16
.
latency_millis
=
10
};
typedef
struct
{
...
...
audio/esdaudio.c
浏览文件 @
1a40d5e2
...
...
@@ -58,10 +58,8 @@ static struct {
char
*
dac_host
;
char
*
adc_host
;
}
conf
=
{
1024
,
2
,
NULL
,
NULL
.
samples
=
1024
,
.
divisor
=
2
,
};
static
void
GCC_FMT_ATTR
(
2
,
3
)
qesd_logerr
(
int
err
,
const
char
*
fmt
,
...)
...
...
audio/fmodaudio.c
浏览文件 @
1a40d5e2
...
...
@@ -50,13 +50,9 @@ static struct {
int
threshold
;
int
broken_adc
;
}
conf
=
{
NULL
,
2048
*
2
,
44100
,
2
,
0
,
0
,
0
.
nb_samples
=
2048
*
2
,
.
freq
=
44100
,
.
nb_channels
=
2
,
};
static
void
GCC_FMT_ATTR
(
1
,
2
)
fmod_logerr
(
const
char
*
fmt
,
...)
...
...
@@ -517,27 +513,40 @@ static struct {
const
char
*
name
;
int
type
;
}
drvtab
[]
=
{
{
"none"
,
FSOUND_OUTPUT_NOSOUND
},
{.
name
=
"none"
,
.
type
=
FSOUND_OUTPUT_NOSOUND
},
#ifdef _WIN32
{
"winmm"
,
FSOUND_OUTPUT_WINMM
},
{
"dsound"
,
FSOUND_OUTPUT_DSOUND
},
{
"a3d"
,
FSOUND_OUTPUT_A3D
},
{
"asio"
,
FSOUND_OUTPUT_ASIO
},
{.
name
=
"winmm"
,
.
type
=
FSOUND_OUTPUT_WINMM
},
{.
name
=
"dsound"
,
.
type
=
FSOUND_OUTPUT_DSOUND
},
{.
name
=
"a3d"
,
.
type
=
FSOUND_OUTPUT_A3D
},
{.
name
=
"asio"
,
.
type
=
FSOUND_OUTPUT_ASIO
},
#endif
#ifdef __linux__
{
"oss"
,
FSOUND_OUTPUT_OSS
},
{
"alsa"
,
FSOUND_OUTPUT_ALSA
},
{
"esd"
,
FSOUND_OUTPUT_ESD
},
{.
name
=
"oss"
,
.
type
=
FSOUND_OUTPUT_OSS
},
{.
name
=
"alsa"
,
.
type
=
FSOUND_OUTPUT_ALSA
},
{.
name
=
"esd"
,
.
type
=
FSOUND_OUTPUT_ESD
},
#endif
#ifdef __APPLE__
{
"mac"
,
FSOUND_OUTPUT_MAC
},
{.
name
=
"mac"
,
.
type
=
FSOUND_OUTPUT_MAC
},
#endif
#if 0
{"xbox", FSOUND_OUTPUT_XBOX},
{"ps2", FSOUND_OUTPUT_PS2},
{"gcube", FSOUND_OUTPUT_GC},
{.name = "xbox",
.type = FSOUND_OUTPUT_XBOX},
{.name = "ps2",
.type = FSOUND_OUTPUT_PS2},
{.name = "gcube",
.type = FSOUND_OUTPUT_GC},
#endif
{
"none-realtime"
,
FSOUND_OUTPUT_NOSOUND_NONREALTIME
}
{.
name
=
"none-realtime"
,
.
type
=
FSOUND_OUTPUT_NOSOUND_NONREALTIME
}
};
static
void
*
fmod_audio_init
(
void
)
...
...
audio/ossaudio.c
浏览文件 @
1a40d5e2
...
...
@@ -654,8 +654,10 @@ static int oss_run_in (HWVoiceIn *hw)
int
add
;
int
len
;
}
bufs
[
2
]
=
{
{
hw
->
wpos
,
0
},
{
0
,
0
}
{.
add
=
hw
->
wpos
,
.
len
=
0
},
{.
add
=
0
,
.
len
=
0
}
};
if
(
!
dead
)
{
...
...
audio/paaudio.c
浏览文件 @
1a40d5e2
...
...
@@ -38,11 +38,8 @@ static struct {
char
*
sink
;
char
*
source
;
}
conf
=
{
1024
,
2
,
NULL
,
NULL
,
NULL
.
samples
=
1024
,
.
divisor
=
2
,
};
static
void
GCC_FMT_ATTR
(
2
,
3
)
qpa_logerr
(
int
err
,
const
char
*
fmt
,
...)
...
...
audio/sdlaudio.c
浏览文件 @
1a40d5e2
...
...
@@ -48,7 +48,7 @@ typedef struct SDLVoiceOut {
static
struct
{
int
nb_samples
;
}
conf
=
{
1024
.
nb_samples
=
1024
};
static
struct
SDLAudioState
{
...
...
audio/wavaudio.c
浏览文件 @
1a40d5e2
...
...
@@ -40,13 +40,10 @@ static struct {
struct
audsettings
settings
;
const
char
*
wav_path
;
}
conf
=
{
{
44100
,
2
,
AUD_FMT_S16
,
0
},
"qemu.wav"
.
settings
.
freq
=
44100
,
.
settings
.
nchannels
=
2
,
.
settings
.
fmt
=
AUD_FMT_S16
,
.
wav_path
=
"qemu.wav"
};
static
int
wav_run_out
(
HWVoiceOut
*
hw
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录