~dholbach/xwax/trunk

« back to all changes in this revision

Viewing changes to jack.c

  • Committer: Mark Hills
  • Date: 2011-06-19 14:58:29 UTC
  • Revision ID: git-v1:11694be463c171d603cd02c1726a44123cf2d997
Move audio processing to a shared function

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
#include "device.h"
27
27
#include "jack.h"
28
 
#include "player.h"
29
 
#include "timecoder.h"
30
28
 
31
29
#define MAX_BLOCK 512 /* samples */
32
30
#define SCALE 32768
113
111
        /* Timecode input */
114
112
 
115
113
        interleave(buf, in, block);
116
 
        timecoder_submit(dv->timecoder, buf, block);
 
114
        device_submit(dv, buf, block);
117
115
 
118
116
        /* Audio output -- handle in the same loop for finer granularity */
119
117
 
120
 
        player_collect(dv->player, buf, block, rate);
 
118
        device_collect(dv, buf, block);
121
119
        uninterleave(out, buf, block);
122
120
 
123
121
        remain -= block;