updating dependencies and code refactoring for the new changes
This commit is contained in:
Vendored
+1
-1
Submodule 3rdparty/cpr updated: feebd2fd54...07d784ccfe
Vendored
+1
-1
Submodule 3rdparty/jwt-cpp updated: 27f32983fb...65b632b674
Vendored
+1
-1
Submodule 3rdparty/oatpp updated: 5b4b313a0b...afbafe447f
Vendored
+1
-1
Submodule 3rdparty/taglib updated: 79bc9ccf8e...e36a9cabb9
@@ -12,7 +12,7 @@ namespace callback {
|
|||||||
StreamCallback();
|
StreamCallback();
|
||||||
StreamCallback(const std::string&);
|
StreamCallback(const std::string&);
|
||||||
|
|
||||||
oatpp::data::v_io_size read(void*, oatpp::data::v_io_size);
|
oatpp::v_io_size read(void*, oatpp::v_io_size);
|
||||||
private:
|
private:
|
||||||
std::string m_songPath;
|
std::string m_songPath;
|
||||||
|
|
||||||
|
|||||||
@@ -221,7 +221,7 @@ namespace controller {
|
|||||||
|
|
||||||
songDb = songRepo.retrieveRecord(songDb, type::SongFilter::id);
|
songDb = songRepo.retrieveRecord(songDb, type::SongFilter::id);
|
||||||
|
|
||||||
oatpp::data::v_io_size dSize = 1024;
|
auto dSize = 1024;
|
||||||
|
|
||||||
auto db = std::make_shared<oatpp::web::protocol::http::outgoing::ChunkedBody>(
|
auto db = std::make_shared<oatpp::web::protocol::http::outgoing::ChunkedBody>(
|
||||||
std::make_shared<callback::StreamCallback>(songDb.songPath),
|
std::make_shared<callback::StreamCallback>(songDb.songPath),
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace callback {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
oatpp::data::v_io_size StreamCallback::read(void *buff, oatpp::data::v_io_size count) {
|
oatpp::v_io_size StreamCallback::read(void *buff, oatpp::v_io_size count) {
|
||||||
if (m_counter >= m_fileSize) {
|
if (m_counter >= m_fileSize) {
|
||||||
std::cout << "done streaming song\n";
|
std::cout << "done streaming song\n";
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user