Update of /cvsroot/alsa/alsa-lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv15112/test

Modified Files:
        Makefile.am latency.c pcm.c 
Added Files:
        oldapi.c 
Log Message:
Switch from old to new PCM API retaining binary compatibility
Changed version to 1.0.0pre1


--- NEW FILE: oldapi.c ---
/*
 *  Old PCM API compilation test
 *
 *     Author: Jaroslav Kysela <[EMAIL PROTECTED]>
 *
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 *
 */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sched.h>
#include <errno.h>
#include <getopt.h>
#define ALSA_PCM_OLD_HW_PARAMS_API
#define ALSA_PCM_OLD_SW_PARAMS_API
#include "../include/asoundlib.h"
#include <sys/time.h>

typedef void (myfcn)(void *);

int main(int argc, char *argv[])
{
        myfcn *fcn;
        snd_pcm_hw_params_get_access(NULL);
        fcn = &snd_pcm_hw_params_get_access;
        return 0;
}

Index: Makefile.am
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/test/Makefile.am,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- Makefile.am 23 Oct 2003 16:53:11 -0000      1.26
+++ Makefile.am 5 Nov 2003 10:38:39 -0000       1.27
@@ -1,6 +1,6 @@
 check_PROGRAMS=control pcm latency seq \
               playmidi1 timer rawmidi midiloop \
-              omixer code
+              omixer code oldapi
 
 control_LDADD=../src/libasound.la
 pcm_LDADD=../src/libasound.la
@@ -11,6 +11,7 @@
 rawmidi_LDADD=../src/libasound.la
 midiloop_LDADD=../src/libasound.la
 omixer_LDADD=../src/libasound.la
+oldapi_LDADD=../src/libasound.la
 code_CFLAGS=-Wall -pipe -g -O2
 
 INCLUDES=-I$(top_srcdir)/include

Index: latency.c
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/test/latency.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- latency.c   14 Jul 2003 10:22:39 -0000      1.34
+++ latency.c   5 Nov 2003 10:38:39 -0000       1.35
@@ -33,8 +33,6 @@
 #include <sched.h>
 #include <errno.h>
 #include <getopt.h>
-#define ALSA_PCM_NEW_HW_PARAMS_API
-#define ALSA_PCM_NEW_SW_PARAMS_API
 #include "../include/asoundlib.h"
 #include <sys/time.h>
 #include <math.h>

Index: pcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/test/pcm.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- pcm.c       13 Oct 2003 10:42:32 -0000      1.27
+++ pcm.c       5 Nov 2003 10:38:39 -0000       1.28
@@ -8,8 +8,6 @@
 #include <sched.h>
 #include <errno.h>
 #include <getopt.h>
-#define ALSA_PCM_NEW_HW_PARAMS_API
-#define ALSA_PCM_NEW_SW_PARAMS_API
 #include "../include/asoundlib.h"
 #include <sys/time.h>
 #include <math.h>



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to