wav 1.0.0 copy "wav: ^1.0.0" to clipboard
wav: ^1.0.0 copied to clipboard

outdated

Simple tools for reading and writing WAV files.

wav #

pub package Build Status Coverage Status

Simple tools for reading and writing WAV files.

This package currently supportsreading and writing 8, 16, 24, and 32 bit PCM. Other formats can be added as needed (just file a bug).

Usage #

// Read a WAV file.
final wav = await Wav.readFile(filename);

// Look at its metadata.
print(wav.format);
print(wav.samplesPerSecond);

// Mess with its audio data.
for (final chan in wav.channels) {
  for (int i = 0; i < chan.length; ++i) {
    chan[i] /= 2;  // Decrease the volume.
  }
}

// Write to another WAV file.
await wav.writeFile(otherFilename);
20
likes
0
pub points
91%
popularity

Publisher

unverified uploader

Simple tools for reading and writing WAV files.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on wav