Ring Daemon 16.0.0
Loading...
Searching...
No Matches
alsalayer.cpp File Reference
Include dependency graph for alsalayer.cpp:

Go to the source code of this file.

Namespaces

namespace  jami
 

Macros

#define ALSA_CALL(call, error)
 
#define HW   pcm_handle, hwparams /* hardware parameters */
 
#define SW   pcm_handle, swparams /* software parameters */
 
#define TRY(call, error)
 

Functions

static std::vector< std::string > jami::getValues (const std::vector< HwIDPair > &deviceMap)
 
static bool jami::safeUpdate (snd_pcm_t *handle, long &samples)
 

Macro Definition Documentation

◆ ALSA_CALL

#define ALSA_CALL (   call,
  error 
)
Value:
({ \
int err_code = call; \
if (err_code < 0) \
JAMI_ERR(error ": %s", snd_strerror(err_code)); \
err_code; \
})

Definition at line 216 of file alsalayer.cpp.

◆ HW

#define HW   pcm_handle, hwparams /* hardware parameters */

◆ SW

#define SW   pcm_handle, swparams /* software parameters */

◆ TRY

#define TRY (   call,
  error 
)
Value:
do { \
if (ALSA_CALL(call, error) < 0) \
return false; \
} while (0)
#define ALSA_CALL(call, error)