Changeset 5156:9655b6a73884 in roaraudio for plugins/alsa
- Timestamp:
- 10/16/11 09:03:13 (13 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- plugins/alsa
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/alsa/pcm_roar.c
r4708 r5156 35 35 */ 36 36 37 //#define DEBUG 37 38 #include "roar.h" 38 39 … … 44 45 static int roar_pcm_start (snd_pcm_ioplug_t * io) { 45 46 struct roar_alsa_pcm * self = io->private_data; 47 int fh; 46 48 47 49 ROAR_DBG("roar_pcm_start(*) = ?"); … … 58 60 } 59 61 60 int fh;61 62 if ( roar_vio_ctl(&(self->stream_vio), 62 63 io->stream == SND_PCM_STREAM_PLAYBACK ? ROAR_VIO_CTL_GET_SELECT_WRITE_FH : … … 486 487 SND_PCM_PLUGIN_SYMBOL(roar); 487 488 489 #ifdef __TESTCODE_PH3__ 488 490 int __snd_pcm_roar_open_dlsym_pcm_001 (void) { 489 491 ROAR_DBG("__snd_pcm_roar_open_dlsym_pcm_001(void) = 0"); 490 492 return 0; 491 493 } 494 #endif 492 495 493 496 //ll -
plugins/alsa/roar.h
r4708 r5156 64 64 char* buffer; 65 65 size_t bufsize; 66 volatile size_t 66 volatile size_t bufptr; 67 67 pthread_t thread; 68 68 pthread_mutex_t lock; -
plugins/alsa/thread.c
r4708 r5156 35 35 */ 36 36 37 //#define DEBUG 37 38 38 39 #include "roar.h" 39 #define CHUNK_SIZE 256 40 #define CHUNK_SIZE 2048 41 //#define CHUNK_SIZE 256 40 42 41 43 … … 133 135 self->bufptr -= rc; 134 136 pthread_mutex_unlock(&(self->lock)); 137 ROAR_DBG("roar_thread(*): Wrote data to vio. New bufptr: %i", (int)self->bufptr); 135 138 136 139 /* Buffer has decreased, signal fill_buffer() */
Note: See TracChangeset
for help on using the changeset viewer.