Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pm_linux/finddefault.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "portmidi.h"
#include "pmutil.h"
#include "pminternal.h"
#include "finddefault.h"

#define STRING_MAX 256

Expand Down
1 change: 1 addition & 0 deletions pm_linux/finddefault.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PmDeviceID find_default_device(char *path, int input, PmDeviceID id);
1 change: 1 addition & 0 deletions pm_linux/pmlinux.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "portmidi.h"
#include "pmutil.h"
#include "pminternal.h"
#include "finddefault.h"

#ifdef PMALSA
#include "pmlinuxalsa.h"
Expand Down
2 changes: 1 addition & 1 deletion pm_linux/pmlinuxalsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static PmError alsa_write_byte(PmInternal *midi, unsigned char byte,
/* compute relative time of event = timestamp - now + latency */
PmTimestamp now = (midi->time_proc ?
midi->time_proc(midi->time_info) :
Pt_Time(NULL));
Pt_Time());
int when = timestamp;
/* if timestamp is zero, send immediately */
/* otherwise compute time delay and use delay if positive */
Expand Down