forked from 0ad/0ad
janwas
a34b759720
. timer, config: fix definition of ALLOW_RDTSC . add movsx_be64 (for whirlpool), revise implementation, move to byte_order, add test . MAX -> std::max, remove those macros . add timestamp to system_info as requested by philip This was SVN commit r5050.
31 lines
782 B
C++
31 lines
782 B
C++
/**
|
|
* =========================================================================
|
|
* File : snd.cpp
|
|
* Project : 0 A.D.
|
|
* Description : sound card detection.
|
|
* =========================================================================
|
|
*/
|
|
|
|
// license: GPL; see lib/license.txt
|
|
|
|
#include "precompiled.h"
|
|
#include "snd.h"
|
|
|
|
|
|
char snd_card[SND_CARD_LEN];
|
|
char snd_drv_ver[SND_DRV_VER_LEN];
|
|
|
|
void snd_detect()
|
|
{
|
|
#if OS_WIN
|
|
extern LibError win_get_snd_info();
|
|
win_get_snd_info();
|
|
#else
|
|
// At least reset the values for unhandled platforms. Should perhaps do
|
|
// something like storing the OpenAL version or similar.
|
|
debug_assert(SND_CARD_LEN >= 8 && SND_DRV_VER_LEN >= 8); // protect strcpy
|
|
SAFE_STRCPY(snd_card, "Unknown");
|
|
SAFE_STRCPY(snd_drv_ver, "Unknown");
|
|
#endif
|
|
}
|