Bob

        Do not apologize. Lot of us lurkers are interested and stimulated by 
info
as to where things are in the software but are afraid to ask.

        There is another point. We just started a reflector for those not
interested in software but in the operational aspects of the hardware. Thus
this is the forum for these topics.

                73 DE Jerry NO2T (lurking)

At 02:23 PM 4/8/2006 -0400, you wrote:
>In setup.cs this function changes the audio buffer size when the setup 
>audio value is changed:
>
>        private void comboAudioBuffer1_SelectedIndexChanged(object 
>sender, System.EventArgs e)
>        {
>            if(console.PowerOn)
>            {
>                console.PowerOn = false;
>                Thread.Sleep(100);
>                console.BlockSize1 = Int32.Parse(comboAudioBuffer1.Text);
>                DttSP.SetAudioSize(console.BlockSize1);
>                DttSP.SetKeyerResetSize(console.BlockSize1);
>                console.PowerOn = true;
>            }
>            else
>            {
>                console.BlockSize1 = Int32.Parse(comboAudioBuffer1.Text);
>                DttSP.SetAudioSize(console.BlockSize1);
>                DttSP.SetKeyerResetSize(console.BlockSize1);
>            }
>           
>        }
>
>
>console.BlockSize1 is a public property.
>
> From console.cs:
>
>        private int block_size1;
>        public int BlockSize1
>        {
>            get { return block_size1; }
>            set
>            {
>                block_size1 = value;
>                Audio.BlockSize = value;
>                CWForm.CWBlockSize = block_size1;
>            }
>        }
>
>
>AudioBlockSize is a public property and from audio.cs
>
>
>        private static int block_size = 1024;
>        public static int BlockSize
>        {
>            set
>            {
>                block_size = value;
>            }
>            get { return block_size; }
>        }
>
>
>
>I added Debug.WriteLine after block_size = value;
>
>and got the following output from the output window
>
>PowerSDR.exe': Loaded 
>'c:\windows\assembly\gac\system.windows.forms\1.0.5000.0__b77a5c561934e089\
system.windows.forms.dll', 
>No symbols loaded.
>'PowerSDR.exe': Loaded 
>'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll', 
>No symbols loaded.
>'PowerSDR.exe': Loaded 
>'c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system
.drawing.dll', 
>No symbols loaded.
>'PowerSDR.exe': Loaded 
>'c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.da
ta.dll', 
>No symbols loaded.
>'PowerSDR.exe': Loaded 
>'c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml
.dll', 
>No symbols loaded.
>'PowerSDR.exe': Loaded 
>'c:\windows\assembly\gac\adodb\7.0.3300.0__b03f5f7f11d50a3a\adodb.dll', 
>No symbols loaded.
>'PowerSDR.exe': Loaded 'c:\documents and 
>settings\n4hy2\desktop\powersdrsvn\trunk\bin\debug\interop.adox.dll', No 
>symbols loaded.
>'PowerSDR.exe': Loaded 
>'c:\windows\assembly\gac\custommarshalers\1.0.5000.0__b03f5f7f11d50a3a\cust
ommarshalers.dll', 
>No symbols loaded.
>'PowerSDR.exe': Loaded 
>'c:\windows\assembly\gac\microsoft.directx.directinput\1.0.2902.0__31bf3856
ad364e35\microsoft.directx.directinput.dll', 
>No symbols loaded.
>'PowerSDR.exe': Loaded 
>'c:\windows\assembly\gac\microsoft.directx\1.0.2902.0__31bf3856ad364e35\mic
rosoft.directx.dll', 
>No symbols loaded.
>1024
>512
>The thread 'Splash Screen Thread' (0xb20) has exited with code 0 (0x0).
>
>
>The reasons for doing it this way is the horrible behind the scenes 
>stuff that goes on with managed code.  We have proven absolutely 
>conclusively that referring to values declared in the console in the 
>callback routines regularly results in stalls.  Now, down inside the 
>callbacks,  we refer to local variables for these kinds of things.  
>There might be a few areas that still need cleaning up but there are no 
>longer console.Variable public properties with their hidden access 
>controls blocking us.  If someone outside the audio class wants to talk 
>to the local private control variables,  they must do it through the 
>audio class public access point using the appropriate public property.
>
>I apologize for boring everyone with this.  Why it was posted publicly 
>with two people capable of answering it I do not know.
>
>
>Bob
>
>
>Bill Tracey wrote:
>> Somewhere between 1.4.5 preview 12 and 1.4.5 preview 16 it appears the 
>> buffer size selection on  Setup->Audio got disconnected from the value the 
>> code is actually using.  Currently (1.6.0) it looks like the block_size is 
>> locked to 2048 in audio.cs (private static int block_size1 is initialized 
>> to 2048 and never changed)  -- intentional, or collateral damage in trying 
>> to keep audio.cs from reaching out to Console.cs properties?
>>
>> Regards,
>>
>> Bill (kd5tfd)  
>>
>>   
>
>
>-- 
>AMSAT VP Engineering. Member: ARRL, AMSAT-DL, TAPR, Packrats,
>NJQRP/AMQRP, QRP ARCI, QCWA, FRC. ARRL SDR Wrk Grp Chairman
>Laziness is the number one inspiration for ingenuity.  Guilty as charged!
>
>
>_______________________________________________
>FlexRadio mailing list
>[email protected]
>http://mail.flex-radio.biz/mailman/listinfo/flexradio_flex-radio.biz
>Archive Link: http://mail.flex-radio.biz/pipermail/flexradio_flex-radio.biz/
>FlexRadio Homepage: http://www.flex-radio.com
>

Reply via email to