Mercurial > audlegacy
comparison Plugins/Input/aac/src/libmp4.c @ 345:9b19994a715c trunk
[svn] ditto for samplerate... we should have full plugin compatibility now
author | nenolod |
---|---|
date | Mon, 26 Dec 2005 13:01:04 -0800 |
parents | a98a7f2dfc84 |
children | 430658951e30 |
comparison
equal
deleted
inserted
replaced
344:a98a7f2dfc84 | 345:9b19994a715c |
---|---|
298 } | 298 } |
299 duration = MP4GetTrackDuration(mp4file, mp4track); | 299 duration = MP4GetTrackDuration(mp4file, mp4track); |
300 msDuration = MP4ConvertFromTrackDuration(mp4file, mp4track, duration, | 300 msDuration = MP4ConvertFromTrackDuration(mp4file, mp4track, duration, |
301 MP4_MSECS_TIME_SCALE); | 301 MP4_MSECS_TIME_SCALE); |
302 numSamples = MP4GetTrackNumberOfSamples(mp4file, mp4track); | 302 numSamples = MP4GetTrackNumberOfSamples(mp4file, mp4track); |
303 samplerate = MP4GetTrackTimeScale(mp4file, mp4track); | |
303 mp4_ip.output->open_audio(FMT_S16_NE, samplerate, channels); | 304 mp4_ip.output->open_audio(FMT_S16_NE, samplerate, channels); |
304 mp4_ip.output->flush(0); | 305 mp4_ip.output->flush(0); |
305 title = mp4_get_song_title(args); | 306 title = mp4_get_song_title(args); |
306 avgBitrate = MP4GetTrackBitRate(mp4file, mp4track); | 307 avgBitrate = MP4GetTrackBitRate(mp4file, mp4track); |
307 mp4_ip.set_info(title, msDuration, avgBitrate, samplerate/1000, channels); | 308 mp4_ip.set_info(title, msDuration, avgBitrate, samplerate, channels); |
308 | 309 |
309 while(bPlaying){ | 310 while(bPlaying){ |
310 void* sampleBuffer; | 311 void* sampleBuffer; |
311 faacDecFrameInfo frameInfo; | 312 faacDecFrameInfo frameInfo; |
312 gint rc; | 313 gint rc; |