Test results of linuxaudiodev.c
Alexandre Ferrieux
alexandre.ferrieux at rd.francetelecom.fr
Tue Jul 4 08:30:48 EDT 2000
Michael Hudson wrote:
>
> > dsp = linuxaudiodev.open("w")
> > dsp.setparameters(au.getframerate(), au.getsampwidth() * 8,
> > au.getnchannels(), formats[spec])
> > dsp.write(data)
> > dsp.close()
>
> This doesn't work. I don't really understand why.
Can you characterize "doesn't work" ?
If by this you mean 'no errors, no sound', then probably the problem
is that the close doesn't (by default) linger until all the queued data
have been played - in which case success is just one ioctl() away...
-Alex
More information about the Python-list
mailing list