我已经好几年没用过 csound 了。在 Windows 7 上安装最新的非 RC 版本 (6.03.2) 后,我感到非常惊讶的是,我不再从中获得任何音频。奇怪的是,我可以渲染到文件,然后 CsoundQt 可以自动播放重新渲染的文件,也可以通过 PortAudio。为了修复示例输入,我使用演示中的 01C01_db_vs_linear.csd,尽管此文件的选择对结果并不重要。这是我在 CsoundQt 中点击播放(或 Ctrl+R)时得到的结果:
STARTING FILE
Creating options
Creating orchestra
Creating score
rtaudio: PortAudio module enabled ...
using blocking interface
Elapsed time at end of orchestra compile: real: 0.003s, CPU: 0.003s
sorting score ...
... done
Elapsed time at end of score sort: real: 0.003s, CPU: 0.003s
--Csound version 6.03.2 (double samples) May 12 2014
midi channel 1 using instr 1
midi channel 2 using instr 2
midi channel 3 using instr 1
midi channel 4 using instr 1
midi channel 5 using instr 1
midi channel 6 using instr 1
midi channel 7 using instr 1
midi channel 8 using instr 1
midi channel 9 using instr 1
midi channel 10 using instr 1
midi channel 11 using instr 1
midi channel 12 using instr 1
midi channel 13 using instr 1
midi channel 14 using instr 1
midi channel 15 using instr 1
midi channel 16 using instr 1
graphics suppressed, ascii substituted
0dBFS level = 1.0
orch now loaded
audio buffered in 4096 sample-frame blocks
PortAudio V19-devel (built Apr 21 2014 11:58:26)
0: adc0 (ASIO4ALL v2)
PortAudio: failed to obtain device info.
Failed to initialise real time audio input
而且我没有音频输出。如果我使用“渲染到文件”(Alt+F)会发生以下情况:
STARTING FILE
Creating options
Creating orchestra
Creating score
rtaudio: PortAudio module enabled ...
using callback interface
Elapsed time at end of orchestra compile: real: 0.004s, CPU: 0.004s
sorting score ...
... done
Elapsed time at end of score sort: real: 0.004s, CPU: 0.004s
--Csound version 6.03.2 (double samples) May 12 2014
midi channel 1 using instr 1
midi channel 2 using instr 2
midi channel 3 using instr 1
midi channel 4 using instr 1
midi channel 5 using instr 1
midi channel 6 using instr 1
midi channel 7 using instr 1
midi channel 8 using instr 1
midi channel 9 using instr 1
midi channel 10 using instr 1
midi channel 11 using instr 1
midi channel 12 using instr 1
midi channel 13 using instr 1
midi channel 14 using instr 1
midi channel 15 using instr 1
midi channel 16 using instr 1
graphics suppressed, ascii substituted
0dBFS level = 1.0
orch now loaded
audio buffered in 4096 sample-frame blocks
PortAudio V19-devel (built Apr 21 2014 11:58:26)
0: dac0 (Microsoft Sound Mapper - Output)
1: dac1 (Speakers (High Definition Audio)
2: dac2 (Digital Audio (S/PDIF) (High De)
3: dac3 (Digital Audio (S/PDIF) (High De)
4: dac4 (Primary Sound Driver)
5: dac5 (Speakers (High Definition Audio Device))
6: dac6 (Digital Audio (S/PDIF) (High Definition Audio Device))
7: dac7 (Digital Audio (S/PDIF) (High Definition Audio Device))
8: dac8 (ASIO4ALL v2)
PortAudio: selected output device 'Speakers (High Definition Audio'
writing 8192 sample blks of 64-bit floats to dac
SECTION 1:
new alloc for instr 1:
B 0.000 .. 11.000 T 11.000 TT 11.000 M: 0.99990 0.99990
new alloc for instr 2:
B 11.000 .. 21.000 T 21.000 TT 21.000 M: 0.99983 0.99983
Score finished in csoundPerformKsmps().
inactive allocs returned to freespace
end of score. overall amps: 0.99990 0.99990
overall samples out of range: 0 0
0 errors in performance
Elapsed time at end of performance: real: 21.098s, CPU: 21.098s
closing device
227 8192 sample blks of 64-bit floats written to dac
当然,我可以这样听到。但是为什么直接播放不起作用呢?
编辑添加:因为似乎 adc[s] 正在/正在对 PortAudio 造成某种问题(它不会通过播放渲染文件显示出来,因为大概它在播放时不会尝试初始化 adcs 方式(
STARTING FILE
Creating options
Creating orchestra
Creating score
rtaudio: PortAudio module enabled ...
using blocking interface
Elapsed time at end of orchestra compile: real: 0.003s, CPU: 0.017s
sorting score ...
... done
Elapsed time at end of score sort: real: 0.004s, CPU: 0.017s
--Csound version 6.03.2 (double samples) May 12 2014
midi channel 1 using instr 1
midi channel 2 using instr 2
midi channel 3 using instr 1
midi channel 4 using instr 1
midi channel 5 using instr 1
midi channel 6 using instr 1
midi channel 7 using instr 1
midi channel 8 using instr 1
midi channel 9 using instr 1
midi channel 10 using instr 1
midi channel 11 using instr 1
midi channel 12 using instr 1
midi channel 13 using instr 1
midi channel 14 using instr 1
midi channel 15 using instr 1
midi channel 16 using instr 1
graphics suppressed, ascii substituted
0dBFS level = 1.0
orch now loaded
audio buffered in 4096 sample-frame blocks
PortAudio V19-devel (built Apr 21 2014 11:58:26)
Failed to initialise real time audio input
这与直接运行 (Ctrl+R),通过渲染文件 (Alt+F) 播放仍然像以前一样工作。