History

Don't use symbol names read/write.

Fixes incompatible redefinition error on mingw.

Chris Bagwell committed 14 years ago

Commit 388af591 parent 943cae72 files · +7 −7Browse files

Unified · Split

2 files
  1. src/cvsd-fmt.c +3 −3
  2. src/waveaudio.c +4 −4
src/cvsd-fmt.c+3−3
@@ -68,7 +68,7 @@ static void decode(priv_t * p, int bit) · 67 unmodified lines
6868 p->sample = max(p->step_mult * p->sample - p->step, SOX_SAMPLE_MIN);
6969 }
7070
71−static size_t read(sox_format_t * ft, sox_sample_t * buf, size_t len)
71+static size_t cvsdread(sox_format_t * ft, sox_sample_t * buf, size_t len)
7272 {
7373 priv_t *p = (priv_t *) ft->priv;
7474 size_t i;
@@ -85,7 +85,7 @@ static size_t read(sox_format_t * ft, sox_sample_t * buf, size_t len) · 10 unmodified lines
8585 return i;
8686 }
8787
88−static size_t write(sox_format_t * ft, sox_sample_t const * buf, size_t len)
88+static size_t cvsdwrite(sox_format_t * ft, sox_sample_t const * buf, size_t len)
8989 {
9090 priv_t *p = (priv_t *) ft->priv;
9191 size_t i;
@@ -107,7 +107,7 @@ LSX_FORMAT_HANDLER(cvu) · 15 unmodified lines
107107 static unsigned const write_encodings[] = {SOX_ENCODING_CVSD, 1, 0, 0};
108108 static sox_format_handler_t const handler = {SOX_LIB_VERSION_CODE,
109109 "Headerless Continuously Variable Slope Delta modulation (unfiltered)",
110− names, SOX_FILE_MONO, start, read, NULL, start, write, NULL,
110+ names, SOX_FILE_MONO, start, cvsdread, NULL, start, cvsdwrite, NULL,
111111 lsx_rawseek, write_encodings, NULL, sizeof(priv_t)
112112 };
113113 return &handler;
src/waveaudio.c+4−4
@@ -327,7 +327,7 @@ static int start(sox_format_t* ft) · 326 unmodified lines
327327 return SOX_SUCCESS;
328328 }
329329
330−static size_t read(sox_format_t * ft, sox_sample_t* buf, size_t len)
330+static size_t waveread(sox_format_t * ft, sox_sample_t* buf, size_t len)
331331 {
332332 size_t copied = 0;
333333 priv_t *priv = (priv_t*)ft->priv;
@@ -394,7 +394,7 @@ static size_t read(sox_format_t * ft, sox_sample_t* buf, size_t len) · 60 unmodified lines
394394 return copied;
395395 }
396396
397−static size_t write(sox_format_t * ft, const sox_sample_t* buf, size_t len)
397+static size_t wavewrite(sox_format_t * ft, const sox_sample_t* buf, size_t len)
398398 {
399399 unsigned clips = 0;
400400 size_t copied = 0;
@@ -475,8 +475,8 @@ LSX_FORMAT_HANDLER(waveaudio) · 74 unmodified lines
475475 static sox_format_handler_t const handler = {SOX_LIB_VERSION_CODE,
476476 "Windows Multimedia Audio", names,
477477 SOX_FILE_DEVICE | SOX_FILE_NOSTDIO,
478− start, read, stop,
479− start, write, stop,
478+ start, waveread, stop,
479+ start, wavewrite, stop,
480480 NULL, write_encodings, NULL, sizeof(priv_t)
481481 };
482482 return &handler;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t