comparison libao2/ao_sun.c @ 14255:137896e25c24

100l, buf etc. in af_fmt2str call are already pointers...
author reimar
date Mon, 27 Dec 2004 19:43:13 +0000
parents 8f59f661f317
children cb5fbade8a5c
comparison
equal deleted inserted replaced
14254:21e72b6d8d11 14255:137896e25c24
544 */ 544 */
545 } 545 }
546 546
547 if (!ok) { 547 if (!ok) {
548 mp_msg(MSGT_AO, MSGL_ERR, MSGTR_AO_SUN_UnsupSampleRate, 548 mp_msg(MSGT_AO, MSGL_ERR, MSGTR_AO_SUN_UnsupSampleRate,
549 channels, af_fmt2str(format, &buf, 128), rate); 549 channels, af_fmt2str(format, buf, 128), rate);
550 return 0; 550 return 0;
551 } 551 }
552 552
553 bytes_per_sample = channels * info.play.precision / 8; 553 bytes_per_sample = channels * info.play.precision / 8;
554 ao_data.bps = byte_per_sec = bytes_per_sample * ao_data.samplerate; 554 ao_data.bps = byte_per_sec = bytes_per_sample * ao_data.samplerate;