mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-31 18:06:15 +02:00
adjusted log tags
This commit is contained in:
parent
2872527e0b
commit
750df78090
6 changed files with 10 additions and 10 deletions
|
@ -46,7 +46,7 @@ PcmStream::PcmStream(PcmListener* pcmListener, const StreamUri& uri) : pcmListen
|
|||
if (uri_.query.find("sampleformat") == uri_.query.end())
|
||||
throw SnapException("Stream URI must have a sampleformat");
|
||||
sampleFormat_ = SampleFormat(uri_.query["sampleformat"]);
|
||||
logE << "PcmStream sampleFormat: " << sampleFormat_.getFormat() << "\n";
|
||||
logO << "PcmStream sampleFormat: " << sampleFormat_.getFormat() << "\n";
|
||||
|
||||
if (uri_.query.find("buffer_ms") != uri_.query.end())
|
||||
pcmReadMs_ = cpt::stoul(uri_.query["buffer_ms"]);
|
||||
|
@ -85,7 +85,7 @@ const SampleFormat& PcmStream::getSampleFormat() const
|
|||
|
||||
void PcmStream::start()
|
||||
{
|
||||
logE << "PcmStream start: " << sampleFormat_.getFormat() << "\n";
|
||||
logD << "PcmStream start: " << sampleFormat_.getFormat() << "\n";
|
||||
//TODO: wrong encoder settings leads to: terminate called after throwing an instance of 'std::system_error' what(): Invalid argument
|
||||
encoder_->init(this, sampleFormat_);
|
||||
|
||||
|
|
|
@ -45,11 +45,11 @@ PcmStream* StreamManager::addStream(const std::string& uri)
|
|||
if (streamUri.query.find("buffer_ms") == streamUri.query.end())
|
||||
streamUri.query["buffer_ms"] = to_string(readBufferMs_);
|
||||
|
||||
// logE << "\nURI: " << streamUri.uri << "\nscheme: " << streamUri.scheme << "\nhost: "
|
||||
// logD << "\nURI: " << streamUri.uri << "\nscheme: " << streamUri.scheme << "\nhost: "
|
||||
// << streamUri.host << "\npath: " << streamUri.path << "\nfragment: " << streamUri.fragment << "\n";
|
||||
|
||||
// for (auto kv: streamUri.query)
|
||||
// logE << "key: '" << kv.first << "' value: '" << kv.second << "'\n";
|
||||
// logD << "key: '" << kv.first << "' value: '" << kv.second << "'\n";
|
||||
|
||||
if (streamUri.scheme == "pipe")
|
||||
{
|
||||
|
|
|
@ -31,7 +31,7 @@ StreamUri::StreamUri(const std::string& streamUri)
|
|||
// https://en.wikipedia.org/wiki/Uniform_Resource_Identifier
|
||||
// scheme:[//[user:password@]host[:port]][/]path[?query][#fragment]
|
||||
// would be more elegant with regex. Not yet supported on my dev machine's gcc 4.8 :(
|
||||
logE << "StreamUri: " << streamUri << "\n";
|
||||
logD << "StreamUri: " << streamUri << "\n";
|
||||
size_t pos;
|
||||
uri = trim_copy(streamUri);
|
||||
while (!uri.empty() && ((uri[0] == '\'') || (uri[0] == '"')))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue