📄 log.txt
字号:
since the left mouse button was the only way to push to talk. I added
logic in CONNECT.C that permits the space bar to be used to toggle
push to talk, just as in the Unix mike program. You can cycle between
open connections with Ctrl+Tab and use the space bar to select any set
to which you wish to transmit.
Mouseless users who push to talk with the space bar don't have the
benefit of the cursor change to indicate which connections are
transmitting. I added a "Transmitting" status indicator in the
connection window which appears whenever live audio is being sent to
the window.
If you make a .WAV sound file with the (nonstandard) sampling rate of
8000 samples per second, it is now played correctly by READWAVE.C, not
forced to the closest standard sampling rate of 11025 samples per
second. Conversion of stereo .WAV files into mono is still performed
for 8000 sample per second files. If the user has the ability to make
8000 sample/sec .WAVs, this reduces file size, improves sound quality,
and eliminates CPU overhead when sending such files. .AU files remain
the fastest, since they're already mu-law encoded.
14 September 1995
Update release 5.1c.
20 September 1995
Began work on answering machine. Defined structure for data in file,
added a new ANSWER.C module with a function to save a sound buffer
in an answer file in that format.
25 September 1995
Modified the new connection dialogue handler to allow numeric IP
addresses which can't be resolved into host names. If the host
name lookup fails, the dotted IP number from inet_ntoa is used as
the host name.
Good ole' Trumpet Winsock returns an error status if gethostname()
is called with a buffer too small to hold the entire name, as opposed
to truncating it as Unix does. I changed the two calls in CONNECT.C
to get the host name in a temporary buffer, then copy as much as will
fit into the sendinghost field of the sound buffer.
Added the ability to set the multicast scope with a new item in the
Options/Connection dialogue. This item is enabled only if the IP
address is a valid multicast group number.
Bad ole' Windows 95 WINSOCK returns a WSAEFAULT error if you pass a
single byte argument for the IP_MULTICAST_TTL setsockopt() call. This
is incompatible with all Unix documentation I have seen. Trumpet
works correctly with the single byte argument, and accepts the 2
byte short required by Windows 95. Given the likelihood there's some
other WINSOCK that requires a one byte argument, in goes another
Options/Workaround/Network item: "Multicast TTL Argument Is char" which
does it the Unix way, not as required by Windows 95.
26 September 1995
Added a new Connection/Multicast Groups... dialogue which allows
adding and dropping membership in multicast groups. Groups can be
specified by DNS-resolvable name or by IP address. A check box
controls multicast loop-back of locally sent packets to groups
in which this host has added membership. The loopback box is disabled
on systems (such as Windows 95) which do not implement the IP_MULTICAST_LOOP
setsockopt() option.
1 October 1995
Discovered the multicast tear-down code in the WM_DESTROY message handler
of FRAME.C wasn't testing for a NULL multiName[], resulting in bad
GlobalFree() calls when we failed to initialise a multicast port. Fixed.
FRAME.C wasn't killing the main timeout timer at WM_DESTROY. Fixed.
If the attempt to drop a multicast membership at WM_DESTROY time failed,
a message box was displayed as a child window of the one frame being
destroyed. This is apparently (yet another of the billions and
billgatesillions) undocumented no-no--in any case, if you do it, you
get an "err USER: Attempt to activate destroyed window" at the
time the WM_DESTROY returns. I changed the parent of the message box
in this case to be NULL and it seems to be happy now. (In FRAME.C).
Finished implementation of the answering machine, ANSWER.C. I'll probably
be back before long to make it more message-oriented (select message from
a list box of sites and times, individually delete messages, etc.) but at
least it now has basic functionality.
2 October 1995
Added keyboard accelerator (CTRL+T) for answering machine, and a new
connection menu item that lets you toggle whether incoming messages are
recorded without having to pop up the answering machine dialogue. Fixed
a bug in which checking or unchecking the record incoming messages box
in the answering machine dialogue didn't take effect until you closed
the dialogue; now it takes effect immediately.
Added code to overwrite the 16 byte session key exchanged via PGP before
closing the file on disc. Unfortunately, since we can't transmit and
receive the with a pipe, as we do on Unix, there's still a window while
PGP is running during which the session key is visible, but at least this
keeps it from lying around in unallocated disc space for an indeterminate
time.
If no answering machine message file was configured, the answering machine
dialogue in ANSWER.C called scanMessageFile anyway. Unfortunately, that
routine didn't test for answerFile being NULL and proceeded to stomp all
over memory. Fixed in ANSWER.C scanMessageFile().
Moved all translatable strings and formats from the .C modules into the
string table of the resource file, using the rstring(), rfilter() functions
and the Format() macro as intermediaries. Strings that aren't to be translated,
such as fopen() mode strings, formats that contain only a field editing
code, etc. continue to appear as strings in the source code. Banishing these
strings to the resource file reclaimed almost 4K of data space, enough to give
us some breathing room should it prove necessary to introduce another static
full-size sound buffer for some reason.
3 October 1995
The enabling and disabling of buttons in the answering machine was befuddling
Windows' dialogue box keyboard accelerator logic. I added code at the end of
a message replay to restore the input focus to the button last pressed or
its logical successor if that button has become disabled as a result of the
message we just completed.
Keyboard accelerators in the answering machine were less than optimally
chosen due to renaming of buttons during its development. I rationalised
them so the most commonly used buttons have the most obvious keyboard
shortcuts.
Pressing the Close button in the answering machine gave a debug kernel
"err: window destroyed in window callback". Why, I know not. It uses
the standard code for modeless dialogues right out of Petzold, which
identical code works perfectly in the propeller-head modeless dialogue.
Changing the DestroyWindow() to a PostMessage of WM_CLOSE to ourself
made the message go away. I changed the propeller-head dialogue in
DIALOGS.C to use the same logic.
Several modal dialogues needlessly included the system menu in their title
bar. Eliminated. (The modal dialogues such as the answering machine and
propeller-head continue to display the system menu.)
Installed help buttons in all the dialogues, linked to the topic
in the help file which describes the dialogue.
Moved the names of our help file and the base Windows help file into
the resource string table.
The Create Key menu item was missing the "..." that indicates it pops
up a dialogue. Fixed.
The About dialogue was also missing the "...". Fixed.
I removed the "How to use help" menu item, which has fallen out
of fashion.
Changed "Help/Search..." to "Help/Search for Help on..." as used in current
Microsoft applications.
4 October 1995
Completed moving all section and item titles for the main .INI file and
saved connection files to the string table in the resource file. Whether
these should be translated isn't clear: a normal user won't ever examine
these files and translating renders them incompatible between different
language editions. But the saving in data segment size by elminiating
duplication of the section titles alone justifies the work.
Added two new string constants kS0[1] = "0" and kS1 = "1" to FRAME.C and
changed all references to the explicit constants in profile file I/O to
use them. This eliminates redundant string constants in the data space.
Found a few string constants I'd missed somehow in READWAVE.C. Banished.
Fixed the answering machine to update the host name when
a definitive name (one not displayed in parentheses) is seen, replacing
any previously displayed name.
Added help butttons to all the file open dialogues, linked to the
appropriate topics in the help file.
Added a pleasant default ring file. I haven't found a suitable (well-recorded
and public domain) telephone bell, so I decided to pioneer non-irritating
notification of an incoming call with this wind chime derived sound. The
original appeared on the CD-ROM (N
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -