src/conversions.c File Reference

All conversions we need (text to hundreths of a second,. More...

#include <math.h>
#include <string.h>
#include "splt.h"
Include dependency graph for conversions.c:

Go to the source code of this file.

Functions

double splt_co_convert_from_dB (float input)
float splt_co_convert_to_dB (double input)
long splt_co_convert_to_hundreths (const char *s)
void splt_co_get_mins_secs_hundr (long split_hundr, long *mins, long *secs, long *hundr)
long splt_co_time_to_long (double time)
long splt_co_time_to_long_ceil (double time)

Detailed Description

All conversions we need (text to hundreths of a second,.

..)

Definition in file conversions.c.


Function Documentation

double splt_co_convert_from_dB ( float  input  ) 

Convert a dB value to a factor.

Definition at line 99 of file conversions.c.

float splt_co_convert_to_dB ( double  input  ) 

Convert a factor to the corresponding dB value.

Definition at line 83 of file conversions.c.

long splt_co_convert_to_hundreths ( const char *  s  ) 

Convert a string to an integer containing the hundreths of a second.

Definition at line 44 of file conversions.c.

void splt_co_get_mins_secs_hundr ( long  split_hundr,
long *  mins,
long *  secs,
long *  hundr 
)

Split a long containing a time value in 1/100s to seconds, mins and 100's.

Definition at line 115 of file conversions.c.

Referenced by splt_of_put_output_format_filename(), and splt_u_print_overlap_time().

Here is the caller graph for this function:

long splt_co_time_to_long ( double  time  ) 

Convert float time in fractions of a second to a 1/100 seconds int.

Definition at line 136 of file conversions.c.

Referenced by splt_s_set_silence_splitpoints().

Here is the caller graph for this function:

long splt_co_time_to_long_ceil ( double  time  ) 

Convert float time in fractions of a second to a 1/100 seconds int rounding upwards.

Definition at line 142 of file conversions.c.


Generated on 3 Aug 2012 for libmp3splt by  doxygen 1.6.1