diff options
author | 2001-05-10 03:39:54 +0000 | |
---|---|---|
committer | 2001-05-10 03:39:54 +0000 | |
commit | dda6708094e31b4bee948a48d4beaf2b2556d8f9 (patch) | |
tree | 951beee3ea2485c3827e7047931b3d26991816b3 /TOOLS/audio-block2.c | |
parent | c92a2dfa975d16c67f1d88bbf669a0b45a4d422a (diff) |
new audio playback and A-V sync code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@747 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'TOOLS/audio-block2.c')
-rw-r--r-- | TOOLS/audio-block2.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/TOOLS/audio-block2.c b/TOOLS/audio-block2.c index 3480083686..c3e29fc4b5 100644 --- a/TOOLS/audio-block2.c +++ b/TOOLS/audio-block2.c @@ -50,16 +50,18 @@ int main(){ } // ioctl(audio_fd, SNDCTL_DSP_RESET, NULL); -// print_info(audio_fd); - ioctl(audio_fd, SNDCTL_DSP_RESET, NULL); +// ioctl(audio_fd, SNDCTL_DSP_RESET, NULL); r=AFMT_S16_LE;ioctl (audio_fd, SNDCTL_DSP_SETFMT, &r); r=1; ioctl (audio_fd, SNDCTL_DSP_STEREO, &r); r=44100; if(ioctl (audio_fd, SNDCTL_DSP_SPEED, &r)==-1) printf("audio_setup: your card doesn't support %d Hz samplerate\n",r); -// print_info(audio_fd); + r=0; ioctl (audio_fd, SNDCTL_DSP_GETBLKSIZE, &r); + printf("fragment size = %d\n",r); + + print_info(audio_fd); t0=t1=GetTimer(); |