mirror of
https://github.com/holub/mame
synced 2025-05-21 13:18:56 +03:00
Fixes for OS X PowerPC compile [R. Belmont]
This commit is contained in:
parent
d6a9271feb
commit
6e7f2af055
@ -152,7 +152,7 @@ int audit_samples(core_options *options, const game_driver *gamedrv, audit_recor
|
||||
int sampnum;
|
||||
|
||||
/* count the number of sample records attached to this driver */
|
||||
const device_config_sound_interface *sound;
|
||||
const device_config_sound_interface *sound = NULL;
|
||||
for (bool gotone = config->devicelist.first(sound); gotone; gotone = sound->next(sound))
|
||||
if (sound->devconfig().type() == SOUND_SAMPLES)
|
||||
{
|
||||
|
@ -622,7 +622,7 @@ int cli_info_listsamples(core_options *options, const char *gamename)
|
||||
if (mame_strwildcmp(gamename, drivers[drvindex]->name) == 0)
|
||||
{
|
||||
machine_config *config = machine_config_alloc(drivers[drvindex]->machine_config);
|
||||
const device_config_sound_interface *sound;
|
||||
const device_config_sound_interface *sound = NULL;
|
||||
|
||||
/* find samples interfaces */
|
||||
for (bool gotone = config->devicelist.first(sound); gotone; gotone = sound->next(sound))
|
||||
|
@ -875,7 +875,7 @@ static TIMER_CALLBACK( delayed_6502_sound_w )
|
||||
|
||||
void atarigen_set_vol(running_machine *machine, int volume, device_type type)
|
||||
{
|
||||
device_sound_interface *sound;
|
||||
device_sound_interface *sound = NULL;
|
||||
for (bool gotone = machine->devicelist.first(sound); gotone; gotone = sound->next(sound))
|
||||
if (sound->device().type() == type)
|
||||
sound_set_output_gain(*sound, ALL_OUTPUTS, volume / 100.0);
|
||||
|
Loading…
Reference in New Issue
Block a user