AMOSi:Sam Play

From Amiga Coding
Jump to: navigation, search

an example can be found on AMOSPro_Examples:Examples/H-7/Help_74.AMOS

PLAYs the numbered sound SAMple through your loudspeaker.

Sam Play sample_number

You can also extend this command like so:

Sam Play voice_bitmap,sample_number

Each voice to be played is selected by setting its bit in the map to 1

Sam Play voice_bitmap,sample_number,frequency

frequency sets the playback speed in samples per second. Sensible values range from 4000 for noises to 10000 for speech and music.