2
* Purpose: Recording device to local input buffer import routine for vmix (int)
6
* This file is part of Open Sound System.
8
* Copyright (C) 4Front Technologies 1996-2008.
10
* This this source file is released under GPL v2 license (no other versions).
11
* See the COPYING file included in the main directory of this source
12
* distribution for the license terms and conditions.
19
vol = vmix_db_table[eng->outvol / 5];
21
for (ch = 0; ch < channels; ch++)
26
vu = eng->vu[ch % 2] * 65536;
28
op = (SAMPLE_TYPE *) inbuf;
33
for (i = 0; i < samples; i++)
37
tmp = INT_IMPORT (VMIX_BYTESWAP (*op));
38
tmp = (tmp * vol) / VMIX_VOL_SCALE;