Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
badaix committed Feb 16, 2025
1 parent 84fe434 commit 919cd59
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions common/resampler.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***
This file is part of snapcast
Copyright (C) 2014-2024 Johannes Pohl
Copyright (C) 2014-2025 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -21,7 +21,9 @@

// local headers
#include "common/aixlog.hpp"
#ifndef HAS_SOXR
#include "common/snap_exception.hpp"
#endif

// standard headers
#include <cmath>
Expand Down Expand Up @@ -195,7 +197,7 @@ std::shared_ptr<msg::PcmChunk> Resampler::resample(const msg::PcmChunk& chunk)
}


shared_ptr<msg::PcmChunk> Resampler::resample(shared_ptr<msg::PcmChunk> chunk)
std::shared_ptr<msg::PcmChunk> Resampler::resample(std::shared_ptr<msg::PcmChunk> chunk)
{
#ifndef HAS_SOXR
return chunk;
Expand Down
2 changes: 1 addition & 1 deletion server/authinfo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class AuthInfo

/// Authenticate with basic scheme
ErrorCode authenticateBasic(const std::string& credentials);
/// Authenticate with <user>:<password>
/// Authenticate with user:password
ErrorCode authenticatePlain(const std::string& user_password);
/// Authenticate with bearer scheme
// ErrorCode authenticateBearer(const std::string& token);
Expand Down
2 changes: 1 addition & 1 deletion server/streamreader/pcm_stream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class PcmStream : public std::enable_shared_from_this<PcmStream>
virtual void onStateChanged(const PcmStream* pcmStream, ReaderState state) = 0;
/// Chunk @p chunk of @p pcmStream has read
virtual void onChunkRead(const PcmStream* pcmStream, const msg::PcmChunk& chunk) = 0;
/// Chunk @p chunk with duration @p duration of stream @pcmStream has been encoded
/// Chunk @p chunk with duration @p duration of stream @p pcmStream has been encoded
virtual void onChunkEncoded(const PcmStream* pcmStream, std::shared_ptr<msg::PcmChunk> chunk, double duration) = 0;
/// Stream @p pcmStream muissed to read audio with duration @p ms
virtual void onResync(const PcmStream* pcmStream, double ms) = 0;
Expand Down
2 changes: 1 addition & 1 deletion server/streamreader/watchdog.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Watchdog
using TimeoutHandler = std::function<void(std::chrono::milliseconds ms)>;

/// c'tor
explicit Watchdog(const boost::asio::any_io_executor& executor);//, WatchdogListener* listener = nullptr);
explicit Watchdog(const boost::asio::any_io_executor& executor);
/// d'tor
virtual ~Watchdog();

Expand Down

0 comments on commit 919cd59

Please sign in to comment.