mirror of
https://git.code.sf.net/p/quake/nuq
synced 2025-03-13 06:12:25 +00:00
clean up shm->samples setting
This commit is contained in:
parent
d6544ea871
commit
d68561ccad
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ qboolean SNDDMA_Init(void)
|
||||||
shm->submission_chunk=frag_size; // don't mix less than this #
|
shm->submission_chunk=frag_size; // don't mix less than this #
|
||||||
shm->samplepos=0; // in mono samples
|
shm->samplepos=0; // in mono samples
|
||||||
shm->samplebits=setup.format.format==SND_PCM_SFMT_S16_LE?16:8;
|
shm->samplebits=setup.format.format==SND_PCM_SFMT_S16_LE?16:8;
|
||||||
shm->samples=setup.buffer_size*frame_size/(shm->samplebits/8); // mono samples in buffer
|
shm->samples=setup.buffer_size*shm->channels; // mono samples in buffer
|
||||||
shm->speed=setup.format.rate;
|
shm->speed=setup.format.rate;
|
||||||
shm->buffer=(unsigned char*)mmap_data;
|
shm->buffer=(unsigned char*)mmap_data;
|
||||||
Con_Printf("%5d stereo\n", shm->channels - 1);
|
Con_Printf("%5d stereo\n", shm->channels - 1);
|
||||||
|
|
Loading…
Reference in a new issue