comparison src/wma/wma.c @ 1990:c9e4ae9e1580

wma: set_params()
author William Pitcock <nenolod@atheme.org>
date Sun, 07 Oct 2007 14:45:11 -0500
parents 839804c3b3a4
children 8f3188746b64
comparison
equal deleted inserted replaced
1989:1bd99632fc4d 1990:c9e4ae9e1580
417 417
418 if(playback->output->open_audio(FMT_S16_NE, c->sample_rate, c->channels) <= 0) return; 418 if(playback->output->open_audio(FMT_S16_NE, c->sample_rate, c->channels) <= 0) return;
419 419
420 wma_st_buff = ST_BUFF; 420 wma_st_buff = ST_BUFF;
421 421
422 wma_ip.set_info(wsong_title, wsong_time, c->bit_rate, c->sample_rate, c->channels); 422 playback->set_params(playback, wsong_title, wsong_time, c->bit_rate, c->sample_rate, c->channels);
423 423
424 /* av_malloc() will wrap posix_memalign() if necessary -nenolod */ 424 /* av_malloc() will wrap posix_memalign() if necessary -nenolod */
425 wma_s_outbuf = av_malloc(wma_st_buff); 425 wma_s_outbuf = av_malloc(wma_st_buff);
426 wma_outbuf = av_malloc(AVCODEC_MAX_AUDIO_FRAME_SIZE); 426 wma_outbuf = av_malloc(AVCODEC_MAX_AUDIO_FRAME_SIZE);
427 427