[EMAIL PROTECTED] wrote:
fh= ossaudiodev.open("/dev/dsp", "rw")
fh.setparameters(ossaudiodev.AFMT_S16_LE, number_of_channels,
sample_rate)
fh.writeall(frames_out)
frames_in= fh.read(number_of_samples * sample_width)
fh.close()

One problem with this is that you can't use a single file object for independent reading and writing at the same time. C stdio implementations tend to get confused if you try to do that.

You may have other problems as well, but you'll at least
need to open two separate file objects.

--
Greg Ewing, Computer Science Dept,
University of Canterbury,       
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to