engine: added audio backend print to s_info command

This commit is contained in:
SNMetamorph
2022-08-20 13:59:14 +04:00
committed by Alibek Omarov
parent d3437c70bd
commit 9f9141823a
5 changed files with 12 additions and 8 deletions

View File

@@ -185,12 +185,12 @@ qboolean SNDDMA_Init( void )
}
dma.buffer = Z_Malloc( samples * 2 ); //allocate pcm frame buffer
dma.samplepos = 0;
dma.samples = samples;
dma.format.width = 2;
dma.initialized = 1;
dma.backendName = "ALSA";
snd_pcm_prepare( s_alsa.pcm_handle );
snd_pcm_writei( s_alsa.pcm_handle, dma.buffer, 2 * s_alsa.period_size );
snd_pcm_start( s_alsa.pcm_handle );