Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ tests/

vcred.json
vdk.log
workspace/
workspace/

.vscode/
.idea/
vdk/
5 changes: 0 additions & 5 deletions .vscode/settings.json

This file was deleted.

Binary file added bin/ffmpeg-linux-arm64.bin
Binary file not shown.
Binary file added bin/ffmpeg-linux-x64.bin
Binary file not shown.
Binary file added bin/ffmpeg-win32-arm64.exe
Binary file not shown.
Binary file added bin/ffmpeg-win32-x64.exe
Binary file not shown.
Binary file removed bin/mpg123-win32-x64.dll
Binary file not shown.
Binary file removed bin/mpg123-win32-x86.dll
Binary file not shown.
Binary file added bin/opus-linux-x64.so
Binary file not shown.
Binary file added bin/opus-linux-x86.so
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions example.app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ sources:
# Available in YouTube website in Authorization header. Requires intercepting the website's requests.
authorization: 'DISABLED'
# Available in YouTube website in Cookie header. Requires intercepting the website's requests.
cookie: 'DISABLED',
cookie: 'DISABLED'
# Available in YouTube website in X-Goog-Visitor-Id header. Requires intercepting the website's requests.
visitorId: 'DISABLED'
soundcloud:
Expand All @@ -48,4 +48,4 @@ audio:
quality: 'high'
encryption: 'aead_aes256_gcm_rtpsize'
# best, medium, fastest, zero order holder, linear
resamplingQuality: 'best'
resamplingQuality: 'best'
2 changes: 1 addition & 1 deletion libs/quickmedia
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"codename":"IA","license":"MIT","homepage":"https://github.com/LunaticSea/LunaStream","name":"LunaStream","version":{"preRelease":"dev","semver":"1.0.2-dev","major":"1","build":"","minor":"0","patch":"2"},"runtime":{"rex":"8.37","luvi":"v2.14.0","winsvc":"1.0.0","luvit":"2.18.1","libuv":"1.44.2"},"buildTime":1740154346,"git":{"commit":"79d52771c9df430dbe8acb68b52b709b70705f48","commitTime":"1740146777","branch":"add/voice"},"author":{"name":"RainyXeon","email":"minh15052008@gmail.com"}}
{"homepage":"https://github.com/LunaticSea/LunaStream","codename":"IA","name":"LunaStream","version":{"patch":"2","build":"","preRelease":"dev","semver":"1.0.2-dev","major":"1","minor":"0"},"license":"MIT","author":{"name":"RainyXeon","email":"minh15052008@gmail.com"},"runtime":{"winsvc":"1.0.0","luvit":"2.18.1","libuv":"1.48.0","luvi":"v2.15.0"},"buildTime":1746283890,"git":{"branch":"developments","commitTime":"1746283540","commit":"f9919add877567d2eebefdad164a0b441126ee0f"}}
7 changes: 1 addition & 6 deletions src/managers/player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ local class = require('class')
local voice = require('../voice')
local Player = class('Player')
local decoder = require('../track/decoder')
local quickmedia = require("quickmedia")
local json = require('json')

function Player:__init(luna, guildId, sessionId)
Expand Down Expand Up @@ -78,11 +77,7 @@ function Player:play(track)
end
end

if format == "mp3" then
self._stream = stream
else
self._stream = stream:pipe(quickmedia.opus.Decoder:new(self.voice._opus))
end
self._stream = stream

if self.voice then
self.voice:play(self._stream, { encoder = true })
Expand Down
2 changes: 1 addition & 1 deletion src/router/decodetrack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ return function(req, res, answer)
)
end

answer(json.encode(result), 200, { ["Content-Type"] = "text/plain" })
answer(json.encode(result), 200, { ["Content-Type"] = "application/json" })
end
Loading
Loading