Browse Source

- don't check for the PCM format in the .wav reader, to allow reading other audio formats

git-svn-id: trunk@47464 -
nickysn 4 years ago
parent
commit
e3d0b3c7c6
1 changed files with 0 additions and 2 deletions
  1. 0 2
      packages/fcl-sound/src/fpwavreader.pas

+ 0 - 2
packages/fcl-sound/src/fpwavreader.pas

@@ -97,8 +97,6 @@ begin
   Result := Result and (fmt.ChunkHeader.ID = AUDIO_CHUNK_ID_fmt) and ((fmt.ChunkHeader.Size + 8) >= sizeof(fmt));
   Result := Result and (fmt.ChunkHeader.ID = AUDIO_CHUNK_ID_fmt) and ((fmt.ChunkHeader.Size + 8) >= sizeof(fmt));
   if Result and ((fmt.ChunkHeader.Size + 8) > sizeof(fmt)) then
   if Result and ((fmt.ChunkHeader.Size + 8) > sizeof(fmt)) then
     fStream.Seek((fmt.ChunkHeader.Size + 8) - sizeof(fmt), soCurrent);
     fStream.Seek((fmt.ChunkHeader.Size + 8) - sizeof(fmt), soCurrent);
-  if Result and (fmt.Format <> 1) then 
-    Exit(False);
 end;
 end;
 
 
 function Min(a, b: Integer): Integer;
 function Min(a, b: Integer): Integer;