Skip to content

Commit

Permalink
Fix Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
barotto committed Jun 6, 2015
1 parent d09515c commit 7513f3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hardware/devices/serial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ void Serial::init_mode_socket(uint comn, std::string dev, uint mode)
}
}

void Serial::init_mode_pipe(uint /*comn*/, std::string dev, uint mode)
void Serial::init_mode_pipe(uint comn, std::string dev, uint mode)
{
if(dev.empty()) {
return;
Expand Down
3 changes: 2 additions & 1 deletion src/mixer.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "wav.h"
#include <thread>
#include <atomic>
#include <cmath>
#include <samplerate.h>

class Machine;
Expand Down Expand Up @@ -183,7 +184,7 @@ class Mixer
void cmd_stop_capture();
void cmd_toggle_capture();

static int us_to_samples(int _us, int _rate) {
static inline int us_to_samples(int _us, int _rate) {
return round(double(_us) * double(_rate)/1e6);
}
};
Expand Down

0 comments on commit 7513f3c

Please sign in to comment.