liberis
soundbox.h
Go to the documentation of this file.
00001 /*
00002         liberis -- A set of libraries for controlling the NEC PC-FX
00003 
00004 Copyright (C) 2011              Alex Marshall "trap15" <trap15@raidenii.net>
00005 
00006 # This code is licensed to you under the terms of the MIT license;
00007 # see file LICENSE or http://www.opensource.org/licenses/mit-license.php
00008 */
00009 
00014 #ifndef _LIBERIS_LOW_SOUNDBOX_H_
00015 #define _LIBERIS_LOW_SOUNDBOX_H_
00016 
00019 typedef enum {
00020         ADPCM_RATE_32000 = 0, 
00021         ADPCM_RATE_16000 = 1, 
00022         ADPCM_RATE_8000  = 2, 
00023         ADPCM_RATE_4000  = 3, 
00024 } adpcm_rate;
00025 
00031 void eris_low_psg_set_main_volume(u8 left, u8 right);
00040 void eris_low_psg_set_channel(u8 chan);
00046 void eris_low_psg_set_freq(u16 freq);
00054 void eris_low_psg_set_volume(u8 vol, u8 on, u8 dda);
00060 void eris_low_psg_set_balance(u8 left, u8 right);
00067 void eris_low_psg_waveform_data(u8 sample);
00075 void eris_low_psg_set_noise(u8 freq, u8 enabled);
00081 void eris_low_psg_set_lfo_freq(u8 freq);
00088 void eris_low_psg_set_lfo_control(int on, int ctrl);
00097 void eris_low_adpcm_set_control(adpcm_rate rate, u8 ch0_interp, u8 ch1_interp,
00098                         u8 ch0_reset, u8 ch1_reset);
00105 void eris_low_adpcm_set_volume(u8 chan, u8 left, u8 right);
00111 void eris_low_cdda_set_volume(u8 left, u8 right);
00112 
00113 #endif
00114 
 All Files Functions Typedefs Enumerations Enumerator Defines