mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-08 13:51:43 +02:00
moved compatibility stuff into compat.h
This commit is contained in:
parent
d0a22c0d3c
commit
87b1857d8a
2 changed files with 6 additions and 5 deletions
|
@ -21,6 +21,7 @@
|
|||
#include <sstream>
|
||||
|
||||
#include "sampleFormat.h"
|
||||
#include "common/compat.h"
|
||||
#include "common/utils.h"
|
||||
#include "common/log.h"
|
||||
|
||||
|
@ -61,9 +62,9 @@ void SampleFormat::setFormat(const std::string& format)
|
|||
strs = split(format, ':');
|
||||
if (strs.size() == 3)
|
||||
setFormat(
|
||||
utl::stoul(strs[0]),
|
||||
utl::stoul(strs[1]),
|
||||
utl::stoul(strs[2]));
|
||||
cpt::stoul(strs[0]),
|
||||
cpt::stoul(strs[1]),
|
||||
cpt::stoul(strs[2]));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue