misc/openalbridge/openalbridge.c
changeset 3361 cfc6cd502f85
parent 3360 717b4e46e855
child 3362 8d3b4d19ce27
equal deleted inserted replaced
3360:717b4e46e855 3361:cfc6cd502f85
    38 
    38 
    39     ALboolean openal_init(ALboolean usehardware, int memorysize) {	
    39     ALboolean openal_init(ALboolean usehardware, int memorysize) {	
    40         /*Initialize an OpenAL contex and allocate memory space for data and buffers*/
    40         /*Initialize an OpenAL contex and allocate memory space for data and buffers*/
    41         ALCcontext *context;
    41         ALCcontext *context;
    42         ALCdevice *device;
    42         ALCdevice *device;
    43         const ALCchar *default_device;
       
    44         
    43         
    45         prog = "OpenAL subsystem";
    44         prog = "OpenAL subsystem";
    46 
    45 
    47 	// set the memory dimentsion and the increment width when reallocating
    46 	// set the memory dimentsion and the increment width when reallocating
    48         if (memorysize <= 0)
    47         if (memorysize <= 0)
   128         
   127         
   129         openalReady = AL_FALSE;
   128         openalReady = AL_FALSE;
   130         
   129         
   131         err_msg("(%s) INFO - closed", prog);
   130         err_msg("(%s) INFO - closed", prog);
   132         
   131         
   133         return AL_TRUE;
   132         return;
   134     }
   133     }
   135     
   134     
   136     ALboolean openal_ready(void) {
   135     ALboolean openal_ready(void) {
   137         return openalReady;
   136         return openalReady;
   138     }
   137     }