小编sri*_*vas的帖子

应用程序在iOS 6.1.2中的[TestFlight takeOff:@""]崩溃

我将TestFlight SDK集成到我的iOS应用程序中.在iOS 6.1.2中,有时应用程序会在TestFlight的-takeOff:方法中首次启动应用程序崩溃.

  - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:  (NSDictionary *)launchOptions
{

#ifdef TESTING
    [TestFlight takeOff:@"MY_TESTFLIGHT_TEAM_TOKEN"];
    [TestFlight setDeviceIdentifier:[[UIDevice currentDevice] uniqueIdentifier]];
#endif

// Override point for customization after application launch.
ProductListViewController *products=[[ProductListViewController alloc] initWithNibName:@"ProductListViewController" bundle:nil];
UINavigationController *navigationController=[[UINavigationController alloc] initWithRootViewController:products];
[products release];

navigationController.toolbarHidden = YES;
navigationController.navigationBarHidden = YES;

self.rootViewController = navigationController;
[self.window setRootViewController:rootViewController];

[navigationController release];

[self.window makeKeyAndVisible];

return YES;
}
Run Code Online (Sandbox Code Playgroud)

任何帮助是极大的赞赏.

谢谢

iphone ios testflight

3
推荐指数
1
解决办法
1245
查看次数

音频单元中可能的输出采样率

我正在尝试为远程 I/O 音频单元的输入流设置不同的采样率(如 32kHz、24kHz 等)。但是输出总是以这些采样率之一播放 - 22.05kHz、33.1kHz、11.0kHz,无论我设置什么。令人奇怪的是,当我叫 AudioUnitGetPropertykAudioUnitScope_OutputkAudioUnitProperty_SampleRate,它总是返回44.1

- (void)startToneUnit
{
    AudioComponentDescription defaultOutputDescription;
    defaultOutputDescription.componentType = kAudioUnitType_Output;
    defaultOutputDescription.componentSubType = kAudioUnitSubType_RemoteIO;
    defaultOutputDescription.componentManufacturer = kAudioUnitManufacturer_Apple;
    defaultOutputDescription.componentFlags = 0;
    defaultOutputDescription.componentFlagsMask = 0;

        // Get the default playback output unit
    AudioComponent defaultOutput = AudioComponentFindNext(NULL, &defaultOutputDescription);
    NSAssert(defaultOutput, @"Can't find default output");

        // Create a new unit based on this that we'll use for output
    OSErr err = AudioComponentInstanceNew(defaultOutput, &toneUnit);
    NSAssert1(toneUnit, @"Error creating unit: %hd", err);

        // Set our tone rendering function …
Run Code Online (Sandbox Code Playgroud)

iphone core-audio audiounit ios

2
推荐指数
1
解决办法
2600
查看次数

标签 统计

ios ×2

iphone ×2

audiounit ×1

core-audio ×1

testflight ×1