Mercurial > audlegacy-plugins
comparison src/madplug/decoder.c @ 1985:a260bd1beef0
use set_params() in madplug
| author | William Pitcock <nenolod@atheme.org> |
|---|---|
| date | Sun, 07 Oct 2007 14:26:26 -0500 |
| parents | fa9f85cebade |
| children | 8f3188746b64 |
comparison
equal
deleted
inserted
replaced
| 1984:489e32a8e106 | 1985:a260bd1beef0 |
|---|---|
| 484 g_free(info->title); | 484 g_free(info->title); |
| 485 info->title = aud_tuple_formatter_make_title_string(info->tuple, audmad_config.title_override == TRUE ? | 485 info->title = aud_tuple_formatter_make_title_string(info->tuple, audmad_config.title_override == TRUE ? |
| 486 audmad_config.id3_format : get_gentitle_format()); | 486 audmad_config.id3_format : get_gentitle_format()); |
| 487 | 487 |
| 488 tlen = (gint) mad_timer_count(info->duration, MAD_UNITS_MILLISECONDS), | 488 tlen = (gint) mad_timer_count(info->duration, MAD_UNITS_MILLISECONDS), |
| 489 mad_plugin->set_info(info->title, | 489 info->playback->set_params(info->playback, info->title, |
| 490 (tlen == 0 || info->size <= 0) ? -1 : tlen, | 490 (tlen == 0 || info->size <= 0) ? -1 : tlen, |
| 491 info->bitrate, info->freq, info->channels); | 491 info->bitrate, info->freq, info->channels); |
| 492 #ifdef DEBUG | 492 #ifdef DEBUG |
| 493 g_message("decode: tlen = %d", tlen); | 493 g_message("decode: tlen = %d", tlen); |
| 494 #endif | 494 #endif |
| 611 #ifdef DEBUG | 611 #ifdef DEBUG |
| 612 #ifdef DEBUG_INTENSIVELY | 612 #ifdef DEBUG_INTENSIVELY |
| 613 g_message("decode vbr tlen = %d", tlen); | 613 g_message("decode vbr tlen = %d", tlen); |
| 614 #endif | 614 #endif |
| 615 #endif | 615 #endif |
| 616 mad_plugin->set_info(info->title, | 616 info->playback->set_params(info->playback, info->title, |
| 617 (tlen == 0 || info->size <= 0) ? -1 : tlen, | 617 (tlen == 0 || info->size <= 0) ? -1 : tlen, |
| 618 info->bitrate, info->freq, info->channels); | 618 info->bitrate, info->freq, info->channels); |
| 619 } | 619 } |
| 620 iteration++; | 620 iteration++; |
| 621 | 621 |
