RE: [RFC] Reference counting on Audio objects for /dev/dsp

2004-07-17 Thread Gerd Spalink
The current proposal will not work if someone first dups the device descriptor, and then changes the audio settings with ioctl calls using one of the two device descriptors. The other one will keep the old settings. The patch I am preparing will fix this. However, I also have problems to build

RE: [RFC] Reference counting on Audio objects for /dev/dsp

2004-07-17 Thread Robert McNulty Junior
Replying to myself - a sure sign of schitzophrenia... :-) I'm wrong. Some settings *are* kept in the fhandler objects (audiobits_, audiofreq_, audiochannels_, and audioformat_). So CGF is right - archetypes will probably be the right solution here... However, we still need reference counting

Re: [RFC] Reference counting on Audio objects for /dev/dsp

2004-07-15 Thread Christopher Faylor
On Thu, Jul 15, 2004 at 04:28:56PM -0400, Igor Pechtchanski wrote: On Thu, 15 Jul 2004, Christopher Faylor wrote: On Thu, Jul 15, 2004 at 02:57:17PM -0400, Igor Pechtchanski wrote: 2) The other problem is that I find it sort of odd to see the dec() method performing a deletion. Couldn't