Home | History | Annotate | Download | only in android

Lines Matching defs:ta

32     TestAudio* ta = opaque;
34 //printf("%s: pos=%d free=%d\n", __FUNCTION__, ta->pos, free);
37 int avail = SAMPLE_SIZE - ta->pos;
41 AUD_write(ta->voice, ta->sample + ta->pos, avail);
42 ta->pos += avail;
43 if (ta->pos >= SAMPLE_SIZE)
44 ta->pos = 0;
51 testAudio_init( TestAudio* ta )
55 AUD_register_card("test_audio", &ta->card);
62 ta->voice = AUD_open_out(
63 &ta->card,
64 ta->voice,
66 ta,
70 if (!ta->voice) {
74 ta->pos = 0;
79 ta->sample[nn] = (short)(((nn % (SAMPLE_SIZE/4))*65536/(SAMPLE_SIZE/4)) & 0xffff);
82 AUD_set_active_out(ta->voice, 1);