Thanks for reporting the issue!
Can you tell me which Linux distro you are running?
Also a small code snippet of your app would help immensely.
I'm using ubuntu 9.04. I have a sort of workaround for this issue. before i exits the application i use the vudei function 'seek(0)' and it's ok.
If i dont use the 'seek(0)' command, no other program can use sound in the system.