Convert an Apple encoded wav file to FLAC encoded file
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE.txt
README
wav_to_flac.c
wav_to_flac.h

README

Use libFLAC to convert a WAVE file generated by Apple's Core Audio Framework to one or more FLAC files specified by interval_seconds.

Open Source under the BSD license, see LICENSE.txt for details.

To use in your project: 

1. Build and include FLACiOS framework in your project: https://github.com/jhurt/FLACiOS 
2. In your Objective C class:

#include "wav_to_flac.h"

NSString *flacFileWithoutExtension = //path to the output file
NSString *waveFile = //path to the wave input file
int interval_seconds = 30;
char** flac_files = (char**) malloc(sizeof(char*) * 1024);

int conversionResult = convertWavToFlac([waveFile UTF8String], [flacFileWithoutExtension UTF8String], interval_seconds, flac_files);

//do something with the flac_files