mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Abramo Bagnara <abramo@alsa-project.org>
Sat, 11 Dec 1999 08:45:24 +0100 - changed lowlevel drivers to use pcm_misc.c functions - fixed some bugs in pcm_plugin_build - the plugin code is shared between alsa-lib and alsa-driver
This commit is contained in:
parent
0f0ce09509
commit
20ebae20a7
13 changed files with 596 additions and 508 deletions
|
|
@ -19,15 +19,18 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#ifdef ALSA_BUILD
|
||||
#include "../include/driver.h"
|
||||
#else
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/mman.h>
|
||||
#include <endian.h>
|
||||
#include <byteswap.h>
|
||||
#include "pcm_local.h"
|
||||
#endif
|
||||
|
||||
int snd_pcm_format_signed(int format)
|
||||
{
|
||||
|
|
@ -63,6 +66,11 @@ int snd_pcm_format_unsigned(int format)
|
|||
return val;
|
||||
}
|
||||
|
||||
int snd_pcm_format_linear(int format)
|
||||
{
|
||||
return snd_pcm_format_signed(format) >= 0;
|
||||
}
|
||||
|
||||
int snd_pcm_format_little_endian(int format)
|
||||
{
|
||||
switch (format) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue