'DSCBUFFERDESC attribute access'

def test_2_Attr(self):

    c = ds.DSCBUFFERDESC()
    c.dwFlags = 1
    c.dwBufferBytes = 2
    c.lpwfxFormat = pywintypes.WAVEFORMATEX()
    c.lpwfxFormat.wFormatTag = pywintypes.WAVE_FORMAT_PCM
    c.lpwfxFormat.nChannels = 2
    c.lpwfxFormat.nSamplesPerSec = 44100
    c.lpwfxFormat.nAvgBytesPerSec = 176400
    c.lpwfxFormat.nBlockAlign = 4
    c.lpwfxFormat.wBitsPerSample = 16
    self.failUnless((c.dwFlags == 1))
    self.failUnless((c.dwBufferBytes == 2))
    self.failUnless((c.lpwfxFormat.wFormatTag == 1))
    self.failUnless((c.lpwfxFormat.nChannels == 2))
    self.failUnless((c.lpwfxFormat.nSamplesPerSec == 44100))
    self.failUnless((c.lpwfxFormat.nAvgBytesPerSec == 176400))
    self.failUnless((c.lpwfxFormat.nBlockAlign == 4))
    self.failUnless((c.lpwfxFormat.wBitsPerSample == 16))
