Re: [IronPython] Reproducing an C# array of floats

2009-11-04 Thread Daniel D .
Ahh, read is a generic method and you’re getting type inference from C# but not IronPython. IronPython 2.6 includes type inference on generic methods so this might just work there, but otherwise I think you can do: print buffer.Read[Single](sample, 0, True) worked perfectly! tha

Re: [IronPython] Reproducing an C# array of floats

2009-11-04 Thread Dino Viehland
ow we specifiy generic type parameters. From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Daniel D. Sent: Wednesday, November 04, 2009 12:48 PM To: users@lists.ironpython.com Subject: Re: [IronPython] Reproducing an C# array of floats Hi Dino, thanks fo

Re: [IronPython] Reproducing an C# array of floats

2009-11-04 Thread Daniel D .
ld try the Microsoft.DirextX.DirectSound lib, but it's been a little bit difficult to find good references about IronPython+DirectSound (probably by own fault). From: di...@microsoft.com To: users@lists.ironpython.com Date: Wed, 4 Nov 2009 20:20:35 + Subject: Re: [IronPython] Reproducing an C#

Re: [IronPython] Reproducing an C# array of floats

2009-11-04 Thread Dino Viehland
To: users@lists.ironpython.com Subject: [IronPython] Reproducing an C# array of floats Hi all, Sorry for the silly question. I'm quite new to ironpython and I've been trying to solve this issue for the last 3 hours. I'm not able to reproduce this code in IronPython. float[] sam

[IronPython] Reproducing an C# array of floats

2009-11-04 Thread Daniel D .
Hi all, Sorry for the silly question. I'm quite new to ironpython and I've been trying to solve this issue for the last 3 hours. I'm not able to reproduce this code in IronPython. float[] sample = new float[8192/sizeof(float)] I've tried the following but nothing seems to work in my specific