I can play many sound at the same time but I can't record any sound using arecord
2017-08-30 10:26
489 查看
这个是linux下解决alsa驱动只能播放声音,不能采集声音的问题。
配置dmix之后,是可以进行混音播放的,可是采集添加上采集的时候,出现问题:I can play many sound at the same time but I can't record any sound using arecord。
https://forums.gentoo.org/viewtopic.php?p=958187,在 这个论坛找到了关于/etc/asound.conf文件的配置。测试后是可以通过的。
pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 8192
rate 44100
}
bindings {
0 0
1 1
}
}
pcm.asymed {
type asym
playback.pcm "dmixer"
capture.pcm "hw:0,0"
}
pcm.dsp0 {
type plug
slave.pcm "asymed"
}
pcm.!default {
type plug
slave.pcm "asymed"
}
pcm.default {
type plug
slave.pcm "asymed"
}
ctl.mixer0 {
type hw
card 0
}
配置dmix之后,是可以进行混音播放的,可是采集添加上采集的时候,出现问题:I can play many sound at the same time but I can't record any sound using arecord。
https://forums.gentoo.org/viewtopic.php?p=958187,在 这个论坛找到了关于/etc/asound.conf文件的配置。测试后是可以通过的。
pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 8192
rate 44100
}
bindings {
0 0
1 1
}
}
pcm.asymed {
type asym
playback.pcm "dmixer"
capture.pcm "hw:0,0"
}
pcm.dsp0 {
type plug
slave.pcm "asymed"
}
pcm.!default {
type plug
slave.pcm "asymed"
}
pcm.default {
type plug
slave.pcm "asymed"
}
ctl.mixer0 {
type hw
card 0
}
相关文章推荐
- how to play music and record from the mic at the same time?
- 11GR2 issue: can not open the alert at same time.
- full backup and log backup can happen at the same time
- Restful API becomes 404 when using the CXF at the same time
- How can a database be in-memory and durable at the same time?
- mysqld_safe Can't log to error log and syslog at the same time.
- Using MERGE in SQL Server to insert, update and delete at the same time
- Can ORACLE use both memory_target and AIX large pages at the same time ?
- 53. A man can't spin and reel at the same time. 一心不能二用
- A child is running up a staircase with N steps, and can hop either 1 step,2steps,3 steps at a time. Count how many possible ways the child can run up
- IIS on Windows XP: There are too many people accessing the Web site at this time.
- Setup 64-bit Windows Server for Running ASP.NET 1.1 and ASP.NET 2.0 at the Same Time
- Problem when launching several jobs at the same time
- Get the Degree of Angle Between Hour and Minute Hand of a Clock at Anytime
- HDU 4627 There are many unsolvable problem in the world.It could be about one or about zero.But this time it is about bigger number.
- Spark 2.1 , Method used to prevent multiple SparkContexts from being active at the same time
- Could I use NEON and VFP at the same time in my application?
- Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at kernel/timeconst.pl
- Get the Degree of Angle Between Hour and Minute Hand of a Clock at Anytime
- clone 远程分支 Cannot update paths and switch to branch 'dev' at the same time. Did you intend to checko