<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Creating Sound Effects in Android: Part 1</title>
	<atom:link href="http://www.droidnova.com/creating-sound-effects-in-android-part-1,570.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.droidnova.com/creating-sound-effects-in-android-part-1,570.html</link>
	<description>Rapid android development from Berlin</description>
	<lastBuildDate>Sat, 04 Feb 2012 17:50:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Paul</title>
		<link>http://www.droidnova.com/creating-sound-effects-in-android-part-1,570.html/comment-page-2#comment-2546</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Thu, 02 Feb 2012 02:10:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=570#comment-2546</guid>
		<description>Very handy, only change I had to do was add an integer cast to the line:
&lt;pre lang=&quot;java&quot; line=&quot;1&quot;&gt;mSoundPool.play(mSoundPoolMap.get(index), streamVolume, streamVolume, 1, 0, 1f);&lt;/pre&gt;
like so:
&lt;pre lang=&quot;java&quot; line=&quot;1&quot;&gt;mSoundPool.play((Integer) mSoundPoolMap.get(index), streamVolume, streamVolume, 1, 0, 1f);&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Very handy, only change I had to do was add an integer cast to the line:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">mSoundPool.<span style="color: #006633;">play</span><span style="color: #009900;">&#40;</span>mSoundPoolMap.<span style="color: #006633;">get</span><span style="color: #009900;">&#40;</span>index<span style="color: #009900;">&#41;</span>, streamVolume, streamVolume, <span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">0</span>, 1f<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>like so:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">mSoundPool.<span style="color: #006633;">play</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Integer</span><span style="color: #009900;">&#41;</span> mSoundPoolMap.<span style="color: #006633;">get</span><span style="color: #009900;">&#40;</span>index<span style="color: #009900;">&#41;</span>, streamVolume, streamVolume, <span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">0</span>, 1f<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: nyanko</title>
		<link>http://www.droidnova.com/creating-sound-effects-in-android-part-1,570.html/comment-page-2#comment-2492</link>
		<dc:creator>nyanko</dc:creator>
		<pubDate>Tue, 17 Jan 2012 12:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=570#comment-2492</guid>
		<description>i&#039;m having error in getBaseContext() in mSoundManager.initSounds(getBaseContext()); 
please help :(</description>
		<content:encoded><![CDATA[<p>i&#8217;m having error in getBaseContext() in mSoundManager.initSounds(getBaseContext());<br />
please help <img src='http://www.droidnova.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.droidnova.com/creating-sound-effects-in-android-part-1,570.html/comment-page-2#comment-2442</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 06 Jan 2012 00:12:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=570#comment-2442</guid>
		<description>I had the same problem where the sound effect would not play without adding in that for loop, thanks to to guy who posted the solution!</description>
		<content:encoded><![CDATA[<p>I had the same problem where the sound effect would not play without adding in that for loop, thanks to to guy who posted the solution!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ne-industries</title>
		<link>http://www.droidnova.com/creating-sound-effects-in-android-part-1,570.html/comment-page-2#comment-2384</link>
		<dc:creator>Ne-industries</dc:creator>
		<pubDate>Thu, 01 Dec 2011 13:12:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=570#comment-2384</guid>
		<description>How can I stop the sound? I dont want to PAUSE IT!!! I just want to stop a sound immedietly with a button!
Help appreciated
Sincerely
Ne-industries =)</description>
		<content:encoded><![CDATA[<p>How can I stop the sound? I dont want to PAUSE IT!!! I just want to stop a sound immedietly with a button!<br />
Help appreciated<br />
Sincerely<br />
Ne-industries =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.droidnova.com/creating-sound-effects-in-android-part-1,570.html/comment-page-2#comment-2383</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Thu, 01 Dec 2011 10:03:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=570#comment-2383</guid>
		<description>@Girish: Have you installed the apk before running your compiled version? If so, make sure you have removed the apk before as the debug key which was used to sign the apk should be a different one than you have. So you probably got an different signature error on installing. If thats not the case, please provide the error message.</description>
		<content:encoded><![CDATA[<p>@Girish: Have you installed the apk before running your compiled version? If so, make sure you have removed the apk before as the debug key which was used to sign the apk should be a different one than you have. So you probably got an different signature error on installing. If thats not the case, please provide the error message.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.droidnova.com/creating-sound-effects-in-android-part-1,570.html/comment-page-2#comment-2382</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Thu, 01 Dec 2011 10:01:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=570#comment-2382</guid>
		<description>@Sahil: Could you be a bit more specific? What does &quot;it doesn&#039;t work&quot; means actually?</description>
		<content:encoded><![CDATA[<p>@Sahil: Could you be a bit more specific? What does &#8220;it doesn&#8217;t work&#8221; means actually?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Girish</title>
		<link>http://www.droidnova.com/creating-sound-effects-in-android-part-1,570.html/comment-page-2#comment-2381</link>
		<dc:creator>Girish</dc:creator>
		<pubDate>Thu, 01 Dec 2011 08:14:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=570#comment-2381</guid>
		<description>Hello,

I am encountering a strange problem. 


I have a Samsung galaxy 2 phone. When I install the apk file directly taken from the soundtutorial.zip, it runs.But, if I compile the soundtutorial.zip (I use eclipse), and try to install the apk, it gives installation error.

Could you please suggest something on this?

Regards
girish</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I am encountering a strange problem. </p>
<p>I have a Samsung galaxy 2 phone. When I install the apk file directly taken from the soundtutorial.zip, it runs.But, if I compile the soundtutorial.zip (I use eclipse), and try to install the apk, it gives installation error.</p>
<p>Could you please suggest something on this?</p>
<p>Regards<br />
girish</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sahil</title>
		<link>http://www.droidnova.com/creating-sound-effects-in-android-part-1,570.html/comment-page-2#comment-2380</link>
		<dc:creator>Sahil</dc:creator>
		<pubDate>Wed, 30 Nov 2011 19:08:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=570#comment-2380</guid>
		<description>This is not working for me on Emulator ... I am using the foillowing code

&lt;pre lang=&quot;java&quot; line=&quot;1&quot;&gt;public class SoundActivity extends Activity {
	 SoundManager sM =null;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        sM = new SoundManager();
        sM.initSounds(getBaseContext());
        sM.addSound(1, R.raw.thip);
                findViewById(R.id.button1).setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				playSound();
				
			}

			private void playSound() {
				sM.playSound(1);
				
			}
		});
    }
}&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>This is not working for me on Emulator &#8230; I am using the foillowing code</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> SoundActivity <span style="color: #000000; font-weight: bold;">extends</span> Activity <span style="color: #009900;">&#123;</span>
	 SoundManager sM <span style="color: #339933;">=</span><span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
    @Override
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> onCreate<span style="color: #009900;">&#40;</span>Bundle savedInstanceState<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">super</span>.<span style="color: #006633;">onCreate</span><span style="color: #009900;">&#40;</span>savedInstanceState<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        setContentView<span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">layout</span>.<span style="color: #006633;">main</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        sM <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> SoundManager<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        sM.<span style="color: #006633;">initSounds</span><span style="color: #009900;">&#40;</span>getBaseContext<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        sM.<span style="color: #006633;">addSound</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span>, R.<span style="color: #006633;">raw</span>.<span style="color: #006633;">thip</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                findViewById<span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">id</span>.<span style="color: #006633;">button1</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">setOnClickListener</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">View</span>.<span style="color: #006633;">OnClickListener</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
			@Override
			<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> onClick<span style="color: #009900;">&#40;</span><span style="color: #003399;">View</span> v<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				playSound<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #009900;">&#125;</span>
&nbsp;
			<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> playSound<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				sM.<span style="color: #006633;">playSound</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.droidnova.com/creating-sound-effects-in-android-part-1,570.html/comment-page-2#comment-2347</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Mon, 07 Nov 2011 13:03:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=570#comment-2347</guid>
		<description>Excellent tutorial, thanks. I&#039;m trying to implement a click whenever the user taps on a screen button. SoundPool works, but there is sometimes a delay of ~0.5 seconds before the click. I get this with MediaPlayer as well, but not with ToneGenerator, so I know the delay isn&#039;t due to a delay in making the call. I can&#039;t use ToneGenerator because it doesn&#039;t have enough built sounds, and you can&#039;t load your own. 

Any ideas? Thanks</description>
		<content:encoded><![CDATA[<p>Excellent tutorial, thanks. I&#8217;m trying to implement a click whenever the user taps on a screen button. SoundPool works, but there is sometimes a delay of ~0.5 seconds before the click. I get this with MediaPlayer as well, but not with ToneGenerator, so I know the delay isn&#8217;t due to a delay in making the call. I can&#8217;t use ToneGenerator because it doesn&#8217;t have enough built sounds, and you can&#8217;t load your own. </p>
<p>Any ideas? Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajkiran Bande</title>
		<link>http://www.droidnova.com/creating-sound-effects-in-android-part-1,570.html/comment-page-2#comment-2292</link>
		<dc:creator>Rajkiran Bande</dc:creator>
		<pubDate>Tue, 04 Oct 2011 13:24:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=570#comment-2292</guid>
		<description>Thanks, really a great work. But can anybody help me in RECORDING the same sounds that are getting played with the help of this code? I mean the SoundPool is playing some files at once and I want to record (*not through MIC*) that music that is being played.

Please help.</description>
		<content:encoded><![CDATA[<p>Thanks, really a great work. But can anybody help me in RECORDING the same sounds that are getting played with the help of this code? I mean the SoundPool is playing some files at once and I want to record (*not through MIC*) that music that is being played.</p>
<p>Please help.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

