Changeset 3135:af6a10f1b0ab in roaraudio for plugins/alsa
- Timestamp:
- 01/15/10 10:23:04 (14 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- plugins/alsa
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/alsa/Makefile
r3134 r3135 9 9 10 10 #DEFINES=-DDEBUG 11 DEFINES=-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"alsa-plugins\" -DVERSION=\"1.0.13\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_LIBASOUND=1 -D_REENTRANT -DDEBUG 11 12 CFLAGS += -g -Wall -O2 -I../../include $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC) -I/usr/include/alsa -D_GNU_SOURCE 12 LDFLAGS = -g $(SHARED) $(LDPATH) -L../../lib -module -avoid-version -export-dynamic13 LIBS = $(LIBROAR) -l asound13 LDFLAGS = -g $(SHARED) $(LDPATH) -L../../lib 14 LIBS = $(LIBROAR) -lm -ldl /usr/lib/libasound.so 14 15 15 16 all: ${TARGET} … … 26 27 27 28 $(SLIB): $(OBJS) 28 $(CC) $(LDFLAGS) -Wl,-soname ,$(SLIB) -o $(SLIB) $(OBJS) $(LIBS)29 $(CC) $(LDFLAGS) -Wl,-soname -Wl,$(SLIB) -o $(SLIB) $(OBJS) $(LIBS) -
plugins/alsa/pcm.c
r3134 r3135 50 50 int ret; 51 51 52 ROAR_DBG("roar_hw_constraint(*) = ?"); 53 52 54 if ( (ret = snd_pcm_ioplug_set_param_list(io, SND_PCM_IOPLUG_HW_ACCESS, 53 55 _as(access_list), access_list)) < 0 ) … … 74 76 return ret; 75 77 78 ROAR_DBG("roar_hw_constraint(*) = 0"); 79 76 80 return 0; 77 81 } 78 82 79 83 static int roar_pcm_dummy (snd_pcm_ioplug_t * io) { 84 ROAR_DBG("roar_pcm_dummy(*) = ?"); 80 85 return 0; 81 86 } 82 87 83 88 static snd_pcm_sframes_t roar_pcm_pointer(snd_pcm_ioplug_t *io) { 89 ROAR_DBG("roar_pcm_pointer(*) = ?"); 84 90 return 0; 85 91 } … … 93 99 char * buf; 94 100 101 ROAR_DBG("roar_pcm_transfer(*) = ?"); 102 95 103 buf = (char *)areas->addr + (areas->first + areas->step * offset) / 8; 96 104 … … 101 109 102 110 static int roar_pcm_delay(snd_pcm_ioplug_t *io, snd_pcm_sframes_t *delayp) { 111 ROAR_DBG("roar_pcm_delay(*) = ?"); 103 112 return 0; 104 113 } … … 106 115 static int roar_pcm_prepare(snd_pcm_ioplug_t *io) { 107 116 struct roar_alsa_pcm * self = io->private_data; 117 118 ROAR_DBG("roar_pcm_prepare(*) = ?"); 108 119 109 120 if ( self->stream_opened ) { … … 127 138 static int roar_pcm_hw_params(snd_pcm_ioplug_t *io, snd_pcm_hw_params_t *params) { 128 139 struct roar_alsa_pcm * self = io->private_data; 140 141 ROAR_DBG("roar_pcm_hw_params(*) = ?"); 129 142 130 143 self->info.channels = io->channels; … … 161 174 static int roar_pcm_close (snd_pcm_ioplug_t * io) { 162 175 struct roar_alsa_pcm * self = io->private_data; 176 177 ROAR_DBG("roar_pcm_close(*) = ?"); 163 178 164 179 roar_disconnect(&(self->roar.con)); … … 192 207 int ret; 193 208 194 printf("TEST!\n");209 ROAR_DBG("SND_PCM_PLUGIN_DEFINE_FUNC(roar) = ?"); 195 210 196 211 snd_config_for_each(i, next, conf) { … … 245 260 } 246 261 262 ROAR_DBG("SND_PCM_PLUGIN_DEFINE_FUNC(roar) = 0"); 263 247 264 return 0; 248 265 } … … 250 267 SND_PCM_PLUGIN_SYMBOL(roar); 251 268 269 int __snd_pcm_roar_open_dlsym_pcm_001 (void) { 270 return 0; 271 } 272 252 273 //ll -
plugins/alsa/roar.c
r3133 r3135 35 35 #include "roar.h" 36 36 37 struct snd_dlsym_link *snd_dlsym_start; 38 37 39 //ll -
plugins/alsa/roar.h
r3134 r3135 39 39 #include <errno.h> 40 40 #include <alsa/asoundlib.h> 41 #include <alsa/global.h> 41 42 #include <alsa/pcm_external.h> 42 43 #include <alsa/control_external.h>
Note: See TracChangeset
for help on using the changeset viewer.