mcjack123 / aukit Goto Github PK
View Code? Open in Web Editor NEWAUKit: Audio decoding and processing framework for ComputerCraft
Home Page: https://mcjack123.github.io/AUKit/
License: MIT License
AUKit: Audio decoding and processing framework for ComputerCraft
Home Page: https://mcjack123.github.io/AUKit/
License: MIT License
just setup a compelting function
Code:
local aukit = require("aukit")
local dta = http.get({url = "<A github link to a flac file>", binary = true})
local lines = {}
local block = 48000
while true do
local chunk = dta.read(block)
if not chunk then break end
table.insert(lines,chunk)
end
local pos = 0
function catter()
pos = pos + 1
return lines[pos]
end
aukit.play(aukit.stream.flac(catter), peripheral.wrap("left"), peripheral.wrap("right"))
The code yields internally when things take a long time to avoid abort timeouts, but events are recycled to keep them for other code.
With removal of nosleep
๐ ๐ โค๏ธ this sentence is no longer correct.
Edit:
Also
Line 1433 in 10d2ccc
return {line}, p * 8 / sampleRate
i have an azuracast instance that hosts an mp3 file with icecast on https://<serverid>.contaboserver.net:<stationport>/radio.mp3 azuracast devs also host a public demo on https://demo.azuracast.com/listen/azuratest_radio/radio.mp3 can i stream the file live?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.