Skip to content

Commit

Permalink
Merge branch 'master' into svxreflector
Browse files Browse the repository at this point in the history
  • Loading branch information
sm0svx committed Jun 19, 2017
2 parents 71ac50f + e67bf4e commit 9962d2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/async/audio/AsyncAudioDeviceAlsa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ bool AudioDeviceAlsa::initParams(snd_pcm_t *pcm_handle)
return false;
}

if (::abs(real_rate - sample_rate) > 100)
if (::abs(static_cast<int>(real_rate) - sample_rate) > 100)
{
cerr << "*** ERROR: The sample rate could not be set to "
<< sample_rate << "Hz for ALSA device \"" << dev_name << "\". "
Expand Down
2 changes: 1 addition & 1 deletion src/async/audio/AsyncAudioDeviceFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class AudioDevice;
* @param _class The name of the class that handle the new audio device type
*/
#define REGISTER_AUDIO_DEVICE_TYPE(_name, _class) \
AudioDevice *create_ ## _class(const string& dev_name) \
AudioDevice *create_ ## _class(const std::string& dev_name) \
{ return new _class(dev_name); } \
static bool _class ## _creator_registered = \
AudioDeviceFactory::instance().registerCreator(_name, \
Expand Down

0 comments on commit 9962d2c

Please sign in to comment.