Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Sound in linux (Lack of standards in Linux is a problem but there are some near-standards)
Re: Sound in linux [message #44053 is a reply to message #44031] Fri, 19 December 2014 14:45 Go to previous messageGo to previous message
rainbowsally is currently offline  rainbowsally
Messages: 29
Registered: December 2014
Promising Member
Hi Honza.

Quote:

There is no need for an invisible window. Just remember the pid returned from fork and call kill on it after the timeout is exceeded. In GUI apps, you can do this easily using SetTimeCallback().


Technically, you're right, but getting GUIs and the old terminal based linuxes is not so straight forward.

For example how could you get the PID without "waitpid()" or reading a return string from a system() call.

The calling app would hang so you'd never get a chance to shut it down.

A system call to an intermediate shell utility similar to kshell<N> is a much better alternative for a simple dialog bell of some sort.

Either it runs or it doesn't.

But I see now that the "invisible window" thing wouldn't work either. Not sure how this "shell" utility could be integrated into UPP. Maybe run the fork in another thread. Then I suppose that thread's binary image would be all that gets copied to memory.

It's going to take me a while to get up to speed here.

Thanks for UPP and this forum. Smile

-rs
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Raster::Line segfaults ... sometimes.
Next Topic: Adding network proxy support to U++
Goto Forum:
  


Current Time: Sat May 11 14:25:40 CEST 2024

Total time taken to generate the page: 0.02786 seconds