Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/sound/pcm/pcm.h
| 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. | ||||
| */ | */ | ||||
| #ifndef _SND_PCM_H_ | #ifndef _SND_PCM_H_ | ||||
| #define _SND_PCM_H_ | #define _SND_PCM_H_ | ||||
| #include <sys/param.h> | |||||
markj: Why remove this? It's needed for the typedefs below. (Actually, sys/types.h is sufficient I… | |||||
| /* | /* | ||||
| * Macros for reading/writing PCM sample / int values from bytes array. | * Macros for reading/writing PCM sample / int values from bytes array. | ||||
| * Since every process is done using signed integer (and to make our life | * Since every process is done using signed integer (and to make our life | ||||
| * less miserable), unsigned sample will be converted to its signed | * less miserable), unsigned sample will be converted to its signed | ||||
| * counterpart and restored during writing back. To avoid overflow, | * counterpart and restored during writing back. To avoid overflow, | ||||
| * we truncate 32bit (and only 32bit) samples down to 24bit (see below | * we truncate 32bit (and only 32bit) samples down to 24bit (see below | ||||
| * for the reason), unless SND_PCM_64 is defined. | * for the reason), unless SND_PCM_64 is defined. | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 397 Lines • Show Last 20 Lines | |||||
Why remove this? It's needed for the typedefs below. (Actually, sys/types.h is sufficient I think.) In general we try to make headers self-contained.