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
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
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 +0000
Subject: Re: [IronPython] Reproducing an C#
float in Python is actually double in C#. You probably want:
from System import Single
System.Array.CreateInstance(Single, ...)
And so on.
From: users-boun...@lists.ironpython.com
[mailto:users-boun...@lists.ironpython.com] On Behalf Of Daniel D.
Sent: Wednesday, November 04, 2009 12:12 PM
T