Changeset 5157:065c4c7f1be2 in roaraudio for plugins/alsavs/pcm_roar.c
- Timestamp:
- 10/16/11 09:11:27 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/alsavs/pcm_roar.c
r5156 r5157 77 77 self->bufptr = 0; 78 78 self->thread_active = 1; // We have to activate the thread before starting it, because the thread lives on that thread_active is 1. 79 if ( pthread_create(&(self->thread), NULL, roar_ thread, self) < 0 ) {79 if ( pthread_create(&(self->thread), NULL, roar_plugin_thread, self) < 0 ) { 80 80 self->thread_active = 0; 81 81 return -1; … … 85 85 } 86 86 87 void roar_ reset(struct roar_alsa_pcm *self) {87 void roar_plugin_reset(struct roar_alsa_pcm *self) { 88 88 if ( !self->stream_opened ) 89 89 return; … … 120 120 } 121 121 122 roar_ reset(self);122 roar_plugin_reset(self); 123 123 124 124 return 0; … … 240 240 buf = (char *)areas->addr + (areas->first + areas->step * offset) / 8; 241 241 242 ret = roar_ write(self, buf, len);242 ret = roar_plugin_write(self, buf, len); 243 243 244 244 if ( ret == -1 ) … … 260 260 // TODO: We need to set *delayp the latency in frames. 261 261 pthread_mutex_lock(&(self->lock)); 262 roar_ drain(self);262 roar_plugin_drain(self); 263 263 *delayp = snd_pcm_bytes_to_frames(io->pcm, self->bytes_in_buffer); 264 264 pthread_mutex_unlock(&(self->lock));
Note: See TracChangeset
for help on using the changeset viewer.