Skip to content

Commit

Permalink
32/64 bit time corrections
Browse files Browse the repository at this point in the history
struct timerequest is now frozen at 32 bits and uses struct timeval32.
Copy fields manually.
  • Loading branch information
deadwood committed Dec 26, 2022
1 parent ea113fe commit b1e2d24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions aminet/comm/term/term/Extras/Source/Accountant.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ AccountantEntry(VOID)
/* Start waiting again */

TimeRequest->tr_node.io_Command = TR_ADDREQUEST;
TimeRequest->tr_time = TimeVal;
TimeRequest->tr_time.tv_secs = TimeVal.tv_secs;
TimeRequest->tr_time.tv_micro = TimeVal.tv_micro;

SendIO((struct IORequest *)TimeRequest);

Expand Down Expand Up @@ -193,7 +194,8 @@ AccountantEntry(VOID)
/* Start waiting */

TimeRequest->tr_node.io_Command = TR_ADDREQUEST;
TimeRequest->tr_time = Message->Time;
TimeRequest->tr_time.tv_secs = Message->Time.tv_secs;
TimeRequest->tr_time.tv_micro = Message->Time.tv_micro;

SendIO((struct IORequest *)TimeRequest);

Expand Down
3 changes: 2 additions & 1 deletion aminet/comm/term/term/Extras/Source/Sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,8 @@ PlaySound(struct SoundInfo *SoundInfo)
if(!OpenDevice(TIMERNAME,UNIT_VBLANK,(struct IORequest *)SoundTimeRequest,0))
{
SoundTimeRequest->tr_node.io_Command = TR_ADDREQUEST;
SoundTimeRequest->tr_time = SoundInfo->SoundTime;
SoundTimeRequest->tr_time.tv_secs = SoundInfo->SoundTime.tv_secs;
SoundTimeRequest->tr_time.tv_micro = SoundInfo->SoundTime.tv_micro;

SetSignal(0,PORTMASK(SoundTimePort));

Expand Down

0 comments on commit b1e2d24

Please sign in to comment.