diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2014-12-31 22:11:10 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2014-12-31 22:11:10 +0000 |
commit | ec7b7cf1c956bf17b60d788d73530fcbd12bf51f (patch) | |
tree | 45450baf5b76d8e57b9f198cb1fd9f8db9a6d31f /plugins/Watrack/formats/fmt_mp3.pas | |
parent | 813851def848b52b92f59c379706ada6bebceba9 (diff) |
temporary revert
git-svn-id: http://svn.miranda-ng.org/main/trunk@11705 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Watrack/formats/fmt_mp3.pas')
-rw-r--r-- | plugins/Watrack/formats/fmt_mp3.pas | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/Watrack/formats/fmt_mp3.pas b/plugins/Watrack/formats/fmt_mp3.pas index e9d5d68eed..45c0888daa 100644 --- a/plugins/Watrack/formats/fmt_mp3.pas +++ b/plugins/Watrack/formats/fmt_mp3.pas @@ -125,18 +125,18 @@ end; function SearchStart(f:THANDLE; var l:array of byte):Boolean;
var
CurPos:longint;
- buf:array [0..ScanSize] of byte;
+ Buf:array [0..ScanSize] of byte;
i,j:integer;
begin
CurPos:=FilePos(f)-4;
Seek(f,CurPos);
- j:=BlockRead(f,buf,ScanSize);
+ j:=BlockRead(f,Buf,ScanSize);
i:=0;
while i<j do
begin
- if (i<(j-2)) and (buf[i]=$FF) and //FF FB E4
- ((buf[i+1] and $E0)=$E0) and
- ((buf[i+2] and $F0)<>$F0) then
+ if (i<(j-2)) and (Buf[i]=$FF) and //FF FB E4
+ ((Buf[i+1] and $E0)=$E0) and
+ ((Buf[i+2] and $F0)<>$F0) then
begin
Seek(f,CurPos+i);
BlockRead(f,l,4);
@@ -257,7 +257,7 @@ var w:word;
b:byte;
flag:integer;
- version,Layer:integer;
+ version,layer:integer;
// vbitrate:integer;
// FrmCnt:integer;
begin
@@ -385,8 +385,8 @@ begin end;
l:=ReadDWord(p,endptr);
version:=(l2b(l)[1] and $18) shr 3;
- Layer :=(l2b(l)[1] and $06) shr 1;
- Info.kbps :=btable[version and 1][Layer-1][l2b(l)[2] shr 4];
+ layer :=(l2b(l)[1] and $06) shr 1;
+ Info.kbps :=btable[version and 1][layer-1][l2b(l)[2] shr 4];
Info.khz :=(stable[version][(l2b(l)[2] and $0C) shr 2]) div 1000;
Info.channels:=l2b(l)[3] shr 6;
if Info.channels=3 then
|