Changeset 4167:c94ebe68a53a in roaraudio for plugins/alsa
- Timestamp:
- 08/14/10 00:26:21 (14 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- plugins/alsa
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/alsa/Makefile
r4164 r4167 2 2 SLIB=$(BASENAME)$(SHARED_SUFFIX) 3 3 TARGET=$(SLIB) 4 OBJS=roar.o pcm.o mixer.o 4 INSTALL_DIR=$(PREFIX_LIB)/alsa-lib/ 5 OBJS=pcm_roar.o thread.o 5 6 6 7 include ../../Makefile.conf -
plugins/alsa/roar.h
r4041 r4167 3 3 /* 4 4 * Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2010 5 * Copyright (C) Hans-Kristian 'maister' Arntzen - 2010 5 6 * 6 7 * This file is part of libroar a part of RoarAudio, … … 27 28 * any patches. 28 29 * 30 * NOTE for uses of non-GPL (LGPL,...) software using libesd, libartsc 31 * or libpulse*: 32 * The libs libroaresd, libroararts and libroarpulse link this lib 33 * and are therefore GPL. Because of this it may be illigal to use 34 * them with any software that uses libesd, libartsc or libpulse*. 29 35 */ 30 36 … … 38 44 #include <alsa/pcm_external.h> 39 45 #include <alsa/control_external.h> 46 #include <pthread.h> 47 #include <time.h> 40 48 41 49 #define _as(x) (sizeof((x))/sizeof(*(x))) … … 53 61 int stream_opened; 54 62 size_t writec; 63 size_t last_ptr; 64 char* buffer; 65 size_t bufsize; 66 size_t bufptr; 67 pthread_t thread; 68 pthread_mutex_t lock; 69 pthread_mutex_t cond_lock; 70 pthread_cond_t cond; 71 volatile int thread_active; 72 int bytes_in_buffer; 73 volatile int64_t total_written; 74 int has_written; 75 struct timespec start_tv; 55 76 }; 77 78 void roar_reset(struct roar_alsa_pcm * self); 79 void* roar_thread (void * thread_data); 80 size_t roar_write(struct roar_alsa_pcm * self, const char * buf, size_t size); 81 void roar_drain(struct roar_alsa_pcm * self); 56 82 57 83 #endif
Note: See TracChangeset
for help on using the changeset viewer.