On 4/5/06, ram kumar.c <ram_ngp_sathy at yahoo.co.in> wrote: > im ram from sathy(bit college) in BC or TC there is header file called dos.h > which includes functions like delay(),sound(),nosound() etc.. this header > file is not in linux compiler -cc or -gcc . i did not tried in solaris is > there is any header file of similar function in solaris > ram
hmm.. this is a very common shock to most new linux/unix/solaris users coming from the dos world... there are a lot of things which do not work under un*x .. for eg, there is no clrscr(), no conio.h file itself (!!) and many other functions... however, you can always open the sound card with open(/dev/sound) and write whatever junk you want to it... (and hope it doesnt break your card)... the other solution to get sound working in your application is to use some of the popular sound libraries to do all the hard work for you. alsa, sdl and others can help you out... or if you know enough wave functions, you can write them yourself.. http://www.freeprogrammingresources.com/soundlib.html has a few other resources. hth, Ananth