[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnokii/common gsm-filetypes.c,1.49,1.50
From: |
BORBELY Zoltan <address@hidden> |
Subject: |
gnokii/common gsm-filetypes.c,1.49,1.50 |
Date: |
Fri, 24 Oct 2003 12:49:06 +0000 |
Update of /cvsroot/gnokii/gnokii/common
In directory subversions:/tmp/cvs-serv28077/common
Modified Files:
gsm-filetypes.c
Log Message:
ringtone handling updates
Index: gsm-filetypes.c
===================================================================
RCS file: /cvsroot/gnokii/gnokii/common/gsm-filetypes.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -d -r1.49 -r1.50
*** gsm-filetypes.c 3 Oct 2003 10:17:33 -0000 1.49
--- gsm-filetypes.c 24 Oct 2003 12:49:04 -0000 1.50
***************
*** 307,312 ****
} else if (strstr(filename, ".mid")) {
error = file_midi_save(file, ringtone);
} else if (strstr(filename, ".raw")) {
! error = file_nokraw_save(file, ringtone);
} else {
error = file_rttl_save(file, ringtone);
--- 307,314 ----
} else if (strstr(filename, ".mid")) {
error = file_midi_save(file, ringtone);
+ } else if (strstr(filename, ".raw3")) {
+ error = file_nokraw_save(file, ringtone, 0);
} else if (strstr(filename, ".raw")) {
! error = file_nokraw_save(file, ringtone, 1);
} else {
error = file_rttl_save(file, ringtone);
***************
*** 511,515 ****
}
! gn_error file_nokraw_save(FILE *file, gn_ringtone *ringtone)
{
int n = 4096;
--- 513,517 ----
}
! gn_error file_nokraw_save(FILE *file, gn_ringtone *ringtone, int dct4)
{
int n = 4096;
***************
*** 517,521 ****
gn_error err;
! if ((err = pnok_ringtone_to_raw(buf, &n, ringtone)) != GN_ERR_NONE)
return err;
if (fwrite(buf, n, 1, file) != 1) return GN_ERR_UNKNOWN;
--- 519,523 ----
gn_error err;
! if ((err = pnok_ringtone_to_raw(buf, &n, ringtone, dct4)) !=
GN_ERR_NONE) return err;
if (fwrite(buf, n, 1, file) != 1) return GN_ERR_UNKNOWN;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnokii/common gsm-filetypes.c,1.49,1.50,
BORBELY Zoltan <address@hidden> <=
- Prev by Date:
gnokii/common/phones nk6100.c, 1.154, 1.155 nk6510.c, 1.125, 1.126 nokia.c, 1.34, 1.35
- Next by Date:
gnokii/include/gnokii data.h,1.68,1.69
- Previous by thread:
gnokii/common/phones nk6100.c, 1.154, 1.155 nk6510.c, 1.125, 1.126 nokia.c, 1.34, 1.35
- Next by thread:
gnokii/include/gnokii data.h,1.68,1.69
- Index(es):