Changeset 216


Ignore:
Timestamp:
May 3, 2025, 8:25:43 PM (3 months ago)
Author:
gyoung
Message:

Give target file a name different than the source if converting to the same audio type as the source,

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/classes/mm-progs/audioconverter/audconv.c

    r198 r216  
    126126{
    127127  PCHAR textPtr=NULL;
     128  PCHAR Ptr=NULL;
    128129
    129130  strcpy((PCHAR)chrTargetName, (PCHAR)sourceName);
     131  Ptr=strstr(strlwr(chrTargetName),strlwr(chrExt));
    130132  if((textPtr=strrchr((PCHAR)chrTargetName, '.'))!=NULL)
    131133    *textPtr=0;
    132134  else
    133135    textPtr=(PCHAR)chrTargetName;
     136  if(Ptr)
     137    strcat(textPtr,"1");
    134138  strcat(textPtr,".");
    135139  strcat(textPtr, (PCHAR)chrExt);
Note: See TracChangeset for help on using the changeset viewer.