Lines Matching refs:dsp
46 dsp = ossaudiodev.open('w')
54 dsp.bufsize()
55 dsp.obufcount()
56 dsp.obuffree()
57 dsp.getptr()
58 dsp.fileno()
61 self.assertFalse(dsp.closed)
62 self.assertEqual(dsp.name, "/dev/dsp")
63 self.assertEqual(dsp.mode, "w", "bad dsp.mode: %r" % dsp.mode)
68 setattr(dsp, attr, 42)
72 self.fail("dsp.%s not read-only" % attr)
78 dsp.setparameters(AFMT_S16_NE, nchannels, rate)
81 dsp.write(data)
82 dsp.close()
90 def set_parameters(self, dsp):
102 if (dsp.setfmt(fmt) == fmt and
103 dsp.channels(channels) == channels and
104 dsp.speed(rate) == rate):
112 result = dsp.setparameters(fmt, channels, rate, False)
116 result = dsp.setparameters(fmt, channels, rate, True)
120 def set_bad_parameters(self, dsp):
134 result = dsp.setparameters(fmt, channels, rate, False)
139 result = dsp.setparameters(fmt, channels, rate, True)
150 dsp = ossaudiodev.open("w")
152 self.set_parameters(dsp)
156 #self.set_bad_parameters(dsp)
158 dsp.close()
159 self.assertTrue(dsp.closed)
164 dsp = ossaudiodev.open('w')
170 dsp.close()