openalbridge/openalbridge.c
changeset 2437 10e4b5fc0d93
parent 2421 a4b039ee2eb0
child 2443 fececcbc2189
equal deleted inserted replaced
2436:246ef6271470 2437:10e4b5fc0d93
    85                         errno = EPERM;                
    85                         errno = EPERM;                
    86                         err_ret("(%s) WARN - OpenAL already initialized", prog);
    86                         err_ret("(%s) WARN - OpenAL already initialized", prog);
    87                         return AL_FALSE;
    87                         return AL_FALSE;
    88                 }
    88                 }
    89                 
    89                 
    90                 if (usehardware = AL_TRUE)
    90                 if (usehardware == AL_TRUE)
    91                         device = alcOpenDevice(NULL);
    91                         device = alcOpenDevice(NULL);
    92                 else
    92                 else
    93                         device = alcOpenDevice("Generic Software");
    93                         device = alcOpenDevice("Generic Software");
    94                 
    94                 
    95                 if (device == NULL) {
    95                 if (device == NULL) {