⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 51846

📁 神经网络昆斯林的新闻组分类2006
💻
字号:
Xref: cantaloupe.srv.cs.cmu.edu comp.sys.mac.games:25395 comp.sys.mac.system:30358 comp.sys.mac.hardware:51846Newsgroups: comp.sys.mac.games,comp.sys.mac.system,comp.sys.mac.hardwarePath: cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!bb3.andrew.cmu.edu!news.sei.cmu.edu!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!agate!apple!mumbo.apple.com!gallant.apple.com!pyd.apple.com!buzzFrom: Steve Bollinger <buzz@apple.com>Subject: Re: Stereo sound problem (?) on mac gamesSender: news@gallant.apple.comMessage-ID: <1993Apr19.183437.28365@gallant.apple.com>X-Useragent: Nuntius v1.1.1d20Date: Mon, 19 Apr 1993 18:34:37 GMTX-Xxdate: Mon, 19 Apr 93 19:34:37 GMTX-Xxmessage-Id: <A7F83ECD5E013847@pyd.apple.com>References: <1qsfak$skc@network.ucsd.edu>Organization: Apple Computer, Inc.Lines: 192In article <1qsfak$skc@network.ucsd.edu> Doug P. Book,dpb@sdchemw2.ucsd.edu writes:>Hi.  I think I have a problem with the stereo sound output on my Quadra>900, but I am not totally sure because my roomate has the same problem>on his PowerBook 170.  Any info or experience anyopne has would be>greatly appreciated.>>When I hook my Quadra up to my home stereo system, the following types>of sounds (mono, as far as I can tell) all play fine through BOTH>speakers:>>system beeps  (already provided ones such as Indigo and ones I record)>>Armor Alley>Spectre>Spaceward Ho!>>>But, the following games only play out of the left channel:>>Lemmings>Out of This World  (awesome game, BTW)>Glider 4.0>OIDS>>>But still, STEREO system beeps do play in stereo, through BOTH speakers.>(The one I'm specifically referrring to is Apocolyptic Beginning, which>my roommate downloaded from some ftp site (sumex?))>>>All of the symptoms are the same on my rommates 170 (he can't run>OOTW because he doesn't have color).>>We're both running system 7.1>>>>Does anyone with Lemmings or the other three games I mentioned above get>sound out of both speakers on a Mac II class, Quadra, LC, PowerBook 140or>greater, Centris, SE/30, etc... (stereo) machine?>>I used to have a Mac II, and I sort of rememeber Lemmings playing in>stereo on that machine, not just on the left channel.  (I could be>mistaken, though.  If there were a problem with the Quad 900's and PB>170's, I am wondering why the system beeps still play in stereo?  Ifthere>isn't a problem with our machines, I wonder why the 4 games above are>apparantly written to support only one channel of stereo when they>could just use mono sounds so the mono sound would at least come out of>both speakers  (like Spectre, etc. do)?>>Quadra 900's and PowerBook 170's have the same ROMS (to my knowledge),>so maybe this is a ROM problem?  (if so, though, why wouldn't System 7.1>patch over this problem?)>>>>>Thanks for any help you can provide!In article <1993Apr18.213827.9974@kth.se> Jon Wtte,d88-jwa@hemul.nada.kth.se writes:>Mac sound hardware is diverse; some macs play in stereo and>mix the output (the SE/30 for instance) while others play in>stereo but ONLY has the left channel for the speaker, while>some are "truly" mono (like the LC)>>Developers know that stuff played in the left channel is>guaranteed to be heard, while the right channel isn't. Some>send data to both, some only send data to the left channel>(the first is preferrable, of course)Okay, I guess its time for a quick explanation of Mac sound.The original documentation for the sound hardware (IM-3) documents how tomake sound by directly accessing hardware.  Basically, you jam valuesinto all the even bytes from SoundBase to SoundBase+0x170. This wasbecauseof how the Mac 128 (and some later machines) generated sound was byscanningthis block and D/Aing every even byte (the odd bytes went to the floppy onsome machines).When the Mac II (and Apple Sound Chip) was invented, it was designed togenerate stereo sound. It was also designed to be compatible with we hadoncedocumented. So storing bytes at the even values at SoundBase meant "Iwant toplay a mono sound" and so it was emulated. But Apple had since retractedthedocumentation on SoundBase and decided not to document the lowest layersofsound generation. So apple never explained where to stuff bytes if youwantto make stereo sound.Enter game developers. The sound driver and current sound manager areinconveniently lame for making games. Furthermore, people who port fromtheIBM don't want to learn more APIs. So, it has become popular for gamewriters to write to SoundBase to make sound, since it is very easy.Since the Mac II, Apple has had many different kind of sound outputhardware,and the only things they have in common are that writing to SoundBaseworks.On some hardware, (Mac II, IIx, IIcx, IIci at least), writing to SoundBasegets you mono sound through both speakers. On some Macs (Quadra700/900/950at least) writing to SoundBase gets you mono sound on the left channelonly.Both are technically correct interpretations of the originalspecification,but one is obviously preferable for asthetic reasons.If developers use the Sound Manager (and I think the sound driver), monosounds will (typically) come out through both channels regardless of theunderlying hardware. It is possible to specify you want to generate leftchannel only, but no one does. If developers write to sound base, theirgames will only come out the left on some games.The other problem, the original Mac II only producing left channel soundon the internal speaker, while the SE/30 mixes both, isn't really related.It is due to the post generation amplification used on the motherboards ofthe different machines. It only affects true stereo sounds. Sounds whichare actually mono, will play on the internal speaker, no matter whatmachineyou have.Now, to more directly address the question, the games you list:>Lemmings>Out of This World  (awesome game, BTW)>Glider 4.0>OIDSand alsoHellcats,Super TetrisOxyd(and many more, these are just what I've tested)Cheat and write to SoundBase and so are only left channel on Quadras.Other games you list:>Armor Alley>Spectre>Spaceward Ho!and alsoPGA Tour GolfCivilization(and more, these are again only from personal experience)Use the sound manager and work fine on all machines.The more of the story is to developers: DON'T CHEAT!Really, I am absolutely, positively not allowed to do what I am about todo,but I'm going say it anyway.Stop cheating on sound!Really soon, you will be sorry, as even those without external speakerswill be disappointed with your sound on future hardware. The grace periodis about to end.The Sound Manager is understandable now, and works pretty well and willworkeven better soon, so use it.In conclusion:To Doug, it isn't a hardware problem, at least, not a bug.To Jon, it isn't a choice to developers as to whether they want to sendsoundto both channels. If they do it the right way, it is taken care ofautomatically. If you cheat, there is not way to make it work on allhardware.Have fun.Disclaimer number 1:I don't work on sound here at Apple, I'm just pretty well informed.So don't write me with sound questions.Disclaimer number 2:If it says up above that I wrote anything like "the grace period is aboutto end" then it is a bug in your news feed, since I am catagorically notallowed to say anything like that. You know what I mean.Disclaimer number 3:I don't speak for Apple, just me.-Steve Bollinger

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -