🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #673

Manipulating Sound Samples

#673
From: E. Robert Rhoads
Date: Tue, 14 Apr 1992 08:14
17 lines
1274 bytes
After studying the "Sound, Music, and DSP Reference" I got the
idea of playing a sampled sound file backwards.  I simply reversed
the data that a SNDSoundStruct pointed to after getting its location
with the C function SNDGetDataPointer().  This worked great with
8 bit mu-law samples, but not so great with some of the system
sound files (i.e. Bonk.snd, Funk.snd, etc) which are 16 bit linear
samples, 2 channels.  After playing with the format and order I 
couldn't figure out exactly how the samples are physically represented.

Does anyone know how samples are storedin memory?  What is the best 
way to directly manipulate the sample data?  What is the byte ordering 
for 16 bit samples? etc.

Thank you for any help you can give me.

E. Robert Rhoads
rhoadse@prism.cs.orst.edu
Technical Details
Message-ID: <1992Apr14.081419.620@CS.ORST.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!usenet.coe.montana.edu!ogicse!orstcs!orstcs!usenetusenet

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!usenet.coe.montana.edu!ogicse!orstcs!orstcs!usenetusenet
From: rhoadse@prism.CS.ORST.EDU (E. Robert Rhoads)
Newsgroups: comp.sys.next.programmer
Subject: Manipulating Sound Samples
Message-ID: <1992Apr14.081419.620@CS.ORST.EDU>
Date: 14 Apr 92 08:14:19 GMT
Sender: usenet@CS.ORST.EDU
Organization: Oregon State University, Computer Science Dept.
Lines: 17
Nntp-Posting-Host: prism.cs.orst.edu