Re: morse(6) sound
- Reply: Hans Petter Selasky : "Re: morse(6) sound"
- In reply to: Hans Petter Selasky : "Re: morse(6) sound"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 29 Oct 2022 22:05:57 UTC
Considering that morse could use same beep dsp code, instead of repeating dsp code inside morse, why not use a dsp library or something so that morse could use it without duplicating code? Hans Petter Selasky <hps@selasky.org> escreveu no dia sábado, 29/10/2022 à(s) 19:22: > On 10/29/22 20:18, Nuno Teixeira wrote: > >> Technically you could symlink the two - yes. > > > > Can't understand how, what do I missing? > > > > In the main() routine, the name of the program name is passed. > > Then you just check if argv[0] == "morse" and invoke main_morse() > instead, if you see. Of course you need to write main_morse() first, but > you can re-use all the dsp code in there. > > --HPS > > > -- Nuno Teixeira FreeBSD Committer (ports)