#include <Oaudio.h>
List of all members.
Definition at line 33 of file Oaudio.h.
Definition at line 75 of file Oaudio.cpp.
References init_flag.
Definition at line 83 of file Oaudio.cpp.
References deinit().
Definition at line 165 of file Oaudio.cpp.
Referenced by ~Audio().
<int> fadeRate, time for volume 100 wave drop to slience
Definition at line 1315 of file Oaudio.cpp.
References MAX_LOOP_WAV_CH.
Definition at line 790 of file Oaudio.cpp.
References MAX_WAV_CHANNEL, and NULL.
Referenced by SECtrl::flush().
Definition at line 1328 of file Oaudio.cpp.
Initialize the mid driver
return : <int> 1 - initialized successfully 0 - init fail
Definition at line 96 of file Oaudio.cpp.
Definition at line 1917 of file Oaudio.cpp.
Referenced by WinMain().
Definition at line 1750 of file Oaudio.cpp.
return wheather a short sound effect is stopped
<int> the serial no returned by play_wav or play_resided_wav
Definition at line 1094 of file Oaudio.cpp.
References MAX_LONG_WAV_CH, and NULL.
Referenced by volume_long_wav().
Definition at line 1346 of file Oaudio.cpp.
Definition at line 1706 of file Oaudio.cpp.
Definition at line 1719 of file Oaudio.cpp.
Definition at line 840 of file Oaudio.cpp.
<int> trackId - the id. of the CD track to play.
Definition at line 1653 of file Oaudio.cpp.
Play digitized wav from the wav file suitable for very large wave file
<char*> wavName = name of the wave file
return : <int> 1 - wav loaded and is playing 0 - wav not played note : it uses streaming DirectSoundBuffer Audio::yield() keeps on feeding data to it
Definition at line 882 of file Oaudio.cpp.
References DsVolume::ds_pan, DsVolume::ds_vol, DSBCAPS_CTRLDEFAULT, err_now, File::file_open(), File::file_pos(), File::file_read(), File::file_seek(), LWAV_BANKS, LWAV_STREAM_BUFSIZ, MAX_LONG_WAV_CH, mem_resize, NULL, wav_buf, wav_buf_size, wav_flag, wav_init_flag, and WORD.
Definition at line 856 of file Oaudio.cpp.
Play digitized wav from the wav resource file
<char*> wavName = name of the wav in the resource file int repeatOffset = offset of wave data to play on repeat i.e. 0 to start of wave data
return : <int> channel number (1 - MAX_LOOP_WAV_CH) 0 not played
Definition at line 1145 of file Oaudio.cpp.
Play a midi mid from the mid resource file
<char*> midName = name of the mid in the resource file
return : <int> 1 - mid loaded and is playing 0 - mid not played
Definition at line 319 of file Oaudio.cpp.
Play digitized wav from the wav file in memory
<char*> wavBuf = point to the wav in memory long vol = volume (0 to 100) long pan = pan (-10000 to 10000)
return : <int> 1 - wav loaded and is playing 0 - wav not played
Definition at line 688 of file Oaudio.cpp.
Referenced by SECtrl::flush(), and SECtrl::immediate_sound().
short resIdx = index of wave file in A_WAVE2.RES long vol = volume (0 to 100) long pan = pan (-10000 to 10000)
Definition at line 540 of file Oaudio.cpp.
<char*> wavName = name of the wav in the resource file long vol = volume (0 to 100) long pan = pan (-10000 to 10000)
return : <int> non-zero - wav loaded and is playing, return a serial no. to be referred in stop_wav and is_wav_playing 0 - wav not played
Definition at line 375 of file Oaudio.cpp.
Referenced by SECtrl::flush(), SECtrl::immediate_sound(), and WinMain().
Definition at line 1882 of file Oaudio.cpp.
References cd_init_flag.
Definition at line 1810 of file Oaudio.cpp.
References mid_init_flag.
Definition at line 1826 of file Oaudio.cpp.
References MAX_LONG_WAV_CH, MAX_LOOP_WAV_CH, MAX_WAV_CHANNEL, and wav_init_flag.
Definition at line 1693 of file Oaudio.cpp.
References NULL.
Referenced by toggle_cd().
Definition at line 1615 of file Oaudio.cpp.
stop a short sound effect started by play_long_wav
<int> the serial no returned by play_long_wav
return 1 - channel is found and stopped / channel not found return 0 - cannot stop the channel
Definition at line 1071 of file Oaudio.cpp.
Definition at line 1633 of file Oaudio.cpp.
References MAX_LOOP_WAV_CH, and NULL.
Definition at line 353 of file Oaudio.cpp.
Referenced by toggle_mid().
Definition at line 1589 of file Oaudio.cpp.
Referenced by toggle_wav().
stop a short sound effect started by play_wav or play_resided_wav
Definition at line 819 of file Oaudio.cpp.
Definition at line 1795 of file Oaudio.cpp.
References cd_flag, and stop_cd().
Definition at line 1773 of file Oaudio.cpp.
References mid_flag, and stop_mid().
Definition at line 1784 of file Oaudio.cpp.
References stop_wav(), and wav_flag.
Definition at line 1902 of file Oaudio.cpp.
References DsVolume::ds_vol, is_long_wav_playing(), MAX_LONG_WAV_CH, and NULL.
Definition at line 1296 of file Oaudio.cpp.
References DsVolume::ds_pan, DsVolume::ds_vol, and MAX_LOOP_WAV_CH.
Definition at line 1357 of file Oaudio.cpp.
References err_here, err_now, File::file_pos(), File::file_read(), File::file_seek(), LOOPWAV_BANKS, LOOPWAV_STREAM_BUFSIZ, LWAV_BANKS, MAX_LONG_WAV_CH, MAX_LOOP_WAV_CH, and NULL.
Definition at line 43 of file Oaudio.h.
Definition at line 39 of file Oaudio.h.
Referenced by set_cd_volume().
Definition at line 35 of file Oaudio.h.
Referenced by Audio(), and deinit().
Definition at line 50 of file Oaudio.h.
Definition at line 45 of file Oaudio.h.
Definition at line 48 of file Oaudio.h.
Definition at line 41 of file Oaudio.h.
Definition at line 37 of file Oaudio.h.
Referenced by set_mid_volume().
Definition at line 52 of file Oaudio.h.
Definition at line 46 of file Oaudio.h.
Referenced by play_long_wav().
Definition at line 49 of file Oaudio.h.
Definition at line 42 of file Oaudio.h.
Referenced by play_long_wav(), and toggle_wav().
Definition at line 38 of file Oaudio.h.
Referenced by SECtrl::init(), play_long_wav(), and set_wav_volume().
Definition at line 53 of file Oaudio.h.