~ubuntu-branches/ubuntu/precise/csound/precise

« back to all changes in this revision

Viewing changes to InOut/rtalsa.c

  • Committer: Package Import Robot
  • Author(s): Felipe Sateler
  • Date: 2012-04-19 09:26:46 UTC
  • mfrom: (3.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20120419092646-96xbj1n6atuqosk2
Tags: 1:5.17.6~dfsg-1
* New upstream release
 - Do not build the wiimote opcodes (we need wiiuse).
* Add new API function to symbols file
* Disable lua opcodes, they were broken. Requires OpenMP to be enabled.
* Backport fixes from upstream:
  - Link dssi4cs with dl. Backport
  - Fix building of CsoundAC

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#ifndef _POSIX_SOURCE
29
29
#define _POSIX_SOURCE 1
30
30
#endif
 
31
#ifndef _POSIX_C_SOURCE
 
32
#define _POSIX_C_SOURCE 1
 
33
#endif
31
34
#ifndef _BSD_SOURCE
32
35
#define _BSD_SOURCE 1
33
36
#endif
702
705
// This is the function which contains code from amidi
703
706
static int midi_in_open(CSOUND *csound, void **userData, const char *devName)
704
707
{
705
 
    alsaMidiInputDevice *dev, *newdev, *olddev;
706
 
    const char  *s = "hw:0,0";
707
 
    int card, err;
 
708
    alsaMidiInputDevice *dev = NULL, *newdev, *olddev;
 
709
    //const char  *s = "hw:0,0";
 
710
    int card;
708
711
    int device;
709
712
    snd_ctl_t *ctl;
710
713
    char* name;
836
839
 
837
840
static int midi_in_close(CSOUND *csound, void *userData)
838
841
{
839
 
    int ret, retval = 0;
 
842
    int ret = 0, retval = 0;
840
843
    alsaMidiInputDevice *olddev, *dev = NULL;
841
844
    (void) csound;
842
845
    dev = (alsaMidiInputDevice*) userData;