Mercurial > audio-send
changeset 14:63312ec4a2bf
limit to 16bit mono for now.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Mon, 31 Oct 2011 08:01:08 -0700 |
parents | 92b416b4e027 |
children | 19ff95c69cf5 |
files | Alc/ALc.c Alc/backends/send.c |
diffstat | 2 files changed, 4 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
1.1 --- a/Alc/ALc.c Mon Oct 31 07:44:02 2011 -0700 1.2 +++ b/Alc/ALc.c Mon Oct 31 08:01:08 2011 -0700 1.3 @@ -2382,7 +2382,10 @@ 1.4 1.5 if(ConfigValueExists(NULL, "format")) 1.6 device->Flags |= DEVICE_CHANNELS_REQUEST; 1.7 - fmt = GetConfigValue(NULL, "format", "AL_FORMAT_STEREO16"); 1.8 + //fmt = GetConfigValue(NULL, "format", "AL_FORMAT_STEREO16"); 1.9 + //RLM: audio-send only supports 16 bit mono output for now, 1.10 + //pending bug fixes. 1.11 + fmt = "AL_FORMAT_MONO16"; 1.12 GetFormatFromString(fmt, &device->FmtChans, &device->FmtType); 1.13 1.14 device->NumUpdates = GetConfigValueInt(NULL, "periods", 4);
2.1 --- a/Alc/backends/send.c Mon Oct 31 07:44:02 2011 -0700 2.2 +++ b/Alc/backends/send.c Mon Oct 31 08:01:08 2011 -0700 2.3 @@ -475,12 +475,6 @@ 2.4 2.5 static ALCboolean send_reset_playback(ALCdevice *device) 2.6 { 2.7 - //send_data *data = (send_data*)device->ExtraData; 2.8 - //ALuint channels=0, bits=0; 2.9 - //device->FmtType = DevFmtShort; 2.10 - //bits = BytesFromDevFmt(device->FmtType) * 8; 2.11 - //channels = ChannelsFromDevFmt(device->FmtChans); 2.12 - //data->size = device->UpdateSize * channels * bits / 8; 2.13 SetDefaultWFXChannelOrder(device); 2.14 return ALC_TRUE; 2.15 }