Mercurial > sdl-ios-xcode
comparison src/audio/esd/SDL_esdaudio.c @ 3581:15eea7a1fa97
Implemented SDL_setenv(), moved SDL_putenv() to compat.
Fixes Bugzilla #779.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Wed, 16 Dec 2009 10:59:51 +0000 |
parents | dc1eb82ffdaa |
children | f7b03b6838cb |
comparison
equal
deleted
inserted
replaced
3580:951dd6a5d1a2 | 3581:15eea7a1fa97 |
---|---|
319 return 0; | 319 return 0; |
320 } else { | 320 } else { |
321 int connection = 0; | 321 int connection = 0; |
322 | 322 |
323 /* Don't start ESD if it's not running */ | 323 /* Don't start ESD if it's not running */ |
324 if (SDL_getenv("ESD_NO_SPAWN") == NULL) { | 324 SDL_setenv("ESD_NO_SPAWN", "1", 0); |
325 SDL_putenv("ESD_NO_SPAWN=1"); | |
326 } | |
327 | 325 |
328 connection = SDL_NAME(esd_open_sound) (NULL); | 326 connection = SDL_NAME(esd_open_sound) (NULL); |
329 if (connection < 0) { | 327 if (connection < 0) { |
330 UnloadESDLibrary(); | 328 UnloadESDLibrary(); |
331 SDL_SetError("ESD: esd_open_sound failed (no audio server?)"); | 329 SDL_SetError("ESD: esd_open_sound failed (no audio server?)"); |