Previous 15994 Revisions Next

r7079 Wednesday 20th January, 2010 at 14:09:56 UTC by R. Belmont
Fix Linux G++ compile error.
[src/mess/audio]mac.c

src/mess/audio/mac.c
r7078r7079
6868   INT16 last_val = 0;
6969   stream_sample_t *buffer = outputs[0];
7070   mac_sound *token = get_token(device);
71   mac_state *mac = (mac_state *)device->machine->driver_data;
7172
73   if ((mac->mac_model == MODEL_MAC_PORTABLE) || (mac->mac_model == MODEL_MAC_PB100))
74   {
75      memset(buffer, 0, samples * sizeof(*buffer));
76      return;
77   }
78
7279   /* if we're not enabled, just fill with 0 */
7380   if (device->machine->sample_rate == 0)
7481   {
r7078r7079
104111   mac_sound *token = get_token(device);
105112
106113   memset(token, 0, sizeof(*token));
114
107115   token->snd_cache = auto_alloc_array(device->machine, UINT8, SND_CACHE_SIZE);
108116   token->mac_stream = stream_create(device, 0, 1, MAC_SAMPLE_RATE, 0, mac_sound_update);
109117}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team