Show
Ignore:
Timestamp:
04/27/06 03:30:18 (7 years ago)
Author:
qldrob
Message:

Support importing of .gsm files. This should be done better, to accept any format that * is capable of understanding.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.1/recordings/functions.inc.php

    r1624 r1733  
    125125    return false; 
    126126  } 
    127   // Now, we don't want a .wav on the end if there is one. 
    128   if (strstr($filename, '.wav'))  
     127  // Now, we don't want a .wav or .gsm on the end if there is one. 
     128  if (strstr($filename, '.wav') || strstr($filename, '.gsm'))  
    129129    $nowav = substr($filename, 0, -4); 
    130130  sql("INSERT INTO recordings values ('', '$displayname', '$nowav', 'No long description available')"); 
  • modules/branches/2.1/recordings/install.php

    r1564 r1733  
    3838    // Ignore the suffix.. 
    3939    $fname = ereg_replace('.wav', '', $file); 
     40    $fname = ereg_replace('.gsm', '', $file); 
    4041    if (recordings_get_id("custom/$fname") == null) 
    4142      recordings_add($fname, "custom/$file");