annotate Alc/backends/loopback.c @ 8:c54fe2f77030

made build process more robust
author Robert McIntyre <rlm@mit.edu>
date Thu, 27 Oct 2011 02:40:54 -0700
parents f9476ff7637e
children
rev   line source
rlm@0 1 /**
rlm@0 2 * OpenAL cross platform audio library
rlm@0 3 * Copyright (C) 2011 by Chris Robinson
rlm@0 4 * This library is free software; you can redistribute it and/or
rlm@0 5 * modify it under the terms of the GNU Library General Public
rlm@0 6 * License as published by the Free Software Foundation; either
rlm@0 7 * version 2 of the License, or (at your option) any later version.
rlm@0 8 *
rlm@0 9 * This library is distributed in the hope that it will be useful,
rlm@0 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
rlm@0 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
rlm@0 12 * Library General Public License for more details.
rlm@0 13 *
rlm@0 14 * You should have received a copy of the GNU Library General Public
rlm@0 15 * License along with this library; if not, write to the
rlm@0 16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
rlm@0 17 * Boston, MA 02111-1307, USA.
rlm@0 18 * Or go to http://www.gnu.org/copyleft/lgpl.html
rlm@0 19 */
rlm@0 20
rlm@0 21 #include "config.h"
rlm@0 22
rlm@0 23 #include <stdlib.h>
rlm@0 24 #include "alMain.h"
rlm@0 25 #include "AL/al.h"
rlm@0 26 #include "AL/alc.h"
rlm@0 27
rlm@0 28
rlm@0 29 static ALCboolean loopback_open_playback(ALCdevice *device, const ALCchar *deviceName)
rlm@0 30 {
rlm@0 31 device->szDeviceName = strdup(deviceName);
rlm@0 32 return ALC_TRUE;
rlm@0 33 }
rlm@0 34
rlm@0 35 static void loopback_close_playback(ALCdevice *device)
rlm@0 36 {
rlm@0 37 (void)device;
rlm@0 38 }
rlm@0 39
rlm@0 40 static ALCboolean loopback_reset_playback(ALCdevice *device)
rlm@0 41 {
rlm@0 42 SetDefaultWFXChannelOrder(device);
rlm@0 43 return ALC_TRUE;
rlm@0 44 }
rlm@0 45
rlm@0 46 static void loopback_stop_playback(ALCdevice *device)
rlm@0 47 {
rlm@0 48 (void)device;
rlm@0 49 }
rlm@0 50
rlm@0 51 static const BackendFuncs loopback_funcs = {
rlm@0 52 loopback_open_playback,
rlm@0 53 loopback_close_playback,
rlm@0 54 loopback_reset_playback,
rlm@0 55 loopback_stop_playback,
rlm@0 56 NULL,
rlm@0 57 NULL,
rlm@0 58 NULL,
rlm@0 59 NULL,
rlm@0 60 NULL,
rlm@0 61 NULL
rlm@0 62 };
rlm@0 63
rlm@0 64 ALCboolean alc_loopback_init(BackendFuncs *func_list)
rlm@0 65 {
rlm@0 66 *func_list = loopback_funcs;
rlm@0 67 return ALC_TRUE;
rlm@0 68 }
rlm@0 69
rlm@0 70 void alc_loopback_deinit(void)
rlm@0 71 {
rlm@0 72 }
rlm@0 73
rlm@0 74 void alc_loopback_probe(enum DevProbe type)
rlm@0 75 {
rlm@0 76 (void)type;
rlm@0 77 }