~ubuntu-branches/debian/squeeze/bristol/squeeze

« back to all changes in this revision

Viewing changes to src/bristol/libbristolmidi/midiALSADevMan.c

  • Committer: Bazaar Package Importer
  • Author(s): Guenter Geiger (Debian/GNU)
  • Date: 2004-08-16 17:25:51 UTC
  • Revision ID: james.westby@ubuntu.com-20040816172551-b0wxc0izlhxa6ugn
Tags: 0.9.1-11
* Fixed gcc-3.4 compilation
* removed dynamic libraries, bristolenine and bristol are linked
  dynamically now (closes: #265621) (closes: #265052)

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
         * Configure blocking IO. We could select over the input for clarity, but
54
54
         * since we are now a separate thread we are not going to worry about this.
55
55
         */
56
 
#if (SND_LIB_MAJOR == 1 || (SND_LIB_MAJOR == 0 && SND_LIB_MINOR == 9))
 
56
#if (SND_LIB_MAJOR == 0 && SND_LIB_MINOR == 9)
57
57
        bmidi.dev[dev].flags = SND_SEQ_OPEN_INPUT;
58
58
        if (snd_rawmidi_open(&bmidi.dev[dev].driver.alsa.handle, NULL,
59
59
                devname, bmidi.dev[dev].flags) != 0)
66
66
                /* 
67
67
                 * Print a debug message, this is problematic.
68
68
                 */
69
 
                printf("Could not open the MIDI interface %s.\n",devname);
 
69
                printf("Could not open the MIDI interface.\n");
70
70
                return(BRISTOL_MIDI_DRIVER);
71
71
        }
72
72
 
85
85
#endif
86
86
#endif
87
87
 
88
 
#if (SND_LIB_MAJOR == 1 || (SND_LIB_MAJOR == 0 && SND_LIB_MINOR == 9))
 
88
#if (SND_LIB_MAJOR == 0 && SND_LIB_MINOR == 9)
89
89
        /*
90
90
         * We need to get a file descriptor for this interface, since we are going
91
91
         * to use it with select() over several interfaces.