SD2 files contain only a single sound per file. The problem (in this case- in others it's a blessing) is that the information about the sound is all in the resource fork. I can't get access to it with a simple read statement, but have to use the Mac Toolbox routines. The resources I need to look at are: "STR ", "sample-size" "STR ", "sample-rate" "STR ", "channels" I can see these resources in ResEdit, and they are really straight forward. But I can't seem to get the string values of these resources. Anyone have any suggestions? Thanks again for everything, jeremy on 6/11/98 2:48 PM , Greg Aiken wrote: >If you can't figure out how to purely do this in Perl, use SoundExtractor >(sharware) to extract all sounds out of any mac file. These are then >saved as >individual sound files (I'm not sure if whats saved is in the data fork (ie: >perl accessible) or if they're still in resource fork (in which case, you're >inthe same boat). You might try it out. > >Jeremy Lee wrote: > >> I figured out a part of my problem by doing this: >> >> ---- >> $file = "Super Duo:Sound:Test sound:SD2mono22050/8bit"; >> >> open (INFILE, $file) or die "Cannot open file"; >> >> $sp = FSpOpenResFile(INFILE,1); #Read only >> ---- >> >> but I still can't figure out how to get the resources themselves into a >> variable. Can anyone help more? >> >> Thanks, >> >> Jeremy >> >> on 6/10/98 3:29 PM , I wrote: >> >> >I was trying to use the Mac::Resources package. I told it to do this: >> > >> >($file = &MacPerl::Choose(&GUSI'AF_FILE,0,"File 1")) or die; >> > >> >$sp = FSpOpenResFile($file); >> > >> > >> >and got the error message: >> > >> ># Usage: Mac::Resources::FSpOpenResFile(spec, permission). >> >> Jeremy Lee | Owner- >> Sound Designer/Technician | Madrone Ridge Sound Design >> Oregon Shakespeare Festival | Sound for Multimedia >> | >> http://www.ashland.net/madrone >> ------------------------------------------------------------------------- >> "Is it not strange that sheeps' guts should hale souls out of men's >> bodies?" >> - Wm. Shakespeare >> >> "The mime sang:" - Alfred Jarry >> ------------------------ >> >> ***** Want to unsubscribe from this list? >> ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch > > > > Jeremy Lee | Owner- Sound Designer/Technician | Madrone Ridge Sound Design Oregon Shakespeare Festival | Sound for Multimedia | http://www.ashland.net/madrone ------------------------------------------------------------------------- "Is it not strange that sheeps' guts should hale souls out of men's bodies?" - Wm. Shakespeare "The mime sang:" - Alfred Jarry ------------------------ ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch