<?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 - Multichannel Sound using CMdaAudioOutputStream (v1.1) - Comments</title>
 <link>http://www.newlc.com/en/Multichannel-Sound-using.html</link>
 <description>Comments for &quot;Multichannel Sound using CMdaAudioOutputStream (v1.1)&quot;</description>
 <language>en</language>
<item>
 <title>Multichannel Sound using CMdaAudioOutputStream (v1.1)</title>
 <link>http://www.newlc.com/en/Multichannel-Sound-using.html#comment-495</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;Hello,
I am writing a game (its a single threaded app, not exe) and when i use the stream to play a sound on my 3650 or my 6.1 emulator, nothing happens. MaoscOpenComplete gets called very seldomly and randomly, maybe 5% of the time. If i disable all game code, same results.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;However, when i run my game on my 6670 (OS7) it runs perfectly all the time and makes me very happy.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;this is very frustrating. Setting up the audio stream is very easy and doesn&#039;t leave much room for error. I&#039;m not sure why this doesn&#039;t work on OS6.1. If anyone knows, or at least has suggestions as to where i can look for answers (i&#039;ve combed the web quite thoroughly) I&#039;d be very grateful for any help. Thanks in advance!&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Thu, 20 Apr 2006 21:31:10 +0200</pubDate>
 <dc:creator>ten foot ninja</dc:creator>
 <guid isPermaLink="false">comment 495 at http://www.newlc.com</guid>
</item>
<item>
 <title>Multichannel Sound using CMdaAudioOutputStream (v1.1)</title>
 <link>http://www.newlc.com/en/Multichannel-Sound-using.html#comment-494</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;Hello,
my game doesn&#039;t call MaoscOpenComplete() regularly on the SOS6.1. It gets called maybe 10% of the time, and it seems to have nothing to do with whatever code changes i have made and is very random. The behaviour is the same on my 3650, but on my 6670 (using SOS7) it always gets called and works wonderfully all the time.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;I am making a single threaded app, not exe, and i am using GapiDraw (if that matters). When i disable all drawing code, the behaviour is the same. Does anyone have any idea why this may happen? 
Thanks for any help in advance!&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Thu, 20 Apr 2006 06:09:14 +0200</pubDate>
 <dc:creator>ten foot ninja</dc:creator>
 <guid isPermaLink="false">comment 494 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Multichannel Sound using CMdaAudioOutputStream (v1.1)</title>
 <link>http://www.newlc.com/en/Multichannel-Sound-using.html#comment-493</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;Hi zeep,&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Firstly I want to say that this is a very good article, and has been very helpful for me. However I have a question regarding the actual stream mixing. In the example you described how to mix streams of the exact same lenght(BUFFERSIZE), but what If I want to mix streams of different lenght? An example might be the game backround music and some sound effects(the music is long whilst the sfx are short).&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;thanks for you reply :)&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Mon, 26 Dec 2005 22:49:38 +0100</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 493 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Multichannel Sound using CMdaAudioOutputStream (v1.1)</title>
 <link>http://www.newlc.com/en/Multichannel-Sound-using.html#comment-492</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;Hi Zeep,&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;I know very well how to use threads in Symbian and I agree with you that the best way
to go on with this case is to use threads. However, I am stuck.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;I am trying to use the CMdaAudioOutputStream / MMdaAudioOutputStreamCallBack from
a server/exe. The problem is that the callback methods are never called back.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Inside my EXE/DLL  server I create a thread which does everything, i.e.:&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;1) It creates a TrapCleanup&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;2) It creates and installs an Active Scheduler&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;3) It creates a couple of other objects&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;4) Constructs on the heap the Audio Observer object which implements the MMdaAudioOutputStreamCallBack.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;5) Constructs on the heap the CMdaAudioOutputStream object passing the reference of the Audio Observer
object i create on step (4).&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;6) Then, I open the CMdaAudioOutputStream object. (the callback is not called).&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;7) Then, I wait on a semaphore for another thread to put something in my queue (I have a queue with text
segments).&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;However, I would expect that while waiting on the semaphore on step 7, the callback to be called by the
MMF framework; I am talking about the callback on the MMdaAudioOutputStreamCallBack::MaoscOpenComplete().&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;But it is never called.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;In summary, though I do everything on a thread, I never get a callback from the MMF that the stream is openned
successfully.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Maybe, it is something that I miss that I have to put into the thread. Or maybe I need to use two threads. However, I do not know which piece of code to put in one thread and which piece of code to put on another.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Can you please help me on what I am doing wrong?&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Thanks in advance
Panayotis&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Sun, 18 Dec 2005 07:22:07 +0100</pubDate>
 <dc:creator>Panayotis</dc:creator>
 <guid isPermaLink="false">comment 492 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Little correction</title>
 <link>http://www.newlc.com/en/Multichannel-Sound-using.html#comment-498</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;Hi ,
 why u used 8 bit wav files for mixing? although the device supports 16 bit sound?&lt;/div&gt;</description>
 <pubDate>Tue, 04 Oct 2005 06:09:45 +0200</pubDate>
 <dc:creator>saju</dc:creator>
 <guid isPermaLink="false">comment 498 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Multichannel Sound using CMdaAudioOutputStream (v1.1)</title>
 <link>http://www.newlc.com/en/Multichannel-Sound-using.html#comment-491</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;This article are really useful!! Thanks so much~~&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;I would like to know that , is it possible to play/mix midi and wave together by this?&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Tue, 08 Mar 2005 03:06:47 +0100</pubDate>
 <dc:creator>sum</dc:creator>
 <guid isPermaLink="false">comment 491 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Multichannel Sound using CMdaAudioOutputStream (v1.1)</title>
 <link>http://www.newlc.com/en/Multichannel-Sound-using.html#comment-490</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;Great tutorial.But i was just wondering,is there anyway i cld fill in the buff with data from a telephone call.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;How do i get audio from etel?
any ideas?&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;thnkx a LOT&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Thu, 07 Oct 2004 15:57:50 +0200</pubDate>
 <dc:creator>1011 10</dc:creator>
 <guid isPermaLink="false">comment 490 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Multichannel Sound using CMdaAudioOutputStream (v1.1)</title>
 <link>http://www.newlc.com/en/Multichannel-Sound-using.html#comment-513</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;You shall call CMdaAudioOutputStream::SetAudioPropertiesL, and if it leaves with KErrNotSupported, you should try different frequency.
There&#039;s no other way.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;And note: some Series60 devices do not support 16KHz frequency, only 22050, or even other. So hard-coding 16KHz is asking for trouble.&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Mon, 20 Sep 2004 10:59:48 +0200</pubDate>
 <dc:creator>Mike</dc:creator>
 <guid isPermaLink="false">comment 513 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Multichannel Sound using CMdaAudioOutputStream (v1.1)</title>
 <link>http://www.newlc.com/en/Multichannel-Sound-using.html#comment-489</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;This code violates many of the basic rules of Symbian C++ programming. Your implementation of the interface should also inherit from CBase, since it allocates memory dynamically. Also, it allocates stuff in the constructor; instead, you should use 2-phased construction. Also, you have methods that leave, without the trailing L in the methods. So the caller is not aware that the method may leave, thus possibly leading to memory leaks. Also, you are using non-Symbian data types (should use TInt instead of int etc).&lt;/div&gt;</description>
 <pubDate>Thu, 02 Sep 2004 08:15:36 +0200</pubDate>
 <dc:creator>Andy</dc:creator>
 <guid isPermaLink="false">comment 489 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Multichannel Sound using CMdaAudioOutputStream (v1.1)</title>
 <link>http://www.newlc.com/en/Multichannel-Sound-using.html#comment-488</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;where is the wav file defined which will be opened? sorry for the noob question..&lt;/div&gt;</description>
 <pubDate>Fri, 13 Aug 2004 19:52:16 +0200</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 488 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Multichannel Sound using CMdaAudioOutputStream (v1.1)</title>
 <link>http://www.newlc.com/en/Multichannel-Sound-using.html#comment-517</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;The series 60 phone plays 16000 samples per second. I want 32 buffers per second (which should be fast enough for games) so we get a sample buffer size of 16000/32=512. 
You could try to make the buffer smaller but keep in mind that the overhead grows this way. I also think that the device uses an additional internal sound buffer you can not circumvent.
Sound output without any delay at all, to my knowledge, is not possible. (Even on PC hardware there is a small delay)
Hope this answered your question ;)&lt;/div&gt;</description>
 <pubDate>Wed, 04 Aug 2004 20:38:16 +0200</pubDate>
 <dc:creator>zeep</dc:creator>
 <guid isPermaLink="false">comment 517 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Multichannel Sound using CMdaAudioOutputStream (v1.1)</title>
 <link>http://www.newlc.com/en/Multichannel-Sound-using.html#comment-487</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;Could you explain me :
// buffer is 16000 / 32 = 512 samples
#define BUFFERSIZE 512&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Why 16000? Why 32?&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;I want to playback immediately the audio stream received from another Symbian phone. What is the size for the buffer?&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Wed, 04 Aug 2004 10:39:09 +0200</pubDate>
 <dc:creator>anhndb</dc:creator>
 <guid isPermaLink="false">comment 487 at http://www.newlc.com</guid>
</item>
<item>
 <title>Series 60 Developer Platform 1.0/2.0: SoundMixer Example v1.0</title>
 <link>http://www.newlc.com/en/Multichannel-Sound-using.html#comment-516</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;http://www.forum.nokia.com/main/1,6566,040,00.html?fsrParam=3-3-/main/0,,1_32_30,00.html&amp;fileID=4544&lt;/div&gt;</description>
 <pubDate>Thu, 27 May 2004 17:37:33 +0200</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 516 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Multichannel Sound using CMdaAudioOutputStream (v1.1)</title>
 <link>http://www.newlc.com/en/Multichannel-Sound-using.html#comment-486</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;Hi, Nokia released a Sound-Mixing-Multithreaded example.
You can download it here:&lt;/div&gt;</description>
 <pubDate>Thu, 27 May 2004 17:36:19 +0200</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 486 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; Zeep Sound engine</title>
 <link>http://www.newlc.com/en/Multichannel-Sound-using.html#comment-512</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;Hi, did you figure out why it was crashing? I&#039;m getting this now.&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;cheers,&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;paris&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Tue, 03 Feb 2004 16:26:07 +0100</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 512 at http://www.newlc.com</guid>
</item>
<item>
 <title>Multichannel Sound using CMdaAudioOutputStream (v1.1)</title>
 <link>http://www.newlc.com/en/Multichannel-Sound-using.html</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;This article tries to give the reader a rough introduction on how to implement multichannel sound. The reader should have basic knowledge on programming in Symbian and the will to experiment a bit. 
My target device is Nokia Series 60. But my code snippets should also work on any other Symbian device.&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/Multichannel-Sound-using.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/Multichannel-Sound-using.html#comments</comments>
 <category domain="http://www.newlc.com/en/taxonomy/term/14">Multimedia</category>
 <category domain="http://www.newlc.com/en/taxonomy/term/129">Games</category>
 <category domain="http://www.newlc.com/en/taxonomy/term/141">Sound and Vibrator</category>
 <pubDate>Fri, 13 Jun 2003 09:21:21 +0200</pubDate>
 <dc:creator>zeep</dc:creator>
 <guid isPermaLink="false">102 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
