diff options
-rw-r--r-- | Alc/ALc.c | 2 | ||||
-rw-r--r-- | Alc/alsa.c | 1 | ||||
-rw-r--r-- | Alc/dsound.c | 2 | ||||
-rw-r--r-- | Alc/oss.c | 2 | ||||
-rw-r--r-- | Alc/wave.c | 1 |
5 files changed, 2 insertions, 6 deletions
@@ -1156,6 +1156,8 @@ ALCAPI ALCdevice* ALCAPIENTRY alcOpenDevice(const ALCchar *deviceName) if((ALint)device->UpdateFreq <= 0) device->UpdateFreq = 8192; + device->MaxNoOfSources = 256; + // Find a playback device to open for(i = 0;BackendList[i].Init;i++) { @@ -413,7 +413,6 @@ open_alsa: psnd_pcm_hw_params_free(p); - device->MaxNoOfSources = 256; device->UpdateFreq = bufferSizeInFrames; data->size = psnd_pcm_frames_to_bytes(data->pcmHandle, device->UpdateFreq); diff --git a/Alc/dsound.c b/Alc/dsound.c index 60977df7..d513fb73 100644 --- a/Alc/dsound.c +++ b/Alc/dsound.c @@ -182,9 +182,7 @@ static ALCboolean DSoundOpenPlayback(ALCdevice *device, const ALCchar *deviceNam if(SUCCEEDED(hr)) hr = IDirectSoundBuffer_Play(pData->DSsbuffer, 0, 0, DSBPLAY_LOOPING); - device->MaxNoOfSources = 256; device->ExtraData = pData; - pData->thread = StartThread(DSoundProc, device); if(!pData->thread) hr = E_FAIL; @@ -242,8 +242,6 @@ static ALCboolean oss_open_playback(ALCdevice *device, const ALCchar *deviceName data->data_size = device->UpdateFreq * device->FrameSize; data->mix_data = calloc(1, data->data_size); - device->MaxNoOfSources = 256; - device->ExtraData = data; data->thread = StartThread(OSSProc, device); if(data->thread == NULL) @@ -212,7 +212,6 @@ static ALCboolean wave_open_playback(ALCdevice *device, const ALCchar *deviceNam data->DataStart = ftell(data->f); - device->MaxNoOfSources = 256; device->UpdateFreq = max(device->UpdateFreq, 2048); data->size = device->UpdateFreq; |