Skip site navigation (1)Skip section navigation (2)
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>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000dc2e4c05ec33947d
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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=C3=A1bado, 29/10/20=
22
=C3=A0(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] =3D=3D "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
>
>
>

--=20
Nuno Teixeira
FreeBSD Committer (ports)

--000000000000dc2e4c05ec33947d
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"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 lib=
rary or</div><div>something so that morse could use it without duplicating =
code?</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"g=
mail_attr">Hans Petter Selasky &lt;<a href=3D"mailto:hps@selasky.org">hps@s=
elasky.org</a>&gt; escreveu no dia s=C3=A1bado, 29/10/2022 =C3=A0(s) 19:22:=
<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 10/29/22 20:=
18, Nuno Teixeira wrote:<br>
&gt;&gt; Technically you could symlink the two - yes.<br>
&gt; <br>
&gt; Can&#39;t understand how, what do I missing?<br>
&gt; <br>
<br>
In the main() routine, the name of the program name is passed.<br>
<br>
Then you just check if argv[0] =3D=3D &quot;morse&quot; and invoke main_mor=
se() <br>
instead, if you see. Of course you need to write main_morse() first, but <b=
r>
you can re-use all the dsp code in there.<br>
<br>
--HPS<br>
<br>
<br>
</blockquote></div><br clear=3D"all"><br>-- <br><div dir=3D"ltr" class=3D"g=
mail_signature"><div dir=3D"ltr"><span style=3D"color:rgb(102,102,102)">Nun=
o Teixeira<br>FreeBSD Committer (ports)</span></div></div>

--000000000000dc2e4c05ec33947d--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UKsF4FA-1KMHhXrv0NQ2PYSASMmU7OhZqgMb6b3gQ4qmQ>