America Online APPLE II DEVELOPMENT FORUM CONFERENCE LOG Tuesday, December 8, 1992 10:00 p.m. Eastern Time Topic: Operating Systems & General Questions Forum Leader: Gary Jacobson (AFL GaryJ) AFL GaryJ Welcome to the Apple II Development Forum! AFL GaryJ Tonight, our topic is Operating Systems. AFL GaryJ We can discuss whatever operating system questions you may have... AFL GaryJ from ProDOS 8, GS/OS, and even DOS 3.3. AFL GaryJ And, maybe we can drag out some things about System 6.01? AFC DYAJim Well, put me in for a question on sounds AFC SteveB (Hmm... megots a question, but it's not on topic) AFC DYAJim (whenever we get to it :-) .. I have some Sound CDev / general rSound q's AFC DYAJim that Dave can probably solve :-) AFL GaryJ Sounds? Sounds? Gee, that was last week :D AFC DYAJim (I know.. just my timing! :-( ) AFL GaryJ We can work that in, I think, Jim :) AFL GaryJ Well, ok, does anyone have a question or comment that is *on* topic first? AFC SteveB Well, it has to do with the filetype descriptor files... There's one AFC SteveB aspect of them that I'm confused aboout... that be's "ranges." When AFC SteveB searching filetype descriptors, do I first search for an exact match, AFC SteveB or a range, or what? AFC SteveB GA :) LL AndyW Nothing that I know about uses the range attributes (not even the Finder).. LL AndyW And, you'd use the first thing that matches, if it's in the range, use it, LL AndyW if not, use the first thing you find that does.. LL AndyW Remember, the LAST thing to look at is the supplied FType file.. AFC SteveB For example, I want my program to build a list of filetypes containing AFC SteveB all the nice textual names next to the matches... causing my engine AFC SteveB to come up with the filetype names should be easy, but it's building AFC SteveB the second list of defined auxtypes for a given filetype that's the pain. LL AndyW It's pretty simple really.. LL AndyW Load the FType.Apple, then load the rest. Anything that is a duplicate will LL AndyW replace anything that came from the FType.Apple file.. Dave Lyons BTW, never hard-code the filenames of filetype descriptor files. The search order is by decreasing Dave Lyons auxiliary type of the file...FType.Apple just presently happens to be the one with auxtype zero. Dave Lyons My earlier comment was: Dave Lyons True, the Finder ignores the entire file if there are any ranges in it. -- But if you decide to deal Dave Lyons with ranges anyway, something falling in a range is just as "exact" as any other match...a non-range Dave Lyons overrides it only if you find it first. ga LL AndyW There should also be only one file with aux type of $0000, if there's more than LL AndyW one, you should yell loudly at the user, and then, not use any of the files.. LL AndyW if you decide to continue anyway.. done.. JWankerl Is all this documented in the FTD FTN? LL AndyW Sure is AFC SteveB Yup... that's what confused me. LL AndyW BTW Steve, I have a dir search routine in C that will return a list of all LL AndyW FType files, yelling if there's 2 aux $0000 files, and placing the $0000 file LL AndyW first.. AFC SteveB Ok, so for searching for all the attached auxtypes for... say... AFC SteveB $BC Generic Load Files, I just do a mother loop looking for fields AFC SteveB that have $bc in their filetype field and something else in the aux... I then AFC SteveB throw that into my aux list. Cool. Fun file format. :) Andy, if you AFC SteveB want, ship it on over here (or upload it)... nothing like lots o sample code :) LL AndyW True.. It doesn't sort by aux type any of the other files, but it will give LL AndyW you the $0000 file first... AFC DYAJim I want to know how to convert the relpitch and/or sampling rate fields of an AFC DYAJim rSoundSample resource header into a value that I can stuff in a parmblock to AFC DYAJim pass to FFStartSound to play the sound. This seems to be an incredibly way AFC DYAJim too complex procedure. Preferably I'd like to do it without the use of a AFC DYAJim 3k lookup table (as in the Sound CDev if I didn't glance over it too quick.) AFC DYAJim I want something short and sweet :-) (and who made us go thru all this nasty AFC DYAJim work???! :) Matt DTS The math involves natural logs and such, so a lookup table is significantly faster than trying Matt DTS to do it yourself. However, if you want, I had to put all this together about 3 months ago when it Matt DTS came up at work and in A2Pro all at the same time (ACK!), so I should have it on my hard drive if I Matt DTS can find it. It's scheduled for a future revision to HCGS TN #3. Do you want it in the conference, Matt DTS or should I post it somewhere? AFC DYAJim If you could email it I'd be greatful (unless you want to u/l it to newfiles) Matt DTS Nope -- if I'm going to get it out, it's going to be public (message or conference). Just pick which. AFL GaryJ I'd like to see it posted publicly someplace... if not here, an upload or in one of the AFL GaryJ folders (where ever it would fit the best) AFC DYAJim Oh. it'd probably be easier to save and deal with later if you posted it AFC DYAJim (Why can't they just have another word in the header with this value all AFC DYAJim precalculated, I wonder) James S WI So is there any good reason for the pain in the *** format? Dave Lyons "Who inflicted this mess upon us"--not me! It was already invented before My Time. :-) Dave Lyons ga LL AndyW They want to make things hard for YOU Jim!! :) AFC DYAJim (maybe I'll just rip the routine out of the Sound Cdev ;-) shouldn't take more AFC DYAJim than 10 min :-) I guess T2 will probably grow by 3k because of this.. AFC SteveB You could always find the sound CP in memory and use it's lookup table... nice AFC SteveB way to break T2 in future SSW releases, tho :) Dave Lyons (Please don't! But if you pray, maybe future system software will give you access to the Sound Dave Lyons CP's copy of that table. Or maybe even if you don't pray.) ga AFL GaryJ Is that a hint? I hope so. AFC DYAJim Well I guess then for the current version of T2, I'll hardcode the table, AFC DYAJim and remove it if there are any upgrades post-6.0.1. LL AndyW Does anyone here have an interest in a program to add GSBug labels to programs LL AndyW such as C or Pascal? (Since no one I know of has a linker that will add them). LL AndyW I have written a program that will do this. It will read OBJ files, add LL AndyW GSBug labels to only code files, and only to the START label.. JWankerl You're gunna give me a copy, right? You're not just teasing me, right? LL AndyW It will also al