Changeset 5157:065c4c7f1be2 in roaraudio for plugins/alsavs/pcm_roar.c


Ignore:
Timestamp:
10/16/11 09:11:27 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

made it build again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/alsavs/pcm_roar.c

    r5156 r5157  
    7777 self->bufptr = 0; 
    7878 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 ) { 
    8080  self->thread_active = 0; 
    8181  return -1; 
     
    8585} 
    8686 
    87 void roar_reset(struct roar_alsa_pcm *self) { 
     87void roar_plugin_reset(struct roar_alsa_pcm *self) { 
    8888 if ( !self->stream_opened ) 
    8989  return; 
     
    120120 } 
    121121 
    122  roar_reset(self); 
     122 roar_plugin_reset(self); 
    123123 
    124124 return 0; 
     
    240240 buf = (char *)areas->addr + (areas->first + areas->step * offset) / 8; 
    241241 
    242  ret = roar_write(self, buf, len); 
     242 ret = roar_plugin_write(self, buf, len); 
    243243 
    244244 if ( ret == -1 ) 
     
    260260 // TODO: We need to set *delayp the latency in frames. 
    261261 pthread_mutex_lock(&(self->lock)); 
    262  roar_drain(self); 
     262 roar_plugin_drain(self); 
    263263 *delayp = snd_pcm_bytes_to_frames(io->pcm, self->bytes_in_buffer); 
    264264 pthread_mutex_unlock(&(self->lock)); 
Note: See TracChangeset for help on using the changeset viewer.