galakt / slimdx

Automatically exported from code.google.com/p/slimdx
0 stars 0 forks source link

creating SoundBuffer fails with WaveFormatExtensible #403

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
A WaveFormatExtensible class can't currently be used to create a
SoundBuffer (new SecondarySoundBuffer constructor) because there's a bug
that cuts off the extended bytes of the WAVEFORMATEXTENSIBLE when copying
to an unmanaged structure.

I made a fix, if you like it please integrate.

Original issue reported on code.google.com by CRMeadow...@gmail.com on 13 Jan 2009 at 11:07

Attachments:

GoogleCodeExporter commented 8 years ago
Accepted.

Original comment by Mike.Popoloski on 14 Jan 2009 at 12:06

GoogleCodeExporter commented 8 years ago
Well, your fix didn't address the root cause, which was that auto_ptr was being
misused with WaveFormat. It should be fixed now, as of r860. Let me know how it 
goes.

Original comment by Mike.Popoloski on 14 Jan 2009 at 2:57

GoogleCodeExporter commented 8 years ago
Tried it with 6 channels (Extensible required) and it worked fine, thanks.

Original comment by CRMeadow...@gmail.com on 15 Jan 2009 at 6:01