<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>cocos2d for iPhone &#187; Topic: SimpleAudioEngine and audioSessionResumed error message</title>
		<link>http://www.cocos2d-iphone.org/forum/topic/1149</link>
		<description>A fast, easy to use, free, and community supported 2D game engine</description>
		<language>en-US</language>
		<pubDate>Fri, 10 Feb 2012 02:00:15 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.cocos2d-iphone.org/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.cocos2d-iphone.org/forum/rss/topic/1149" rel="self" type="application/rss+xml" />

		<item>
			<title>kablooie on "SimpleAudioEngine and audioSessionResumed error message"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1149#post-6934</link>
			<pubDate>Thu, 06 Aug 2009 04:40:58 +0000</pubDate>
			<dc:creator>kablooie</dc:creator>
			<guid isPermaLink="false">6934@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Whew! I found the problem.<br />
I had an extra copy of the .h file outside the CocosDenshion folder. </p>
<p>I was editing the copy inside the folder but the one outside the folder was being compiled. </p>
<p>Seems almost like an xcode bug. The file that is being edited should have priority over any other versions of the file and if there is a conflict the compiler should alert you.
</p></description>
		</item>
		<item>
			<title>Steve Oldmeadow on "SimpleAudioEngine and audioSessionResumed error message"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1149#post-6916</link>
			<pubDate>Thu, 06 Aug 2009 02:21:12 +0000</pubDate>
			<dc:creator>Steve Oldmeadow</dc:creator>
			<guid isPermaLink="false">6916@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>I can't see anything wrong.  The only thing I can think is you have a typo somewhere but if it works then that can't be the case.  Are you using CocosDenshion from a static library?  If so maybe try explicitly cleaning then building the static library.
</p></description>
		</item>
		<item>
			<title>kablooie on "SimpleAudioEngine and audioSessionResumed error message"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1149#post-6914</link>
			<pubDate>Thu, 06 Aug 2009 02:10:46 +0000</pubDate>
			<dc:creator>kablooie</dc:creator>
			<guid isPermaLink="false">6914@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>I've made sure to clean the build each time I've run it.<br />
Here is the header "SimpleAudioEngine.h" (without the comments) :</p>
<p>#<a href='http://www.cocos2d-iphone.org/forum/tags/import'>import</a> "CocosDenshion.h"<br />
#<a href='http://www.cocos2d-iphone.org/forum/tags/import'>import</a> "CDAudioManager.h"</p>
<p>@interface SimpleAudioEngine : NSObject {<br />
	BOOL	muted_;<br />
}<br />
@property (readwrite) BOOL muted;<br />
@property (readwrite) float backgroundMusicVolume;<br />
@property (readwrite) float effectsVolume;<br />
+ (SimpleAudioEngine*) sharedEngine;<br />
-(void) playBackgroundMusic:(NSString*) filePath;<br />
-(void) playBackgroundMusic:(NSString*) filePath loop:(BOOL) loop;<br />
-(void) stopBackgroundMusic;<br />
-(void) pauseBackgroundMusic;<br />
-(void) rewindBackgroundMusic;<br />
(BOOL) isBackgroundMusicPlaying;</p>
<p>-(void) audioResumed;</p>
<p>-(ALuint) playEffect:(NSString*) filePath;<br />
-(ALuint) playEffect:(NSString*) filePath pitch:(Float32) pitch pan:(Float32) pan gain:(Float32) gain;<br />
-(void) preloadEffect:(NSString*) filePath;<br />
-(void) unloadEffect:(NSString*) filePath;</p>
<p>@end
</p></description>
		</item>
		<item>
			<title>Steve Oldmeadow on "SimpleAudioEngine and audioSessionResumed error message"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1149#post-6909</link>
			<pubDate>Thu, 06 Aug 2009 01:47:20 +0000</pubDate>
			<dc:creator>Steve Oldmeadow</dc:creator>
			<guid isPermaLink="false">6909@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>That message should just be a warning, it means that the method is not declared.  Can you post the actual header file you are using?  Also make sure you have cleaned your build.
</p></description>
		</item>
		<item>
			<title>kablooie on "SimpleAudioEngine and audioSessionResumed error message"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1149#post-6890</link>
			<pubDate>Thu, 06 Aug 2009 00:22:55 +0000</pubDate>
			<dc:creator>kablooie</dc:creator>
			<guid isPermaLink="false">6890@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>I've added a method to the SimpleAudioEngine so that I can continue playing sound after playing a movie. It works but I always get:</p>
<p>'SimpleAudioEngine' may not respond to '-audioResumed'</p>
<p>Here's what I've added:</p>
<p>SimpleAudioEngine.h<br />
-(void) audioResumed;</p>
<p>SimpleAudioEngine.m<br />
-(void) audioResumed {<br />
 [am audioSessionResumed];<br />
}</p>
<p>I call it with:</p>
<p>[[SimpleAudioEngine sharedEngine] audioResumed];</p>
<p>Does anyone see what I'm doing wrong to get the error message?
</p></description>
		</item>

	</channel>
</rss>

