flacwrite - write out a FLAC-encoded audio file using flac

flacwrite writes FLAC-encoded audio files by piping data to the external flac binary

You are now following this Submission

If you have a flac binary, and also the popenw mex extension, this routine allows you to write flac (free lossless audio coder)-format files as a drop-in replacement for wavwrite, accepting all the same syntax.

You can get popenw at http://www.mathworks.com/matlabcentral/fileexchange/13851

You can get the flac binary at
http://flac.sourceforge.net/

Cite As

Dan Ellis (2026). flacwrite - write out a FLAC-encoded audio file using flac (https://nl.mathworks.com/matlabcentral/fileexchange/30760-flacwrite-write-out-a-flac-encoded-audio-file-using-flac), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Fast FLAC reader

Inspired: audioread - unified audio file input function

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0