kernel_oscli
jim lesurf (2082) 1438 posts |
I’m trying to write a program that can make use of the ‘flac’ port to read chunks of data from a flac file and then analyse them. However I’m stopped by something I don’t understand about _kernel_oscli (Norcrof/Acorn compiler). So I hope someone can explain and suggest a solution… The code I’m using is as follows
(Sorry, as usual the way, this forum engine ‘interprets’ text muddles the results a bit!) The flac command gets acted upon and the output file of raw values appears. But the program (being run in a TaskWindow) halts. I don’t see the “temp file made” text or anything that follows to tell me the size of the saved data file. So far as I can see, running the flac command with _kernel_oscli terminates the entire program which issued the command, so I can’t then examine the results with following code or proceed. Can someone explain how I can ensure the process continues OK? Failing that, anyone have code I can actually understand and use to DIY the flac decoding? I need this to be accurate (i.e. give the same results as flac and sox) and work with 16 and 24 bit flac files of any standard sample rate. Jim |
jim lesurf (2082) 1438 posts |
Please ignore the above! :-) I posted again in a more relevant forum. Then promptly twigged how to solve my problem by using system() instead. Jim |