Changeset 4170:5896bbcb14f5 in roaraudio for plugins


Ignore:
Timestamp:
08/14/10 03:22:59 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

update roar_pcm_pointer() function

Location:
plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/alsa/pcm_roar.c

    r4168 r4170  
    190190static snd_pcm_sframes_t roar_pcm_pointer(snd_pcm_ioplug_t *io) { 
    191191 struct roar_alsa_pcm * self = io->private_data; 
     192 int ptr; 
    192193 
    193194 ROAR_DBG("roar_pcm_pointer(*) = ?"); 
    194  
    195  int ptr; 
    196195 // Did ALSA just call snd_pcm_reset() or something like that without calling the plugin?  
    197196 // We should restart our stream as well. 
     
    216215 self->last_ptr = io->appl_ptr; 
    217216 
     217 ROAR_DBG("roar_pcm_pointer(*) = %i", ptr); 
    218218 return ptr; 
    219219} 
  • plugins/alsavs/pcm_roar.c

    r4168 r4170  
    190190static snd_pcm_sframes_t roar_pcm_pointer(snd_pcm_ioplug_t *io) { 
    191191 struct roar_alsa_pcm * self = io->private_data; 
     192 int ptr; 
    192193 
    193194 ROAR_DBG("roar_pcm_pointer(*) = ?"); 
    194  
    195  int ptr; 
    196195 // Did ALSA just call snd_pcm_reset() or something like that without calling the plugin?  
    197196 // We should restart our stream as well. 
     
    216215 self->last_ptr = io->appl_ptr; 
    217216 
     217 ROAR_DBG("roar_pcm_pointer(*) = %i", ptr); 
    218218 return ptr; 
    219219} 
Note: See TracChangeset for help on using the changeset viewer.