Changeset 188:a3699b2c9759 in roaraudio for roard/midi.c
- Timestamp:
- 07/20/08 17:58:36 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/midi.c
r187 r188 40 40 int midi_cb_start(float freq) { 41 41 // On linux this uses ioctl KIOCSOUND 42 #ifdef __linux__ 43 if ( g_console == -1 ) 44 return -1; 45 46 if ( ioctl(g_console, KIOCSOUND, (int)(1193180.0/freq)) == -1 ) 47 return -1; 48 49 return 0; 50 #else 42 51 return -1; 52 #endif 43 53 } 44 54
Note: See TracChangeset
for help on using the changeset viewer.