我想创建基于QR码阅读器的应用程序.
使用哪个库,我可以创建我的应用程序?
注意:我在谷歌搜索.我总是得到zxing.我下载了zxing项目.但问题是; 我运行应用程序.但它只读取条形码.没有选择读取QR码.
请告诉我怎么做...
提前致谢.
我创建了一个iPhone应用程序来记录我们的声音.当我尝试录制时,我收到以下声明中的错误消息.
recorder = [[ AVAudioRecorder alloc] initWithURL:url settings:recordSetting error:&err];
Run Code Online (Sandbox Code Playgroud)
错误域= NSOSStatusErrorDomain代码= 1718449215"操作无法完成.(OSStatus错误1718449215.)"
如果我试图在.caf文件中记录,它工作正常.如果我尝试使用.m4a,我收到此错误消息.
请帮我解决一下.
谢谢.
我尝试使用以下代码来合并音频.
AVMutableComposition* composition = [AVMutableComposition composition];
AVURLAsset* videoAsset = [[AVURLAsset alloc]initWithURL:audioURL options:nil];
AVURLAsset* audioAsset1 = [[AVURLAsset alloc]initWithURL:audioURL1 options:nil];
AVURLAsset* audioAsset2 = [[AVURLAsset alloc]initWithURL:audioURL1 options:nil];
AVMutableCompositionTrack *compositionVideoTrack = [composition addMutableTrackWithMediaType:AVMediaTypeAudio preferredTrackID:kCMPersistentTrackID_Invalid];
NSError* error = NULL;
[compositionVideoTrack insertTimeRange:CMTimeRangeMake(kCMTimeZero,videoAsset.duration)
ofTrack:[[videoAsset tracksWithMediaType:AVMediaTypeVideo]objectAtIndex:0]
atTime:kCMTimeZero
AVMutableCompositionTrack *compositionAudioTrack1 = [composition addMutableTrackWithMediaType:AVMediaTypeAudio preferredTrackID:kCMPersistentTrackID_Invalid];
[compositionAudioTrack1 insertTimeRange:CMTimeRangeMake(kCMTimeZero,audioAsset1.duration)
ofTrack:[[audioAsset1 tracksWithMediaType:AVMediaTypeAudio]objectAtIndex:0]
atTime:kCMTimeZero
error:&error];
AVMutableCompositionTrack *compositionAudioTrack2 = [composition addMutableTrackWithMediaType:AVMediaTypeVideo preferredTrackID:kCMPersistentTrackID_Invalid];
[compositionAudioTrack2 insertTimeRange:CMTimeRangeMake(kCMTimeZero,audioAsset2.duration)
ofTrack:[[audioAsset2 tracksWithMediaType:AVMediaTypeAudio]objectAtIndex:0]
atTime:kCMTimeZero
error:&error];
Run Code Online (Sandbox Code Playgroud)
当我尝试执行"[[audioAsset1 tracksWithMediaType:AVMediaTypeAudio] objectAtIndex:0]"时,它给出了以下错误
*** Terminating app due to uncaught exception 'NSRangeException',
reason: '*** -[NSMutableArray objectAtIndex:]: index 0 …Run Code Online (Sandbox Code Playgroud) 当我尝试在iOS 4.2.1中运行我的应用程序时,我收到以下警告消息;
[Switching to thread 11523]
[Switching to thread 11523]
`/xcode iOS/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/dyld' has changed; re-reading symbols.
`/xcode iOS/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/dyld' has changed; re-reading symbols.
continue
`/xcode iOS/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/dyld' has changed; re-reading symbols.
`/xcode iOS/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/dyld' has changed; re-reading symbols.
warning: Unable to read symbols for /xcode iOS/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/info/dns.so (file not found).Run Code Online (Sandbox Code Playgroud)
我不知道这里发生了什么.
当我们收到这种警告信息时,有什么问题吗?
我正在开发一个iPhone应用程序(如音频处理).我必须对音频做出一些影响.如果它是桌面应用程序,那里有很多选项.我们可以得到很好的例子和完整的项目,如大胆.但我想为iPhone开发.
我有一个带有混响选项的应用程序; (看看下面的链接).只是我看"视频",我没有在我的iPhone设备上测试这个应用程序.
http://www.appstorehq.com/reverb-iphone-89870/app
我的问题是; 如何使用混响功能开发应用程序?那有什么文件吗?如果是,请与我们分享.
注意: 我们可以使用AudioUnit开发具有混响功能的应用程序(我不清楚这一点.).
编辑:我不喜欢使用任何第三方库.
如果有人对此有所了解,请与我们分享.
谢谢.
我已经创建了一个iPhone应用程序来记录.它将记录在.caf文件中.
但我想以.m4a格式录制.
请帮我这样做.
谢谢.
我正在使用音频单元录制我们的声音.在我的回调函数中,我在AudioBufferList中获取数据.我必须将此缓冲区存储在一个文件中.
问题是; 当我尝试将缓冲区存储在.caf文件中时,应用程序崩溃了.下面是代码.
AudioStreamBasicDescription audioFormat;
audioFormat.mSampleRate = 44100.00;
audioFormat.mFormatID = kAudioFormatLinearPCM;
audioFormat.mFormatFlags = kAudioFormatFlagsCanonical;
audioFormat.mBytesPerPacket = 2;
audioFormat.mFramesPerPacket = 1;
audioFormat.mBytesPerFrame = 2;
audioFormat.mChannelsPerFrame = 1;
audioFormat.mBitsPerChannel = 16;
audioFormat.mReserved = 0;
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSString *documentsDirectory = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
if(![[NSFileManager defaultManager] fileExistsAtPath:documentsDirectory])
[[NSFileManager defaultManager] createDirectoryAtPath:documentsDirectory withIntermediateDirectories:YES attributes:nil error:nil];
NSString *path = [documentsDirectory stringByAppendingPathComponent:@"audio.caf"];
if(![[NSFileManager defaultManager] fileExistsAtPath:path])
NSLog(@"file not exist.");
NSLog(@"Path : %@", path);
THIS->url = [NSURL fileURLWithPath:[path retain]];
err = ExtAudioFileCreateWithURL((CFURLRef)THIS->url, kAudioFileCAFType, …Run Code Online (Sandbox Code Playgroud) 有没有办法将录制的.WAV文件转换为iOS中的.M4A文件?
而且我还必须将.M4A文件转换为.WAV文件.
我试过音频队列服务,但我无法做到.
我尝试了更多的AudioStreamBasicDescription用于m4a文件格式.我仍然遇到一些问题.
请有人告诉我m4a文件格式的确切AudioStreamBasicDescription.
iphone ×8
audio ×5
ios ×3
m4a ×3
core-audio ×2
avurlasset ×1
extaudiofile ×1
merge ×1
qr-code ×1
record ×1
wav ×1
zxing ×1