Linux»·¾³ÏÂÓÃcÓïÑÔдµÄ²¥·ÅwavÎļþµÄС³ÌÐò
#include <unistd.h>
#include <fcntl.h>
#include
<sys/types.h>
#include <sys/ioctl.h>
#include
<stdlib.h>
#include <stdio.h>
#include
<linux/soundcard.h>
/* ÏÂÃæµÄÈý¸ö²ÎÊýÊǸú¾ßÌåÎļþÏà¹ØµÄ£¬ÎļþʲôÑù£¬¾ÍÒªÉèÖóÉʲôÑù */
#define RATE 11025
#define SIZE 16
#define CHANNELS
2 // 1±íʾµ¥ÉùµÀ£¬2ΪÁ¢ÌåÉù
/* ................ */
unsigned char
buf[RATE*SIZE/8]; //bufÀïÃæÕýºÃ·ÅÒ»ÃëÖÓµÄÒôƵ£¬ÏÂÃæµÄ¼ÆÊ±»¹ÒªÓÃ
int main()
{
int fd;
int wavfd; //wavÎļþµÄÃèÊö·û
int arg; /* ..ioctl..... */
int status; /*
........ */
/* ...... */
fd = open("/dev/dsp",
O_RDWR);
if (fd < 0) {
printf("open of /dev/dsp failed");
exit(1);
}
wavfd = open("a.wav",O_RDONLY);
if (wavfd
< 0) {
printf("open of wav failed");
exit(1);
}
/* .......... */
arg = SIZE;
status = ioctl(fd,
SOUND_PCM_WRITE_BITS, &arg);
if (status == -1)
perror("SOUND_PCM_WRITE_BITS ioctl failed");
if (arg != SIZE)
perror("unable to set sample size");
/* .......... */
arg = CHANNELS;
status = ioctl(fd,
SOUND_PCM_WRITE_CHANNELS, &arg);
if (status == -1)
&nb
Ïà¹ØÎĵµ£º
MS 5.0 LINUX °æÐ¡¼¯Èº²¢Ðа²×°ÊÖ¼Ç
MS 5.0 LINUX °æÐ¡¼¯Èº²¢Ðа²×°ÊÖ¼Ç
Õ⼸ÌìÖØÐÂÅäÖÃÁËһϼÆËã»·¾³£¬Ë³±ã¼Ç¼ÏÂÀ´¹©Í¬Ðвο¼£¬Õâ´ÎÒÔ°²×°MS5.0ΪÀý£¬Êµ¼ÊÉÏ4.0£¬4.2£¬4.4µÄ°æ±¾Õ⼸ÌìÎÒ¶¼ÅäÖùýÁË£¬·½·¨»ù±¾Ïàͬ¡£
1.²Ù×÷ϵͳ»·¾³ËµÃ÷
¿Í»§¶ËÒªÇóÊÇWindows XP Professional - SP3»òVista (Business & Enterpris ......
(Ò»£©ÖÐÎÄ×ÖÌåµÄÏÔʾ
(Ê×ÏÈ)ÓÃsetupÃüÁî ¿ªÆô“setup”¶Ô»°¿ò --- Ñ¡Ôñ“service setup” °Ñ“xfs” disableµô¡£
È»ºó½ÓÏÂÀ´£º
(1)copy "c:/windows/fonts/simsun.ttc" to Linux directory : "/usr/share/fonts/liberation"
(2)edit "/etc/sysconfig/i1 ......
ÐǼÊÒëÍõµÄ°²×°
“ÐǼÊÒëÍõ”ÊÇÓÃGtk2¿ª·¢µÄ¿çƽ̨µÄ¹ú¼Ê»¯µÄ´ÊµäÈí¼þ¡£Ëü¾ßÓГͨÅä·ûÆ¥Å䔡¢“Ñ¡ÖÐÇøÈ¡´Ê”¡¢“Ä£ºý²éѯ”µÈÇ¿´ó¹¦ÄÜ¡£±¾ÎÄÖ÷Òª½â˵һÏÂÖ÷³ÌÐòºÍ´Ê¿âµÄ°²×°£»
Ò»¡¢Ê²Ã´ ......
A) Shutdown management node and data node
devmysql3# ndb_mgm -e shutdown
devmysql4# ndb_mgm -e shutdown
B) Shutdown MySQL proccess
devmysql3# mysqladmin shutdown
devmysql4# mysqladmin shutdown
devmysql3 ip: 10.130.30.217
devmysql4 ip: 10.130.30.218
rpm -ivh MySQL-Cluster-gpl-storage ......
Ç°ÃæÒ²ÓнéÉܹýAdobe AIR£¬²»¹ýÊÇWindowsƽ̨£¬×î½üÓÐһʷ³ÐÄ£ºLinuxQQÌ«À¬»ø£¬wine qqÌ«Âý£¬web qq²»·½±ã£¬ÄÇÔõô°ìÄØ£¿
ÎÒÏëµ½ÁËair¡£
Ê×Ïȵ±È»ÒªÏÂÔØsdkºÍruntime£ºhttp://www.adobe.com/cn/products/air/tools/sdk/
×îÖØÒªµÄÊÇÏÈÏÂÔØruntime£¬ÔÚÍøÕ¾µÄ×îµ×²¿Óиö
Á¢¼´ÏÂÔØ Adobe AIR
ÕâÑùµÄÁ´½Ó£¬µã½øÈ¥¾ÍÊÇÏÂÔØÁ ......