Date: Sat, 29 Oct 2022 23:05:57 +0100 From: Nuno Teixeira <eduardo@freebsd.org> To: Hans Petter Selasky <hps@selasky.org> Cc: Diane Bruce <db@db.net>, FreeBSD CURRENT <freebsd-current@freebsd.org> Subject: Re: morse(6) sound Message-ID: <CAFDf7UKsF4FA-1KMHhXrv0NQ2PYSASMmU7OhZqgMb6b3gQ4qmQ@mail.gmail.com> In-Reply-To: <eb1035b5-0504-ffc5-eec3-91afc4bdd5bc@selasky.org> References: <CAFDf7UJ5-m7daqB3vD4%2B07rDCnvGkQwp3HkmcY_7qtukFLzY1Q@mail.gmail.com> <Y10kBZmAtugFNXBU@night.local> <CAFDf7ULRVFmRUvspqUSwJUo1ThujrvKBJNU2LAR21psP%2Bdv4vg@mail.gmail.com> <106b05da-be44-ef6f-e2c8-0888ee71ed88@selasky.org> <CAFDf7U%2BFgLkBnE9XVbmKYUS3XSXwThaA6jV-wCsYv0V5ZZGh5A@mail.gmail.com> <10ff4875-c6bd-88a0-bf0d-7ae52106131e@selasky.org> <CAFDf7UJuyvLvOxZLQWBVbFSF_qX6pt5QTmUaUdqsH4OOHrdVoQ@mail.gmail.com> <eb1035b5-0504-ffc5-eec3-91afc4bdd5bc@selasky.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] 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) [-- Attachment #2 --] <div dir="ltr"><div>Considering that morse could use same beep dsp code, instead of</div><div>repeating dsp code inside morse, why not use a dsp library or</div><div>something so that morse could use it without duplicating code?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Hans Petter Selasky <<a href="mailto:hps@selasky.org">hps@selasky.org</a>> escreveu no dia sábado, 29/10/2022 à(s) 19:22:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 10/29/22 20:18, Nuno Teixeira wrote:<br> >> Technically you could symlink the two - yes.<br> > <br> > Can't understand how, what do I missing?<br> > <br> <br> In the main() routine, the name of the program name is passed.<br> <br> Then you just check if argv[0] == "morse" and invoke main_morse() <br> instead, if you see. Of course you need to write main_morse() first, but <br> you can re-use all the dsp code in there.<br> <br> --HPS<br> <br> <br> </blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><span style="color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Committer (ports)</span></div></div>help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UKsF4FA-1KMHhXrv0NQ2PYSASMmU7OhZqgMb6b3gQ4qmQ>
