我有一个带有多个输出的声卡,并使用 ALSA 将它们映射到 2 个独立的立体声通道。配置工作正常,并允许我,例如使用扬声器测试在它们上播放音频。
我现在想使用 AudioSystem API 在 Java 程序中使用这 2 个立体声输出。但是,立体声 1 和立体声 2 不会使用 MixerInfo 显示。
我真的不明白 Java 如何决定使用 AudioSystem API 公开哪些“设备”。我目前正在 Ubuntu 11.10 系统上对此进行测试。
这是使用的 asound.conf:
#/etc/asound.conf
pcm_slave.fourchannels {
pcm "hw:0,0"
channels 4
}
pcm.stereo1 {
type plug
slave.pcm {
type dshare
ipc_key 87882222
slave fourchannels
bindings [ 0 1 ]
}
}
pcm.stereo2 {
type plug
slave.pcm {
type dshare
ipc_key 87882222
slave fourchannels
bindings [ 2 3 ]
}
}
Run Code Online (Sandbox Code Playgroud)
这是我用来显示可用输入和输出的代码:
Mixer.Info[] mixers = …Run Code Online (Sandbox Code Playgroud) 我有一个2013 Retina MacBook pro,并对XCode的构建速度感到惊讶.我可以在大约2-3秒内在模拟器中构建并运行一个相当大的Objective-C应用程序.
在为iPhone制作和运行较小的Titanium App时,我想知道为什么需要大约15秒.在控制台中,构建过程非常快,但应用程序在"调用xcodebuild"上挂起大约10秒钟
$ titanium build -p ios
Titanium Command-Line Interface, CLI version 3.0.24, Titanium SDK version 3.0.2.v20130206164716
Copyright (c) 2012-2013, Appcelerator, Inc. All Rights Reserved.
Please report bugs to http://jira.appcelerator.org/
[INFO] Build type: development
[INFO] Building for target: simulator
[INFO] Building using iOS SDK: 6.1
[INFO] Building for iOS iPhone Simulator: 6.1
[INFO] Building for device family: iphone
[INFO] Minimum iOS version: 4.3
[INFO] Debugging disabled
[INFO] Initiating prepare phase
[INFO] Copying custom Info.plist from project …Run Code Online (Sandbox Code Playgroud)