Are we supposed to be able to record FLAC files in windows?
I tried
s.recHeaderFormat = "FLAC"
s.prepareForRecord
and get
File 'C:/e/sc-win-recordings\SC_210413_200025.FLAC' could not be opened: Format not recognised.
thanks!
eddi
Are we supposed to be able to record FLAC files in windows?
I tried
s.recHeaderFormat = "FLAC"
s.prepareForRecord
and get
File 'C:/e/sc-win-recordings\SC_210413_200025.FLAC' could not be opened: Format not recognised.
thanks!
eddi
I could be wrong about this, but I believe FLAC supports only int16 and int24 sample formats. Since the default recSampleFormat is float, this might cause the error…?
Edit: Confirmed here – libsndfile : Supported formats – FLAC does not allow floating point samples. You’ll have to change the sample format too.
I was wrong about one thing – FLAC also supports 8-bit integer samples. I’m sure this will be of great importance to a large proportion of users
hjh
excellent, James, thank you!
i am now able to record, e.g. like this
s.recSampleFormat = "int8"
s.recHeaderFormat = "FLAC"
s.prepareForRecord
s.record
s.stopRecording; // Recording Stopped: (SC_210414_130539.FLAC)
sounds great in Audacity.
i then went down a rabbit hole, because i noticed the file sizes were all roughly the same for int8, 16 & 24, as well as for AIFF/float, all recording the same little snippet. i can’t get Audacity to tell me what kind of file it’s playing (it always says “32-bit float” on left, and i can’t find a more detailed listing, strangely).
Can anyone recommend a trustworthy way of determining the actual audio format?
thanks!
eddi