Mercurial > audlegacy-plugins
comparison src/tta/libtta.c @ 1987:b7bb2753677c
only four to go!
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Sun, 07 Oct 2007 14:40:32 -0500 |
parents | 839804c3b3a4 |
children | 8f3188746b64 |
comparison
equal
deleted
inserted
replaced
1986:4b78df9dcf93 | 1987:b7bb2753677c |
---|---|
489 origsize = info.DATALENGTH * info.BSIZE * info.NCH; | 489 origsize = info.DATALENGTH * info.BSIZE * info.NCH; |
490 | 490 |
491 bitrate = (int) ((float) datasize / origsize * | 491 bitrate = (int) ((float) datasize / origsize * |
492 (info.SAMPLERATE * info.NCH * info.BPS)); | 492 (info.SAMPLERATE * info.NCH * info.BPS)); |
493 | 493 |
494 tta_ip.set_info (title, 1000 * info.LENGTH, bitrate, info.SAMPLERATE, info.NCH); | 494 playback->set_params(playback, title, 1000 * info.LENGTH, bitrate, info.SAMPLERATE, info.NCH); |
495 | 495 |
496 if (title) | 496 if (title) |
497 g_free (title); | 497 g_free (title); |
498 | 498 |
499 playback->playing = 1; | 499 playback->playing = 1; |