mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-10 21:55:11 +01:00
Do sound transfer at the correct time
This commit is contained in:
parent
8607e7827d
commit
334d729bf1
@ -537,12 +537,13 @@ void C64::network_vblank()
|
||||
* if this is the master or not) */
|
||||
if (this->network_connection_type == MASTER)
|
||||
{
|
||||
remote->FlushSound();
|
||||
/* Skip this frame if the data rate is too high */
|
||||
if (remote->ThrottleTraffic())
|
||||
has_throttled = true;
|
||||
else
|
||||
else {
|
||||
remote->EncodeDisplay(master, remote->GetScreen());
|
||||
remote->FlushSound();
|
||||
}
|
||||
}
|
||||
|
||||
char *msg = TheDisplay->GetTextMessage();
|
||||
|
@ -424,7 +424,6 @@ void Network::RegisterSidWrite(uint32 linecnt, uint8 adr, uint8 val)
|
||||
{
|
||||
this->EnqueueSound(linecnt - this->sound_last_cycles, adr, val);
|
||||
|
||||
printf("Enqueuing write: %04d:%02x:%02x\n", linecnt - this->sound_last_cycles, adr, val);
|
||||
/* Update the cycle counter */
|
||||
sound_last_cycles = linecnt;
|
||||
bytes += sizeof(NetworkUpdateSound);
|
||||
|
Loading…
Reference in New Issue
Block a user