<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - Playing WAVs from resource file? - Comments</title>
 <link>http://www.newlc.com/topic-488</link>
 <description>Comments for &quot;Playing WAVs from resource file?&quot;</description>
 <language>en</language>
<item>
 <title>Playing WAVs from resource file?</title>
 <link>http://www.newlc.com/topic-488#comment-4364</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;..The only problem now is how to correctly convert a wav file into&lt;br /&gt;a TDescC8 buffer that can be passed to NewDesPlayerReadOnlyL(..) &lt;img src=&quot;/sites/all/modules/smf_filter/smf_smileys/huh.gif&quot; alt=&quot;Huh&quot; border=&quot;0&quot; /&gt; &lt;br /&gt;&lt;br /&gt;Anyone aware of any wav2ascii utilities that do an ascii dump of a&lt;br /&gt;wav file in &#039;R&#039;&#039;I&#039;&#039;F&#039;&#039;F&#039;.. ascii format? &lt;br /&gt;&lt;br /&gt;..I don&#039;t know if this will even work!&lt;br /&gt;..but hey, nothing ventured, nothing gained &lt;img src=&quot;/sites/all/modules/smf_filter/smf_smileys/wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt; &lt;br /&gt;&lt;br /&gt;paris.&lt;/div&gt;</description>
 <pubDate>Sun, 05 Oct 2003 12:56:43 +0200</pubDate>
 <dc:creator>parisnlc</dc:creator>
 <guid isPermaLink="false">comment 4364 at http://www.newlc.com</guid>
</item>
<item>
 <title>Playing WAVs from resource file?</title>
 <link>http://www.newlc.com/topic-488#comment-4363</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;..then CSoundObject ::Internalize() could extract the PCMdata and pass it to CMdaAudioPlayerUtility::NewDesPlayerReadOnlyL(PCMdata)??!!&lt;br /&gt;&lt;br /&gt;..hey now, it&#039;s a crazy idea...but it might just work! &lt;img src=&quot;/sites/all/modules/smf_filter/smf_smileys/evil.gif&quot; alt=&quot;Evil&quot; border=&quot;0&quot; /&gt; &lt;br /&gt;&lt;br /&gt;nice one Eric.!&lt;br /&gt;&lt;br /&gt;paris.&lt;/div&gt;</description>
 <pubDate>Fri, 03 Oct 2003 22:19:22 +0200</pubDate>
 <dc:creator>parisnlc</dc:creator>
 <guid isPermaLink="false">comment 4363 at http://www.newlc.com</guid>
</item>
<item>
 <title>Playing WAVs from resource file?</title>
 <link>http://www.newlc.com/topic-488#comment-4362</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Then you can write internalize/externalize methods for your CSoundObject and yes, it should probably read/write binary streams of pcm data.&lt;/div&gt;</description>
 <pubDate>Fri, 03 Oct 2003 21:49:00 +0200</pubDate>
 <dc:creator>eric</dc:creator>
 <guid isPermaLink="false">comment 4362 at http://www.newlc.com</guid>
</item>
<item>
 <title>Playing WAVs from resource file?</title>
 <link>http://www.newlc.com/topic-488#comment-4361</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;I can see how objects can be serialised to a CDirectFileStore &lt;br /&gt;but I&#039;m not sure how to treat a wav file. &amp;nbsp;How do you actually inject &amp;nbsp;the&lt;br /&gt;wav file&#039;s binary data into a store?&lt;br /&gt;&lt;br /&gt;I already have a CSoundObject class for each loaded wav &amp;nbsp;but there&#039;s no point&lt;br /&gt;storing that class because it only has a handle to the wav file on disk - whereas I &lt;br /&gt;want to store the ?whole? wav file in memory.&lt;br /&gt;&lt;br /&gt;I&#039;m hoping that (ultimately) I can use swizzling to get at each&lt;br /&gt;stored wav file without necessarily loading the whole file store itself.&lt;br /&gt;(This is all hypothetical mind you, based on what I&#039;ve read in the docs)&lt;br /&gt;&lt;br /&gt;paris.&lt;/div&gt;</description>
 <pubDate>Fri, 03 Oct 2003 20:43:12 +0200</pubDate>
 <dc:creator>parisnlc</dc:creator>
 <guid isPermaLink="false">comment 4361 at http://www.newlc.com</guid>
</item>
<item>
 <title>Playing WAVs from resource file?</title>
 <link>http://www.newlc.com/topic-488#comment-4360</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&amp;gt;(but you will need to play them from memory). &lt;br /&gt;&lt;br /&gt;hmm.. now I&#039;m wondering if my app will become unacceptably bloated&lt;br /&gt;if I preload all my sound effects into RAM?&lt;br /&gt;I have about 15 8bit-8khz sounds totalling 200k. &lt;br /&gt;&lt;br /&gt;My understanding is that the Nokia 3650 has 4MB of internal memory for application and storage use and the maximum program heap size is up to 1.4 MB. &amp;nbsp;&lt;br /&gt;&lt;br /&gt;I presume the 4MB is storage disk space and the 1.4MB is the internal&lt;br /&gt;memory (RAM) size (correct me if I&#039;m wrong).&lt;br /&gt;(not sure of 7650 specs yet.)&lt;br /&gt;&lt;br /&gt;I assume that if I am considering preloading images and sounds&lt;br /&gt;in this way I should really try to stay below 200KB? &lt;br /&gt;(the docs point recommend this.. but why??).&lt;br /&gt;&lt;br /&gt;It isn&#039;t absolutely essential that all wavs are in memory, so if there is a good reason why I should avoid doing this where possible I&#039;d be interested to know.&lt;br /&gt;&lt;br /&gt;cheers.&lt;br /&gt;&lt;br /&gt;paris.&lt;/div&gt;</description>
 <pubDate>Fri, 03 Oct 2003 13:31:27 +0200</pubDate>
 <dc:creator>parisnlc</dc:creator>
 <guid isPermaLink="false">comment 4360 at http://www.newlc.com</guid>
</item>
<item>
 <title>Playing WAVs from resource file?</title>
 <link>http://www.newlc.com/topic-488#comment-4359</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;You can take a look at CDirectFileStore.&lt;br /&gt;&lt;br /&gt;This is not really resource files but will give you the possibility to put several Wavs into one file (but you will need to play them from memory).&lt;br /&gt;&lt;br /&gt;Eric&lt;/div&gt;</description>
 <pubDate>Fri, 03 Oct 2003 12:40:18 +0200</pubDate>
 <dc:creator>eric</dc:creator>
 <guid isPermaLink="false">comment 4359 at http://www.newlc.com</guid>
</item>
<item>
 <title>Playing WAVs from resource file?</title>
 <link>http://www.newlc.com/topic-488</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/topic-488&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/topic-488#comments</comments>
 <category domain="http://www.newlc.com/forums/audio">Audio</category>
 <pubDate>Fri, 03 Oct 2003 11:12:32 +0200</pubDate>
 <dc:creator>parisnlc</dc:creator>
 <guid isPermaLink="false">1566 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
