Summary:ASTERISK-01389: [patch] Length of audio file format
Reporter:Tilghman Lesher (tilghman)Labels:
Date Opened:2004-04-10 14:50:20Date Closed:2011-06-07 14:04:55
Versions:Frequency of
Environment:Attachments:( 0) 20040410__add_format_length[1].diff.txt
Description:Adds a method to each format specifying the length of the audio sample.


This will be used for a future application of "At the sound of the tone, the time will be exactly XX:YY:ZZ", whereby we'll need to know exactly how long the message will be, so that we can calculate the exact time when it will end.

This is especially important if the format of the time can be specified at runtime.
Comments:By: Brian West (bkw918) 2004-04-30 01:34:57

I'll update this tommorow to include an update for format_ilbc.c also.

By: Mark Spencer (markster) 2004-05-01 21:19:22

Can't you just calculate this from seek/tell?

By: Tilghman Lesher (tilghman) 2004-05-02 13:03:14

Yah, agreed.  At some future point, I might need to create a generic function that does those two steps with one API call.