On 31/01/16 05:11, David Rowe wrote:
> Hello Stuart,
>
> If you include freedv_api_internal.h you will have access to freedv
> states which include codec 2.
>
> Thinking about the use case .... I imagine a user with be either
> manipulating menus OR running freedv. So perhaps it's OK to hijack the
> codec 2 states (and the speaker driver) for the duration of the menu
> session and you don't need to worry about mixing simultaneous audio?
Ahh okay, so there's a way to get in via the back door as it were.
The main area where the mixing takes place is when switching modes
between Analogue, FreeDV 1600 and Tone mode, which is done by pressing
the SELECT and BACK buttons momentarily.
There's a short beep as an acknowledgement that you've hit the button,
and an announcement is made after a second or so. This is because when
navigating the menu, you'll likely be counting the beeps to keep track
of where you are when navigating quickly, and the announcements after
the short pause help prevent people from getting lost if they lose count.
So if you think you might've hit that button one too many times from
analogue mode, or accidentally hit BACK instead, you'd hear:
dah-dadadah-dadit-dit → "TONE"
instead of:
didadadadah-dadidididit-dadadadadah-dadadadadah → "1600"
or possibly:
didah-dadit-didah → "ANA"
Handy, because apart from that, "TONE" and "1600" are indistinguishable,
as both receive a FreeDV signal and decode it, but only one transmits
your voice (the other transmits a tone for testing purposes). In the
future, I hope a "700B" mode will join them.
As for sound mixing, it is possible that someone might be in analogue
mode, hear a FreeDV transmission, hit SELECT, and straight away the
FreeDV decoder starts processing.
After a second, there'll be a situation where a voice prompt will
attempt to play whilst a FreeDV transmission is received. I could opt
to skip the voice transmission and/or revert to a morse transmission in
that case.
> BTW could you pls point me at some instructions for the current menu
> system? I built the code last week but wasn't sure what to do next.
There's some notes in the place where I keep the binary builds.
https://stuartl.longlandclan.id.au/freedv/sm1000/
--
Stuart Longland (aka Redhatter, VK4MSL)
I haven't lost my mind...
...it's backed up on a tape somewhere.
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2