comparison Alc/ALc.c @ 14:63312ec4a2bf

limit to 16bit mono for now.
author Robert McIntyre <rlm@mit.edu>
date Mon, 31 Oct 2011 08:01:08 -0700
parents 99df34265b40
children
comparison
equal deleted inserted replaced
13:92b416b4e027 14:63312ec4a2bf
2380 if(device->Frequency < 8000) 2380 if(device->Frequency < 8000)
2381 device->Frequency = 8000; 2381 device->Frequency = 8000;
2382 2382
2383 if(ConfigValueExists(NULL, "format")) 2383 if(ConfigValueExists(NULL, "format"))
2384 device->Flags |= DEVICE_CHANNELS_REQUEST; 2384 device->Flags |= DEVICE_CHANNELS_REQUEST;
2385 fmt = GetConfigValue(NULL, "format", "AL_FORMAT_STEREO16"); 2385 //fmt = GetConfigValue(NULL, "format", "AL_FORMAT_STEREO16");
2386 //RLM: audio-send only supports 16 bit mono output for now,
2387 //pending bug fixes.
2388 fmt = "AL_FORMAT_MONO16";
2386 GetFormatFromString(fmt, &device->FmtChans, &device->FmtType); 2389 GetFormatFromString(fmt, &device->FmtChans, &device->FmtType);
2387 2390
2388 device->NumUpdates = GetConfigValueInt(NULL, "periods", 4); 2391 device->NumUpdates = GetConfigValueInt(NULL, "periods", 4);
2389 if(device->NumUpdates < 2) 2392 if(device->NumUpdates < 2)
2390 device->NumUpdates = 4; 2393 device->NumUpdates = 4;