Mercurial > mplayer.hg
comparison libao2/ao_sun.c @ 14264:cb5fbade8a5c
af_fmt2str_short
author | alex |
---|---|
date | Tue, 28 Dec 2004 19:11:14 +0000 |
parents | 137896e25c24 |
children | 6d8634c0bdfa |
comparison
equal
deleted
inserted
replaced
14263:bc80d39d19e8 | 14264:cb5fbade8a5c |
---|---|
464 if (enable_sample_timing == RTSC_UNKNOWN | 464 if (enable_sample_timing == RTSC_UNKNOWN |
465 && !getenv("AO_SUN_DISABLE_SAMPLE_TIMING")) { | 465 && !getenv("AO_SUN_DISABLE_SAMPLE_TIMING")) { |
466 enable_sample_timing = realtime_samplecounter_available(audio_dev); | 466 enable_sample_timing = realtime_samplecounter_available(audio_dev); |
467 } | 467 } |
468 | 468 |
469 // printf("ao2: %d Hz %d chans %s [0x%X]\n", | 469 printf("ao2: %d Hz %d chans %s [0x%X]\n", |
470 // rate,channels,audio_out_format_name(format),format); | 470 rate,channels,af_fmt2str_short(format),format); |
471 | 471 |
472 audio_fd=open(audio_dev, O_WRONLY); | 472 audio_fd=open(audio_dev, O_WRONLY); |
473 if(audio_fd<0){ | 473 if(audio_fd<0){ |
474 mp_msg(MSGT_AO, MSGL_ERR, MSGTR_AO_SUN_CantOpenAudioDev, audio_dev, strerror(errno)); | 474 mp_msg(MSGT_AO, MSGL_ERR, MSGTR_AO_SUN_CantOpenAudioDev, audio_dev, strerror(errno)); |
475 return 0; | 475 return 0; |