我的申请使用音频Queue和音频Session。 我可以停止根据申请工作。 目前,我的客户要求我根据某些条件进行人工清扫。 我试图以音像服务公司作为音响或警示声来做。 没有积极成果。 有些人能否帮助我,告诉如何执行? 申请非监狱破碎的蜂窝的法律,并且由于 Apple果可以拒绝申请,因此可以使用习惯的蒸.。
谢谢。
我的申请使用音频Queue和音频Session。 我可以停止根据申请工作。 目前,我的客户要求我根据某些条件进行人工清扫。 我试图以音像服务公司作为音响或警示声来做。 没有积极成果。 有些人能否帮助我,告诉如何执行? 申请非监狱破碎的蜂窝的法律,并且由于 Apple果可以拒绝申请,因此可以使用习惯的蒸.。
谢谢。
利用这一解决办法解决问题:
AVAudioSession *audioSession = [AVAudioSession sharedInstance];
NSError *err = nil;
[audioSession setCategory :AVAudioSessionCategoryPlayback error:&err];
AudioServicesPlaySystemSound (kSystemSoundID_Vibrate);
[audioSession setCategory :AVAudioSessionCategoryPlayAndRecord error:&err];
This is how I get the vibration:
#import <AudioTool Box/AudioTool Box.h>
AVAudioSession *audioSession = [AVAudioSession sharedInstance];
NSError *err = nil;
[audioSession setCategory :AVAudioSessionCategoryPlayback error:&err];
AudioServicesPlaySystemSound (kSystemSoundID_Vibrate);
希望会有助于
For reference, I m not using AudioQueue
but an AVAudioEngine
to record something, and for my case I pinpointed it down to having to pause the input in order to play the vibration properly with AudioServicesPlaySystemSound
during a record session.
因此,我就这样说了。
audioEngine?.pause()
AudioServicesPlaySystemSound(1519)
do {
try audioEngine.start()
} catch let error {
print("An error occurred starting audio engine. (error.localizedDescription)")
}
No matter what I try (build -> content, NSUrl, filename) I get a null exception : file not found when I try to play a .caf sound file in monotouch. //var path = NSBundle.MainBundle.PathForResource("...
It s clearly a n00b question, as this has been implemented successfully in applications. But it s 2009 and I m still unclear how input/output buses work with AUBase. I ll crib the wording of my ...
I ve never had to deal with signal/stream encoding or decoding before, at least not beyond fairly basic protocols like HTTP, so forgive me if I m making this harder than I should be. Several of the ...
我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......
I am trying to convert our all-flash website to HTML 5. But since so many users still use IE and other browsers that do not support HTML 5 yet, I am looking for some flash media players that can ...
Flash has an API to control the volume for a Sound object. Can volume be controlled like this currently or is there support planned for <audio> or <video> html5 elements?
I m currently creating an iPhone web application for piano chords, and I wanted to add an option that would let the user press a Play button and play the selected chord. However, I m not sure how to ...
I have to record audio on an iPhone that will play back on Windows Media Player, using no non-standard codecs; that is, using no codecs that don t already ship with WMP. (Corporate requirement.) The ...