Fixes for OS X PowerPC compile [R. Belmont]

This commit is contained in:
R. Belmont 2010-06-17 00:28:54 +00:00
parent d6a9271feb
commit 6e7f2af055
3 changed files with 3 additions and 3 deletions

View File

@ -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)
{

View File

@ -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))

View File

@ -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);