mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
6a4709a170
PR: 130470 Submitted by: Ports Fury
55 lines
1.7 KiB
C
55 lines
1.7 KiB
C
--- src/s_main.c.orig 2008-03-15 09:03:00.000000000 +0900
|
|
+++ src/s_main.c 2008-08-23 21:44:26.000000000 +0900
|
|
@@ -301,7 +301,9 @@
|
|
else
|
|
{
|
|
/* open audio and MIDI */
|
|
+#if !defined(__FreeBSD__)
|
|
sys_reopen_midi();
|
|
+#endif
|
|
sys_reopen_audio();
|
|
/* run scheduler until it quits */
|
|
return (m_mainloop());
|
|
@@ -633,7 +635,9 @@
|
|
}
|
|
else if (!strcmp(*argv, "-alsamidi"))
|
|
{
|
|
+#if !defined(__FreeBSD__)
|
|
sys_set_midi_api(API_ALSA);
|
|
+#endif
|
|
argc--; argv++;
|
|
}
|
|
#endif
|
|
@@ -916,7 +920,11 @@
|
|
/* add "doc/5.reference" library to helppath */
|
|
strncpy(sbuf, sys_libdir->s_name, MAXPDSTRING-30);
|
|
sbuf[MAXPDSTRING-30] = 0;
|
|
+#if defined(__FreeBSD__)
|
|
+ strcat(sbuf, "/share/doc/pd/5.reference");
|
|
+#else
|
|
strcat(sbuf, "/doc/5.reference");
|
|
+#endif
|
|
sys_helppath = namelist_append_files(sys_helppath, sbuf);
|
|
/* correct to make audio and MIDI device lists zero based. On
|
|
MMIO, however, "1" really means the second device (the first one
|
|
@@ -969,7 +977,9 @@
|
|
for (i = 0; i < naudiooutdev; i++)
|
|
audiooutdev[i] = sys_soundoutdevlist[i];
|
|
}
|
|
+#if !defined(__FreeBSD__)
|
|
sys_get_midi_params(&nmidiindev, midiindev, &nmidioutdev, midioutdev);
|
|
+#endif
|
|
if (sys_nmidiin >= 0)
|
|
{
|
|
post("sys_nmidiin %d, nmidiindev %d", sys_nmidiin, nmidiindev);
|
|
@@ -992,7 +1002,9 @@
|
|
sys_set_audio_settings(naudioindev, audioindev, nchindev, chindev,
|
|
naudiooutdev, audiooutdev, nchoutdev, choutdev, rate, advance,
|
|
callback);
|
|
+#if !defined(__FreeBSD__)
|
|
sys_open_midi(nmidiindev, midiindev, nmidioutdev, midioutdev, 0);
|
|
+#endif
|
|
}
|
|
|
|
static void sys_addreferencepath(void)
|