/*****************************************************************************

GRAOUMF TRACKER 2

Copyright (c) 1996 - 2002 Laurent de Soras

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

Contact the author : laurent@ohmforce.com
More information about this license : http://www.gnu.org/licenses/gpl.html

*****************************************************************************/



#if defined (SPLAVR_CURRENT_HEADER)
	#error Inclusion recursive du header SPLAVR.
#endif
#define	SPLAVR_CURRENT_HEADER

#if ! defined (SPLAVR_HEADER_INCLUDED)
#define	SPLAVR_HEADER_INCLUDED



/*\\\ INCLUDES \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/

#include	<stdio.h>

#include	"splstruc.h"



/*\\\ CONSTANTES PUBLIQUES \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/



/*\\\ TYPES & STRUCTURES PUBLIQUES \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/



/*\\\ PROTOTYPES DES FONCTIONS PUBLIQUES \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/

signed int	SPLAVR_save_sample (FILE *file_ptr, int sample);
signed int	SPLAVR_save_sample_header (FILE *file_ptr, SPLS_PRIMARY_INFO *sample_info_ptr);
signed int	SPLAVR_save_sample_data (FILE *file_ptr, SPLS_PRIMARY_INFO *sample_info_ptr, void *mem_data_ptr, FILE *file_data_ptr);
signed int	SPLAVR_save_sample_tail (FILE *file_ptr, const SPLS_PRIMARY_INFO *sample_info_ptr);

signed int	SPLAVR_load_sample (FILE *file_ptr, int sample, SPLS_PRIMARY_INFO *sample_info_ptr);
signed int	SPLAVR_get_primary_info (FILE *file_ptr, SPLS_PRIMARY_INFO *sample_info_ptr);



/*\\\ VARIABLES EXTERNES \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/

extern const char	*SPLAVR_sample_name_0;
extern const char	*SPLAVR_sample_extension_0;



/*\\\ FIN DU FICHIER \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/

#endif

#undef SPLAVR_CURRENT_HEADER
