Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygendsound_test.h
Go to the documentation of this file.
00001 /* 00002 * Unit tests for dsound functions 00003 * 00004 * Copyright (c) 2004 Francois Gouget 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 */ 00020 00021 static const unsigned int formats[][4]={ 00022 { 8000, 8, 1, 0 }, 00023 { 8000, 8, 2, 0 }, 00024 { 8000, 16, 1, 0 }, 00025 { 8000, 16, 2, 0 }, 00026 {11025, 8, 1, WAVE_FORMAT_1M08 }, 00027 {11025, 8, 2, WAVE_FORMAT_1S08 }, 00028 {11025, 16, 1, WAVE_FORMAT_1M16 }, 00029 {11025, 16, 2, WAVE_FORMAT_1S16 }, 00030 {22050, 8, 1, WAVE_FORMAT_2M08 }, 00031 {22050, 8, 2, WAVE_FORMAT_2S08 }, 00032 {22050, 16, 1, WAVE_FORMAT_2M16 }, 00033 {22050, 16, 2, WAVE_FORMAT_2S16 }, 00034 {44100, 8, 1, WAVE_FORMAT_4M08 }, 00035 {44100, 8, 2, WAVE_FORMAT_4S08 }, 00036 {44100, 16, 1, WAVE_FORMAT_4M16 }, 00037 {44100, 16, 2, WAVE_FORMAT_4S16 }, 00038 {48000, 8, 1, WAVE_FORMAT_48M08 }, 00039 {48000, 8, 2, WAVE_FORMAT_48S08 }, 00040 {48000, 16, 1, WAVE_FORMAT_48M16 }, 00041 {48000, 16, 2, WAVE_FORMAT_48S16 }, 00042 {96000, 8, 1, WAVE_FORMAT_96M08 }, 00043 {96000, 8, 2, WAVE_FORMAT_96S08 }, 00044 {96000, 16, 1, WAVE_FORMAT_96M16 }, 00045 {96000, 16, 2, WAVE_FORMAT_96S16 } 00046 }; 00047 #define NB_FORMATS (sizeof(formats)/sizeof(*formats)) 00048 00049 /* The time slice determines how often we will service the buffer */ 00050 #define TIME_SLICE 31 00051 #define BUFFER_LEN 400 00052 00053 extern char* wave_generate_la(WAVEFORMATEX*,double,DWORD*); 00054 extern HWND get_hwnd(void); 00055 extern void init_format(WAVEFORMATEX*,int,int,int,int); 00056 extern void test_buffer(LPDIRECTSOUND,LPDIRECTSOUNDBUFFER, 00057 BOOL,BOOL,LONG,BOOL,LONG,BOOL,double,BOOL, 00058 LPDIRECTSOUND3DLISTENER,BOOL,BOOL,BOOL,DWORD); 00059 extern void test_buffer8(LPDIRECTSOUND8,LPDIRECTSOUNDBUFFER, 00060 BOOL,BOOL,LONG,BOOL,LONG,BOOL,double,BOOL, 00061 LPDIRECTSOUND3DLISTENER,BOOL,BOOL); 00062 extern const char * getDSBCAPS(DWORD xmask); 00063 extern int align(int length, int align); 00064 extern const char * get_file_version(const char * file_name); Generated on Fri May 25 2012 04:19:37 for ReactOS by
1.7.6.1
|