1 /*---------------------------------------------------------------------------*
2   Project:  Miscellaneous audio visualization tools
3   File:     DEMOAVX.h
4 
5   Copyright 2002 Nintendo. All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law.  They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Log: DEMOAVX.h,v $
14   Revision 1.1.1.1  2005/05/12 02:41:06  yasuh-to
15   Ported from dolphin source tree.
16 
17 
18     1     2002/01/11 4:56p Eugene
19     For new AVX functions.
20 
21 
22   $NoKeywords: $
23  *---------------------------------------------------------------------------*/
24 
25 /*---------------------------------------------------------------------------*
26  * Includes
27  *---------------------------------------------------------------------------*/
28 
29 #define AVX_FRAME_SIZE_SAMPLES   160        // 160 stereo samples @ 32KHz
30 #define AVX_FRAME_SIZE_WORDS     (160*2)    // 2 words per stereo sample
31 #define AVX_FRAME_SIZE_BYTES     (160*2*2)  // 2 bytes per sample, 2 channels
32 
33 
34 void    DEMOAVXInit             (s16 *left, s16 *right, u32 size);
35 u32     DEMOAVXRefreshBuffer    (u32 *start_index, u32 *end_index);
36 
37 void    DEMOAVXAttach           (void *buffer, u32 num_frames);
38 u32     DEMOAVXGetFrameCounter  (void);
39 u32     DEMOAVXGetNumFilled     (void);
40