home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 13 / MA_Cover_13.bin / source / c / ahisrc / device / mixer.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-03  |  2.3 KB  |  84 lines

  1. /* $Id: mixer.h,v 4.14 1999/10/03 15:44:56 lcs Exp $ */
  2.  
  3. /*
  4.      AHI - Hardware independent audio subsystem
  5.      Copyright (C) 1996-1999 Martin Blom <martin@blom.org>
  6.      
  7.      This library is free software; you can redistribute it and/or
  8.      modify it under the terms of the GNU Library General Public
  9.      License as published by the Free Software Foundation; either
  10.      version 2 of the License, or (at your option) any later version.
  11.      
  12.      This library is distributed in the hope that it will be useful,
  13.      but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.      Library General Public License for more details.
  16.      
  17.      You should have received a copy of the GNU Library General Public
  18.      License along with this library; if not, write to the
  19.      Free Software Foundation, Inc., 59 Temple Place - Suite 330, Cambridge,
  20.      MA 02139, USA.
  21. */
  22.  
  23. #ifndef _MIXER_H_
  24. #define _MIXER_H_
  25.  
  26. #include <config.h>
  27. #include <CompilerSpecific.h>
  28. #include "ahi_def.h"
  29.  
  30. #include "addroutines.h"
  31.  
  32. ULONG
  33. InternalSampleFrameSize( ULONG sampletype );
  34.  
  35. BOOL
  36. InitMixroutine ( struct AHIPrivAudioCtrl *audioctrl );
  37.  
  38. void
  39. CleanUpMixroutine ( struct AHIPrivAudioCtrl *audioctrl );
  40.  
  41. void
  42. calcMasterVolumeTable ( struct AHIPrivAudioCtrl *audioctrl );
  43.  
  44. BOOL
  45. initSignedTable ( struct AHIPrivAudioCtrl *audioctrl );
  46.  
  47. void
  48. calcSignedTable ( struct AHIPrivAudioCtrl *audioctrl );
  49.  
  50. BOOL
  51. initUnsignedTable ( struct AHIPrivAudioCtrl *audioctrl );
  52.  
  53. void
  54. calcUnsignedTable ( struct AHIPrivAudioCtrl *audioctrl );
  55.  
  56. void
  57. SelectAddRoutine ( Fixed     VolumeLeft,
  58.                    Fixed     VolumeRight,
  59.                    ULONG     SampleType,
  60.                    struct    AHIPrivAudioCtrl *audioctrl,
  61.                    LONG     *ScaleLeft,
  62.                    LONG     *ScaleRight,
  63.                    ADDFUNC **AddRoutine );
  64.  
  65. #if !defined( VERSIONPPC )
  66. void ASMCALL
  67. MixGeneric ( REG(a0, struct Hook *Hook),
  68.              REG(a1, void *dst),
  69.              REG(a2, struct AHIPrivAudioCtrl *audioctrl) );
  70. #else
  71. void
  72. MixGeneric ( struct Hook *Hook,
  73.              void *dst,
  74.              struct AHIPrivAudioCtrl *audioctrl );
  75. #endif
  76.  
  77. LONG
  78. CalcSamples ( Fixed64 Add,
  79.               ULONG   Type,
  80.               Fixed64 LastOffset,
  81.               Fixed64 Offset );
  82.  
  83. #endif /* _MIXER_H_ */
  84.