Diff for /np2/common/wavefile.c between versions 1.3 and 1.5

version 1.3, 2004/06/21 02:01:32 version 1.5, 2005/02/09 20:11:34
Line 3 Line 3
 #include        "wavefile.h"  #include        "wavefile.h"
   
   
 static BOOL headwrite(WAVEWR hdl) {  static BRESULT headwrite(WAVEWR hdl) {
   
         RIFF_HEADER             rif;          RIFF_HEADER             rif;
         WAVE_HEADER             hdr;          WAVE_HEADER             hdr;
Line 62  static void dataflash(WAVEWR hdl) { Line 62  static void dataflash(WAVEWR hdl) {
   
 // ----  // ----
   
 WAVEWR wavewr_open(const char *filename, UINT rate, UINT bits, UINT ch) {  WAVEWR wavewr_open(const OEMCHAR *filename, UINT rate, UINT bits, UINT ch) {
   
         FILEH   fh;          FILEH   fh;
         WAVEWR  ret;          WAVEWR  ret;
Line 119  UINT wavewr_write(WAVEWR hdl, const void Line 119  UINT wavewr_write(WAVEWR hdl, const void
                 wr = min(hdl->remain, size);                  wr = min(hdl->remain, size);
                 CopyMemory(hdl->ptr, buf, wr);                  CopyMemory(hdl->ptr, buf, wr);
                 size -= wr;                  size -= wr;
                 buf = ((BYTE *)buf) + wr;                  buf = ((UINT8 *)buf) + wr;
                 hdl->ptr += wr;                  hdl->ptr += wr;
                 hdl->remain -= wr;                  hdl->remain -= wr;
                 if (!hdl->remain) {                  if (!hdl->remain) {

Removed from v.1.3  
changed lines
  Added in v.1.5


RetroPC.NET-CVS <cvs@retropc.net>