View Single Post
  #40 (permalink)  
Old May 24th 15, 01:26 PM posted to uk.comp.os.linux,uk.rec.audio
Jim Lesurf[_2_]
external usenet poster
 
Posts: 2,668
Default Flac and Audio CD Health Checks

In article , Tony Houghton
wrote:
In , Jim Lesurf
wrote:



I'm calling flac to read successive 5-sec chunks from a flac file.
Each time the flac utility will presumably have to seek.


Let's make sure I understand what's going on here. You want your program
to analyse a flac file and to do this you're using the flac utility to
decode that file into raw data your program can understand?


Yes. I call flac to have it read a portion of a flac file and generate an
output file that contains the 'decoded' LPCM values. That's launched by my
main program using a system(flac ...) call. The program then opens and
freads the file to examine and analyse the content. This process is then
repeated chunk-by-chunk until the entire payload of the flac file is done.



I am aware there are many ways to do what I've done. However I've done
it so far in the way I found easiest and most familiar.


And because there wasn't really another way available in RISC OS.


So far I understand, that's the case. However its the only way I've found
practical on RO which avoids me having to produce a flac-standard decoder
that reads directly.


You've gone to some trouble to learn how to make a RAM disc, you could
have spent that time learning about pipes.


I was actually looking into both. But found producing a 'ram disc'
relatively easy using the commands I outlined. Since that also fits nicely
with the RO original sources, I've used it successfully.

Jim

--
Please use the address on the audiomisc page if you wish to email me.
Electronics http://www.st-and.ac.uk/~www_pa/Scot...o/electron.htm
Armstrong Audio http://www.audiomisc.co.uk/Armstrong/armstrong.html
Audio Misc http://www.audiomisc.co.uk/index.html