ComputerCraft Forums

ComputerCraft => Media => Topic started by: Kestin on Aug 18, 2024, 12:07 PM

Title: Loading Audio from a WAV
Post by: Kestin on Aug 18, 2024, 12:07 PM
I thought I'd share a little demo of my WAV File Loader API thingy!


===UPDATE===
I have released my library on Github!
Check it at: https://github.com/Kestin4Real/CC-WAV-loader
Title: Loading Audio from a WAV
Post by: Purrcival on Aug 19, 2024, 06:26 AM
Nice! Does it interact with the speaker to produce the output? Because I want to move from DFWPM, because it's a very bad format.
Title: Loading Audio from a WAV
Post by: Kestin on Aug 19, 2024, 08:21 AM
Quote from: QuickMuffin8782 on Aug 19, 2024, 06:26 AMNice! Does it interact with the speaker to produce the output? Because I want to move from DFWPM, because it's a very bad format.

My WAV API is just a loader...
It puts the audio data into one big table.
Its up to the user how to play!

How ever... Its as simple as taking 131.072 samples from the table and sending it to the speaker!
Channel merging and the bits per sample are converted by the API!
There is just the frequency to worry about! For now I let the user handle that part...