add ioctl to audio hello

master
Tianyu Gao 6 years ago
parent 277589d7fa
commit 98b8309656

@ -8910,7 +8910,10 @@ int main(int argc, char **argv)
printf("fail to open /dev/dsp"); printf("fail to open /dev/dsp");
return 1; return 1;
} }
ioctl(fd_dsp, 0, NULL);
write(fd_dsp, sound, sizeof(sound)); write(fd_dsp, sound, sizeof(sound));
ioctl(fd_dsp, 1, NULL);
printf("finish writing %d\n", sizeof(sound));
return 0; return 0;
} }

Loading…
Cancel
Save