Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi WaveData Problem in verbindung mt WMP (https://www.delphipraxis.net/92733-wavedata-problem-verbindung-mt-wmp.html)

EWeiss 25. Mai 2007 00:08


WaveData Problem in verbindung mt WMP
 
Liste der Anhänge anzeigen (Anzahl: 2)
Hi

Nicht wirklich berauschend.
Gleiche problem wie beim FFT

Delphi-Quellcode:
Var
  Data16Pos, Data16 : PSmallInt;
Delphi-Quellcode:
      begin
        try
          GetMem(Data16, WAVE_SkipCount shl 11 + 128);
        except
          Result := False;

          BassFuncs^.SetError(BASS_ERROR_MEM);
          Exit;
        end;
        Data16Pos := Data16;

        BASS_ChannelGetData(channel, Data16, WAVE_SkipCount shl 11 + 128);
        if (ChanInfo.chans = 2) then
        begin
          for i := 1 to 575 do
            begin
              try
                VisData^.waveform[0, i] := Data16Pos^ shr 8;
                Inc(Data16Pos, WAVE_SkipCount);

                VisData^.waveform[1, i] := Data16Pos^ shr 8;
                Inc(Data16Pos, WAVE_SkipCount);
              except
                Result := False;

                BassFuncs^.SetError(BASS_ERROR_MEM);
                Exit;
              end;
            end;
        end
Läßt sich in WMP nicht vernünftig darstellen.
Samples wie gehabt 2x1024(2048) anstelle von 575

Ändert aber nicht wirklich was an der Darstellung.

Show pic

gruss Emil


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:01 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz