Cool Edit problem via Myriad


Cool Edit problem via Myriad

Author
Message
Peter Jarrett
Peter Jarrett
Forum Sage
Forum Sage (628K reputation)Forum Sage (628K reputation)Forum Sage (628K reputation)Forum Sage (628K reputation)Forum Sage (628K reputation)Forum Sage (628K reputation)Forum Sage (628K reputation)Forum Sage (628K reputation)Forum Sage (628K reputation)

Group: Broadcast Radio
Posts: 1.8K, Visits: 3.7K
That at least is an easy one :-)

We call a function in windows called CreateProcess which does something similar (though not exactly) to right clicking on an item and choosing the \"action\" option - in this case Open.

This effectively boils down to Windows then executing this command line for us:

\"c:\\Program Files\\Cool2000\\cool2000.exe\" \"m:\\myriad\\audio\\myr12345.wav\"

Obviously the paths may be different :-)

Myriad then sits there polling the Process list looking to see when Cool Edit (or whichever other editor you may be using) is no longer there (i.e. has exited)

At this point myriad then opens the wav file in read only mode to read in the duration of the audio then closes the file. If the length has changed, Myriad then double checks that the extro/intro etc. are all still valid (i.e. not after the length of the audio) and then reopens the file for read/write access, stamps in an updated cartchunk and the closes it.

Finally, you get to edit the detail on the Cart Details to your hearts content Smile

------------
Peter Jarrett, Technical Director
Broadcast Radio Ltd.

Bill Bailey: No win, no fee, no basis in reality. Just a room above a minicab office in Acton and a steady stream of greedy simpletons whose delusion is only matched by their clumsiness


GO


Reading This Topic


Login
Existing Account
Email Address:


Password:


Select a Forum....





























Broadcast Radio Forums


Search