Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/sound/pcm/feeder_volume.c
| Show All 23 Lines | |||||
| * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
| * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
| * SUCH DAMAGE. | * SUCH DAMAGE. | ||||
| */ | */ | ||||
| /* feeder_volume, a long 'Lost Technology' rather than a new feature. */ | /* feeder_volume, a long 'Lost Technology' rather than a new feature. */ | ||||
| #ifdef _KERNEL | #ifdef _KERNEL | ||||
| #ifdef HAVE_KERNEL_OPTION_HEADERS | |||||
| #include "opt_snd.h" | |||||
| #endif | |||||
| #include <dev/sound/pcm/sound.h> | #include <dev/sound/pcm/sound.h> | ||||
| #include <dev/sound/pcm/pcm.h> | |||||
| #include "feeder_if.h" | |||||
| #define SND_USE_FXDIV | #define SND_USE_FXDIV | ||||
| #include "snd_fxdiv_gen.h" | #include "snd_fxdiv_gen.h" | ||||
| #endif | #endif | ||||
| typedef void (*feed_volume_t)(int *, int *, uint32_t, uint8_t *, uint32_t); | typedef void (*feed_volume_t)(int *, int *, uint32_t, uint8_t *, uint32_t); | ||||
| #define FEEDVOLUME_CALC8(s, v) (SND_VOL_CALC_SAMPLE((intpcm_t) \ | #define FEEDVOLUME_CALC8(s, v) (SND_VOL_CALC_SAMPLE((intpcm_t) \ | ||||
| ▲ Show 20 Lines • Show All 305 Lines • Show Last 20 Lines | |||||