Commit 11832367 authored by Max Kellermann's avatar Max Kellermann

alsa: use GLib instead of utils.h

parent 051e906d
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
*/ */
#include "../output_api.h" #include "../output_api.h"
#include "../utils.h"
#include "../mixer.h" #include "../mixer.h"
#include <glib.h> #include <glib.h>
...@@ -65,7 +64,7 @@ alsa_device(const AlsaData *ad) ...@@ -65,7 +64,7 @@ alsa_device(const AlsaData *ad)
static AlsaData *newAlsaData(void) static AlsaData *newAlsaData(void)
{ {
AlsaData *ret = xmalloc(sizeof(AlsaData)); AlsaData *ret = g_new(AlsaData, 1);
ret->device = NULL; ret->device = NULL;
ret->mode = 0; ret->mode = 0;
...@@ -93,7 +92,7 @@ alsa_configure(AlsaData *ad, ConfigParam *param) ...@@ -93,7 +92,7 @@ alsa_configure(AlsaData *ad, ConfigParam *param)
BlockParam *bp; BlockParam *bp;
if ((bp = getBlockParam(param, "device"))) if ((bp = getBlockParam(param, "device")))
ad->device = xstrdup(bp->value); ad->device = g_strdup(bp->value);
ad->useMmap = getBoolBlockParam(param, "use_mmap", 1); ad->useMmap = getBoolBlockParam(param, "use_mmap", 1);
if (ad->useMmap == CONF_BOOL_UNSET) if (ad->useMmap == CONF_BOOL_UNSET)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment