19682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall/*
29682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    SDL - Simple DirectMedia Layer
39682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    Copyright (C) 1997-2012 Sam Lantinga
49682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
59682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    This library is free software; you can redistribute it and/or
69682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    modify it under the terms of the GNU Library General Public
79682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    License as published by the Free Software Foundation; either
89682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    version 2 of the License, or (at your option) any later version.
99682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
109682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    This library is distributed in the hope that it will be useful,
119682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    but WITHOUT ANY WARRANTY; without even the implied warranty of
129682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
139682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    Library General Public License for more details.
149682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
159682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    You should have received a copy of the GNU Library General Public
169682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    License along with this library; if not, write to the Free
179682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
189682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
199682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    Sam Lantinga
209682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    slouken@libsdl.org
219682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall*/
229682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#include "SDL_config.h"
239682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
249682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall/*
259682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	STFA control structure
269682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
279682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	Patrice Mandin
289682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall*/
299682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
309682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#ifndef _SDL_mintaudio_stfa_h
319682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#define _SDL_mintaudio_stfa_h
329682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
339682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall/*--- Defines ---*/
349682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
359682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#define STFA_PLAY_ENABLE	(1<<0)
369682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#define STFA_PLAY_DISABLE	(0<<0)
379682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#define STFA_PLAY_REPEAT	(1<<1)
389682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#define STFA_PLAY_SINGLE	(0<<1)
399682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
409682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#define STFA_FORMAT_SIGNED		(1<<15)
419682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#define STFA_FORMAT_UNSIGNED	(0<<15)
429682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#define STFA_FORMAT_STEREO		(1<<14)
439682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#define STFA_FORMAT_MONO		(0<<14)
449682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#define STFA_FORMAT_16BIT		(1<<13)
459682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#define STFA_FORMAT_8BIT		(0<<13)
469682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#define STFA_FORMAT_LITENDIAN	(1<<9)
479682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#define STFA_FORMAT_BIGENDIAN	(0<<9)
489682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#define STFA_FORMAT_FREQ_MASK	0x0f
499682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallenum {
509682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	STFA_FORMAT_F4995=0,
519682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	STFA_FORMAT_F6269,
529682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	STFA_FORMAT_F7493,
539682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	STFA_FORMAT_F8192,
549682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
559682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	STFA_FORMAT_F9830,
569682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	STFA_FORMAT_F10971,
579682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	STFA_FORMAT_F12538,
589682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	STFA_FORMAT_F14985,
599682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
609682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	STFA_FORMAT_F16384,
619682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	STFA_FORMAT_F19819,
629682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	STFA_FORMAT_F21943,
639682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	STFA_FORMAT_F24576,
649682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
659682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	STFA_FORMAT_F30720,
669682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	STFA_FORMAT_F32336,
679682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	STFA_FORMAT_F43885,
689682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	STFA_FORMAT_F49152
699682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall};
709682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
719682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall/*--- Types ---*/
729682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
739682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Halltypedef struct {
749682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	unsigned short sound_enable;
759682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	unsigned short sound_control;
769682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	unsigned short sound_output;
779682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	unsigned long sound_start;
789682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	unsigned long sound_current;
799682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	unsigned long sound_end;
809682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	unsigned short version;
819682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	void *old_vbl;
829682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	void *old_timera;
839682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	unsigned long old_mfp_status;
849682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	void *new_vbl;
859682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	void *drivers_list;
869682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	void *play_stop;
879682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	unsigned short frequency;
889682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	void *set_frequency;
899682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	unsigned short frequency_threshold;
909682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	unsigned short *custom_freq_table;
919682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	unsigned short stfa_on_off;
929682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	void *new_drivers_list;
939682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	unsigned long old_bit_2_of_cookie_snd;
949682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	void (*stfa_it)(void);
959682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall} cookie_stfa_t;
969682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
979682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#endif /* _SDL_mintaudio_stfa_h */
98