0

Playing sound using AVAudioPlayer in iPhone

by Deepak Dhakal 11. May 2009 12:34

Add a audio framwork AVFoundation using

#import and use code below to play a sound

 ########################### #########
AVAudioPlayer *myExampleSound;
NSString *myExamplePath = [[NSBundle mainBundle] pathForResource:@"horror" ofType:@"wav"];
myExampleSound =[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:myExamplePath] error:NULL];
myExampleSound.delegate = self;
[myExampleSound play]; //play sound
//[myExampleSound stop]; you can stop like this
###########################################################

When you add a AVFoundation framwork, make sure to use absolute path.. Relative path is by default there and that gives compile error ..

Tags:

General | iPhone

0

No iPhone app submission if your app does not support OS 3.0

by Deepak Dhakal 11. May 2009 12:13

iPhone OS 3.0 beta 5 was only released for general consumption yesterday, and already Apple is rocking our collective faces off with big news. While a cool new feature being uncovered would be great, what Apple has in store for would-be iPhone application submitters is a bit more challenging. Effective today, Apple will no longer be accepting any iPhone or iPod touch applications that are not compatible with iPhone OS 3.0.

 According to an email sent to developers, "Beginning today, all submissions to the App Store will be reviewed on the latest beta of iPhone OS 3.0. If your app submission is not compatible with iPhone OS 3.0, it will not be approved." While this may make sense at first glance, consider that OS 3.0 does not yet have a release date and developers might be pushed to spend time and energy tweaking apps against an unstable OS base. Also, any devs who only ship free apps will now have to pony up $99 to join the beta if they want to debug their apps against the new version.

Further, it seems that Apple might be removing existing applications from the App Store, once iPhone OS 3.0 is released, if it is found that they are not compatible with the new operating system. So grab your Twitter clients and flame-throwers, it's gripin' time! Update: iPhone Developer Program enrollment is required for App Store application distribution; regardless of whether the application is free or paid, the enrollment fee applies, and any developers with apps in the store have already paid their $99 for access to the beta.

Tags:

iPhone

0

“content encoding error” while using blogengine.net

by Deepak Dhakal 11. May 2009 10:49

 

While using BlogEngine.net you may run into “content encoding error” “The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression” this error, to resolve this, find

<add name=”CompressionModule” type=”BlogEngine.Core.Web.HttpModules.CompressionModule, BlogEngine.Core”/>

in your web.config file and comment this line of code. This error mostly arrives when you host blogengine.net site on GoDaddy.

Tags:

Blogging | General

Powered by BlogEngine.NET 1.5.0.7
Original Design by Laptop Geek, Adapted by onesoft