comparison src/wma/wma.c @ 1075:37abd9b3de4b trunk

[svn] - conversion to yaz's style was not needed, just API v2 ;p
author nenolod
date Thu, 24 May 2007 15:53:40 -0700
parents 1c6a18ddc874
children 46476de8fc64
comparison
equal deleted inserted replaced
1074:0847931f52b7 1075:37abd9b3de4b
108 108
109 InputPlugin *wma_iplist[] = { &wma_ip, NULL }; 109 InputPlugin *wma_iplist[] = { &wma_ip, NULL };
110 110
111 DECLARE_PLUGIN(wma, NULL, NULL, wma_iplist, NULL, NULL, NULL, NULL); 111 DECLARE_PLUGIN(wma, NULL, NULL, wma_iplist, NULL, NULL, NULL, NULL);
112 112
113 InputPlugin *wma_plugin = &wma_ip;
114
115 static gchar *str_twenty_to_space(gchar * str) 113 static gchar *str_twenty_to_space(gchar * str)
116 { 114 {
117 gchar *match, *match_end; 115 gchar *match, *match_end;
118 116
119 g_return_val_if_fail(str != NULL, NULL); 117 g_return_val_if_fail(str != NULL, NULL);
441 439
442 if(playback->output->open_audio(FMT_S16_NE, c->sample_rate, c->channels) <= 0) return; 440 if(playback->output->open_audio(FMT_S16_NE, c->sample_rate, c->channels) <= 0) return;
443 441
444 wma_st_buff = ST_BUFF; 442 wma_st_buff = ST_BUFF;
445 443
446 wma_plugin->set_info(wsong_title, wsong_time, c->bit_rate, c->sample_rate, c->channels); 444 wma_ip.set_info(wsong_title, wsong_time, c->bit_rate, c->sample_rate, c->channels);
447 445
448 /* av_malloc() will wrap posix_memalign() if necessary -nenolod */ 446 /* av_malloc() will wrap posix_memalign() if necessary -nenolod */
449 wma_s_outbuf = av_malloc(wma_st_buff); 447 wma_s_outbuf = av_malloc(wma_st_buff);
450 wma_outbuf = av_malloc(AVCODEC_MAX_AUDIO_FRAME_SIZE); 448 wma_outbuf = av_malloc(AVCODEC_MAX_AUDIO_FRAME_SIZE);
451 449