Displaying 1 result from an estimated 1 matches for "oss_openfd".
2002 Apr 04
1
wave/OSS and JumpStart Kindergarten...
...are played. I turned on --debugmsg trace+wave,warn+wave and
a few traces of my own to see what was going on. It appears that JSK is
trying to open the sound device (wodOpen) on one thread while it is in the
middle of using it to play (wodPlay) on another thread. Access/Modification
of the static OSS_OpenFD isn't thread safe, so when OSS_OpenDevice() fails,
the -1 is stuffed into OSS_OpenFD, which hoses the playback thread. If I
make the necessary changes to make the OSS_OpenDevice() failure not blast
OSS_OpenFD, the playing thread eventually does finish. All the while, the
other thread keeps tr...