コード例 #1
0
ファイル: fileops.c プロジェクト: elliotwoods/SDICapture-Test
/*** generic file functions */
void * file_open(char * filename, int mode, int creatmode, int buffering)
{
#ifdef WIN32
  return win32_open(filename, mode, creatmode, buffering);
#else
  return unix_open(filename, mode, creatmode, buffering);
#endif
}
コード例 #2
0
ファイル: audio_out.c プロジェクト: Distrotech/libsamplerate
AUDIO_OUT *
audio_open (int channels, int samplerate)
{
#if defined (__linux__)
	return linux_open (channels, samplerate) ;
#elif (defined (__MACH__) && defined (__APPLE__))
	return macosx_open (channels, samplerate) ;
#elif (defined (sun) && defined (unix))
	return solaris_open (channels, samplerate) ;
#elif (defined (_WIN32) || defined (WIN32))
	return win32_open (channels, samplerate) ;
#else
	#warning "*** Playing sound not yet supported on this platform."
	#warning "*** Please feel free to submit a patch."
	printf ("Error : Playing sound not yet supported on this platform.\n") ;
	return NULL ;
#endif


	return NULL ;
} /* audio_open */