Информационный сервер для программистов: Исходники со всего света. Паскальные исходники со всего света
  Powered by Поисковый сервер Яndex: Найдется ВСЁ!
На Главную Pascal Форум Информер Страны мира
   Звуки и Музыка    >>    play_voc
   
 
 VOC File Player for Sound Blaster  Unknown 25.01.1993

Программа позволяет проигрывать VOC файлы через саундбластер. Включает в себя процедуры для работы с саундбластером как напрямую, так и через DMA с двойным буферированием.
SB_Unit Version 1.0. Includes procedures for controlling a Sound Blaster or compatible card in direct or DMA mode.
Program Play_Voc demonstrates the use of SB_Unit by playing a VOC file from disk using DMA double-buffering. Options to this program are given if it is used without parameters. Only .VOC files with a single block of data are supported; others may also work, but any block information will be output as voice data. Also, samples at rates > 22.05kHz seem to use a header format I don't have information about. The program flags these and displays an error.



14k 
 

About SB_PAS v1.0 This archive contains utilities for programming Sound Blaster and compatible cards in Turbo Pascal. They were compiled with TP 7.0, but should work with almost anything less. In writing SB_UNIT, I was able to use only Pascal functions without inline assembly; not so lucky with PLAY_VOC. The routines are all fully commented with descriptions of the steps required to perform each task. It should be *very* easy to port this to other languages (like C <blech> ;-) ). Files contained in this package: SB_UNIT.PAS,TPU : Master unit for all functions - includes routines for base address detection, direct port control, and DMA transfers. PLAY_VOC,EXE : An example program to use SB_UNIT which demonstrates the use of the unit as well as double-buffering techniques. VOC-INFO.TXT : Some information about the .VOC fi