Changeset 5157:065c4c7f1be2 in roaraudio for plugins/alsavs/thread.c
- Timestamp:
- 10/16/11 09:11:27 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/alsavs/thread.c
r5156 r5157 43 43 44 44 // Writes to the FIFO buffer. Waits until there is room to write. 45 size_t roar_ write(struct roar_alsa_pcm *self, const char *buf, size_t size) {45 size_t roar_plugin_write(struct roar_alsa_pcm *self, const char *buf, size_t size) { 46 46 /* Wait until we have a ready buffer */ 47 47 while (1) { … … 82 82 83 83 // Attemps to drain the buffer at all times and write to libroar. 84 // If there is no data, it will wait for roar_ write() to fill up more data.85 void* roar_ thread (void * thread_data) {84 // If there is no data, it will wait for roar_plugin_write() to fill up more data. 85 void* roar_plugin_thread (void * thread_data) { 86 86 /* We share data between thread and callable functions */ 87 87 struct roar_alsa_pcm *self = thread_data; … … 109 109 if ( rc < 0 ) { 110 110 _TEST_CANCEL(); 111 roar_ reset(self);111 roar_plugin_reset(self); 112 112 113 113 /* Wakes up a potentially sleeping fill_buffer() */ … … 135 135 self->bufptr -= rc; 136 136 pthread_mutex_unlock(&(self->lock)); 137 ROAR_DBG("roar_ thread(*): Wrote data to vio. New bufptr: %i", (int)self->bufptr);137 ROAR_DBG("roar_plugin_thread(*): Wrote data to vio. New bufptr: %i", (int)self->bufptr); 138 138 139 139 /* Buffer has decreased, signal fill_buffer() */ … … 158 158 } 159 159 160 void roar_ drain(struct roar_alsa_pcm *self) {160 void roar_plugin_drain(struct roar_alsa_pcm *self) { 161 161 struct timespec now_tv; 162 162 int64_t temp, temp2;
Note: See TracChangeset
for help on using the changeset viewer.