summaryrefslogtreecommitdiffstats
path: root/audio/midimountain/files/patch-midimountain::mcOSSIO.cpp
blob: d014040e26522bd5a4150e0bef099c0c6cf5662f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- midimountain/mcOSSIO.cpp.orig	Tue Oct 23 23:19:14 2001
+++ midimountain/mcOSSIO.cpp	Mon Jul  2 14:09:01 2007
@@ -1,17 +1,18 @@
 //=============================================================================
 // implementation class midi IO
 //=============================================================================
-#include <linux/soundcard.h>
+#include <sys/soundcard.h>
 #include <unistd.h>
 #include <sys/ioctl.h>
 #include <fcntl.h>
 #include <string.h>
 #include <iostream.h>
 #include <mcOSSIO.h>
+#include <iomanip>
 
 
 // define static variables:
-const char* TMidiOSSIO::sequencer       = "/dev/music";
+const char* TMidiOSSIO::sequencer       = "/dev/music0";
 int    TMidiOSSIO::class_count          =  0;
 uchar  TMidiOSSIO::midi_write_packet[4] = {SEQ_MIDIPUTC, 0, 0, 0};
 uchar  TMidiOSSIO::midi_read_packet[4];
@@ -464,7 +465,7 @@
 					break;
 
 				default:
-					cout << "unknown EV_TIMING" << hex << buf[i+1];
+					cout << "unknown EV_TIMING" << std::hex << buf[i+1];
 					break;
 				}
 				i += 8;
OpenPOWER on IntegriCloud