docs: rosetta naming in README, docs, guide, licenses
This commit is contained in:
1 parent
22ddcd78fa
commit
753ae98d4a
20 files changed
+123
-123
No files matched your search
+3
-3
@@ -8,7 +8,7 @@ used the same way.
|
||||
```luau
|
||||
local song = assert(F.audio.load(flacBytes)) -- Audio: the whole file decoded
|
||||
print(song.sampleRate, song.channels, song.frames) -- 44100 2 44100
|
||||
print(song.tags.title, song.tags.artist) -- Docs Tone formats-luau
|
||||
print(song.tags.title, song.tags.artist) -- Docs Tone rosetta
|
||||
local quieter = F.ops.audio.gainDb(song, -6)
|
||||
local mp3 = assert(F.save(quieter, nil, { format = "mp3", bitrate = 192000 })) -- a buffer
|
||||
assert(F.detect(mp3) == "mp3")
|
||||
@@ -225,7 +225,7 @@ source can be fed block by block:
|
||||
|
||||
<!-- doc:display needs LÖVE -->
|
||||
```lua
|
||||
local F = require("formats")
|
||||
local F = require("rosetta")
|
||||
local sd = F.host.toSoundData(F.audio.load("music.flac")) -- whole file
|
||||
love.audio.newSource(sd):play()
|
||||
|
||||
@@ -313,7 +313,7 @@ assert(wv.bitsPerSample == 16 and wv.lossless and wv.tags.title == "Docs Tone")
|
||||
local exact, n = wv:readInt(1024) -- i32 samples, as wvunpack writes them
|
||||
assert(n == 1024 and buffer.readi32(exact, 0) == 0)
|
||||
local ape = assert(F.audio.load(apeBytes)) -- any level, fast .. insane
|
||||
assert(ape.meta.source.format == "ape" and ape.tags.artist == "formats-luau")
|
||||
assert(ape.meta.source.format == "ape" and ape.tags.artist == "rosetta")
|
||||
local tta = assert(F.audio.open(ttaBytes))
|
||||
tta:seek(0.5)
|
||||
assert(math.abs(tta:position() - 0.5) < 1e-6)
|
||||
|
||||
Reference in new issue
Block a user