home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-12-21 | 4.4 KB | 74 lines | [TEXT/KAHL] |
- This version of Sparkle supports sound in a limited fashion. A sound file can be
- associated with an MPEG (or a set of PICTs) and played while the MPEG plays.
- The good news is that part of the support I have is completely fleshed out.
- You can play sound backwards or forwards, at variable rates, and with random access.
- Sound playback is (with the warning about drivers below) continuous even when the
- disk is going beserk pulling data in at 16bits/stereo/44.1kHz. I had a vicious
- lesson in what can and can't be done with the mac interrupt system while putting
- this all together but it now all runs beautifully at interrupt level and I can't
- make it crash.
-
- But here are the limitations.
-
- * The only sound format supported for now is AIFF. If you want to use sounds in
- .snd format (sounds you can click on and play in the Finder) or in .WAV
- format (the sounds that usually accompany PC MPEGs) you will have to convert the
- sound to AIFF. I use Balthazar for converting WAV to snd, and Sample Editor
- for converting from snd to AIFF. There are many other ftpable sound programs
- out there that do the same.
- Note also that AIFF does have one advantage. When you capture audio from a
- CD using QuickTime, the file produced is AIFF.
- Note also that compressed AIFF IS supported.
-
- * Suppose Sparkle is opening a file waves.mpg. It will look in the same folder
- for a file waves.AIFF. If it finds such a file, you'll get audio. If it doesn't
- find the file, you'll get no audio. If you are opening a set of pictures
- called waves.0, waves.1, etc, then again the audio file must be names waves.AIFF
- and must be in the same directory as the picture files.
- This probably is relevant to programs that use Sparkle, like NCSA Mosaic.
- I don't know how Mosaic copes when it finds an MPEG/WAV pair at a WWW site.
- If the Mosaic authors want to contact me to consider some protocol (apple
- events or whatever) for handling this, feel free to mail me.
-
- * On my Quadra 610, 8bit mono sound at 11KHz works without a hitch. 16bit stereo sound
- at 44.1kHz (sixteen times as much data) works but with a noticable (though
- not unbearable) slowing down of the video.
- The sound is read in using a funky triple buffering scheme with async IO and
- async sound. This works beautifully on my mac's internal hard drive. However
- on my Syquest cartridge with the APS 3.05 driver sometimes the sound can stutter.
- As far as I can tell this is because the APS driver does very naughty things
- like switching off interrupts for long periods of time (at the same time
- that the sound stops, the mouse also stops moving briefly).
- If anyone has suggestions/comments on the subject, please let me know. My guess
- is that the only fix is to get APS to release drivers which don't disable
- interrupts for so long.
- Also, of course, since we're using async IO, use SCSI Manager 4.3 for much better
- performance.
-
- * The .WAV sounds I have tried occasionally have jerks in them. These were recorded
- in the sound and are not Sparkle's fault. Also the .WAVs I've tried don't
- seem to sync very well with the video, like the audio was recorded with a slight
- delay relative to the video. Again I can't do much about that.
-
- * Looping does not work quite correctly. Basically if you have looping enabled, the
- sound will play the first time through, but not on subsequent loops.
- This will be fixed next release.
-
- * The next steps are to flesh out the current sound support---allow opening .WAV and
- .snd files, saving the sound track to a QT movie, extracting the sound track
- from a QT movie, things like that. Those will, with luck, all be pretty
- trivial and I can soon get on dealing with real MPEG compressed audio.
-
- * There is now a menu item, Set Frame Rate ..., under the Playback menu. This allows
- you to set the frame rate of an MPEG/set of PICTs to what you wish. Note that
- this only affects video playback, not audio. Note also that when Sparkle opens
- an MPEG or PICT set with an associated sound file, the duration of the video
- is scaled to match the duration of the audio. Normally this is what one would
- want and so you shouldn't need to touch the Set Frame Rate ... option much if you
- have associated sound. If you have an MPEG without sound and it appears to play
- way too fast, you may want to set the frame rate to something lower.
-
- Finally a thank you to ABBA for providing great music for me to use as test AIFF files
- while doing all of this. I know it's not fashionable/cool to admit to liking ABBA
- but, I do, so tough :-)
-