Changeset 4167:c94ebe68a53a in roaraudio for plugins/alsa


Ignore:
Timestamp:
08/14/10 00:26:21 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use new files provided by maister

Location:
plugins/alsa
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/alsa/Makefile

    r4164 r4167  
    22SLIB=$(BASENAME)$(SHARED_SUFFIX) 
    33TARGET=$(SLIB) 
    4 OBJS=roar.o pcm.o mixer.o 
     4INSTALL_DIR=$(PREFIX_LIB)/alsa-lib/ 
     5OBJS=pcm_roar.o thread.o 
    56 
    67include ../../Makefile.conf 
  • plugins/alsa/roar.h

    r4041 r4167  
    33/* 
    44 *      Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2010 
     5 *      Copyright (C) Hans-Kristian 'maister' Arntzen - 2010 
    56 * 
    67 *  This file is part of libroar a part of RoarAudio, 
     
    2728 *  any patches. 
    2829 * 
     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*. 
    2935 */ 
    3036 
     
    3844#include <alsa/pcm_external.h> 
    3945#include <alsa/control_external.h> 
     46#include <pthread.h> 
     47#include <time.h> 
    4048 
    4149#define _as(x) (sizeof((x))/sizeof(*(x))) 
     
    5361 int                    stream_opened; 
    5462 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; 
    5576}; 
     77 
     78void roar_reset(struct roar_alsa_pcm * self); 
     79void* roar_thread (void * thread_data); 
     80size_t roar_write(struct roar_alsa_pcm * self, const char * buf, size_t size); 
     81void roar_drain(struct roar_alsa_pcm * self); 
    5682 
    5783#endif 
Note: See TracChangeset for help on using the changeset viewer.