mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2025-02-19 22:02:41 +01:00
Do sound decoding
This commit is contained in:
parent
22fad7d05b
commit
1a9c4b8c1d
@ -853,10 +853,21 @@ bool Network::DecodeUpdate(C64Display *display, uint8 *js, MOS6581 *dst)
|
|||||||
switch(p->type)
|
switch(p->type)
|
||||||
{
|
{
|
||||||
case SOUND_UPDATE:
|
case SOUND_UPDATE:
|
||||||
|
{
|
||||||
/* No sound updates _to_ the master */
|
/* No sound updates _to_ the master */
|
||||||
if (TheC64->network_connection_type == MASTER)
|
if (TheC64->network_connection_type == MASTER)
|
||||||
break;
|
break;
|
||||||
break;
|
NetworkUpdateSound *snd = (NetworkUpdateSound *)p->data;
|
||||||
|
NetworkUpdateSoundInfo *info = (NetworkUpdateSoundInfo *)snd->info;
|
||||||
|
|
||||||
|
printf("Enqueue sounds: %d\n", snd->n_items);
|
||||||
|
for (unsigned int i = 0; i < snd->n_items; i++)
|
||||||
|
{
|
||||||
|
NetworkUpdateSoundInfo *cur = &info[i];
|
||||||
|
|
||||||
|
this->EnqueueSound(cur->delay_cycles, cur->adr, cur->val);
|
||||||
|
}
|
||||||
|
} break;
|
||||||
case DISPLAY_UPDATE_RAW:
|
case DISPLAY_UPDATE_RAW:
|
||||||
case DISPLAY_UPDATE_RLE:
|
case DISPLAY_UPDATE_RLE:
|
||||||
case DISPLAY_UPDATE_DIFF:
|
case DISPLAY_UPDATE_DIFF:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user