🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
1 messages
1 total messages Started by E. Robert Rhoads Tue, 14 Apr 1992 08:14
Manipulating Sound Samples
#673
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads