-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
335 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright (c) Roc Streaming authors | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
|
||
#include "receiver.hpp" | ||
|
||
namespace rocvad { | ||
|
||
Receiver::Receiver(std::shared_ptr<roc_context> network_context, | ||
const std::string& uid, | ||
const DeviceLocalEncoding& device_encoding, | ||
const DeviceReceiverConfig& receiver_config) | ||
{ | ||
} | ||
|
||
void Receiver::bind(DeviceEndpointInfo& endpoint_info) | ||
{ | ||
} | ||
|
||
void Receiver::connect(DeviceEndpointInfo& endpoint_info) | ||
{ | ||
} | ||
|
||
void Receiver::pause() noexcept | ||
{ | ||
} | ||
|
||
void Receiver::resume() noexcept | ||
{ | ||
} | ||
|
||
void Receiver::read(uint64_t timestamp, void* bytes, size_t n_bytes) noexcept | ||
{ | ||
} | ||
|
||
} // namespace rocvad |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright (c) Roc Streaming authors | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "transceiver.hpp" | ||
|
||
#include <roc/context.h> | ||
#include <roc/receiver.h> | ||
|
||
namespace rocvad { | ||
|
||
class Receiver : public Transceiver | ||
{ | ||
public: | ||
Receiver(std::shared_ptr<roc_context> network_context, | ||
const std::string& uid, | ||
const DeviceLocalEncoding& device_encoding, | ||
const DeviceReceiverConfig& receiver_config); | ||
|
||
void bind(DeviceEndpointInfo& endpoint_info) override; | ||
void connect(DeviceEndpointInfo& endpoint_info) override; | ||
|
||
void pause() noexcept override; | ||
void resume() noexcept override; | ||
|
||
void read(uint64_t timestamp, void* bytes, size_t n_bytes) noexcept override; | ||
|
||
private: | ||
std::string uid_; | ||
|
||
std::shared_ptr<roc_context> net_context_; | ||
std::shared_ptr<roc_receiver> net_receiver_; | ||
}; | ||
|
||
} // namespace rocvad |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright (c) Roc Streaming authors | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
|
||
#include "sender.hpp" | ||
|
||
namespace rocvad { | ||
|
||
Sender::Sender(std::shared_ptr<roc_context> network_context, | ||
const std::string& uid, | ||
const DeviceLocalEncoding& device_encoding, | ||
const DeviceSenderConfig& sender_config) | ||
{ | ||
} | ||
|
||
void Sender::bind(DeviceEndpointInfo& endpoint_info) | ||
{ | ||
} | ||
|
||
void Sender::connect(DeviceEndpointInfo& endpoint_info) | ||
{ | ||
} | ||
|
||
void Sender::pause() noexcept | ||
{ | ||
} | ||
|
||
void Sender::resume() noexcept | ||
{ | ||
} | ||
|
||
void Sender::write(uint64_t timestamp, const void* bytes, size_t n_bytes) noexcept | ||
{ | ||
} | ||
|
||
} // namespace rocvad |
Oops, something went wrong.