Ignore:
Timestamp:
Apr 23, 2012, 1:32:52 PM (13 years ago)
Author:
chronos
Message:
  • Modified: Supported AudioSystems is configured using include config file.
  • Added: Added playlist demo to Demo player.
  • Added: Working DSP audiosystem for playing using linux /dev/dsp device. DSP backend support only WAV file so far.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • CoolAudio/Systems/WinAPI/UAudioSystemWindows.pas

    r351 r352  
    11unit UAudioSystemWindows;
    22
    3 {$mode objfpc}{$H+}
     3{$I UCoolAudioConfig.inc}
     4{$mode delphi}{$H+}
    45
    56interface
     
    187188  Parm: TMCI_Generic_Parms;
    188189begin
    189   FFlags := 0;
    190   if FUseNotify then
    191   begin
    192     if FNotify then FFlags := mci_Notify;
    193     FUseNotify := False;
    194   end else FFlags := mci_Notify;
    195   if FUseWait then
    196   begin
    197     if FWait then FFlags := FFlags or mci_Wait;
    198     FUseWait := False;
    199   end;
    200   CheckError(mciSendCommand(FDeviceID, mci_Stop, FFlags, Longint(@Parm)));
    201   FPlaying := False;
     190  if FPlaying then begin
     191    FFlags := 0;
     192    if FUseNotify then
     193    begin
     194      if FNotify then FFlags := mci_Notify;
     195      FUseNotify := False;
     196    end else FFlags := mci_Notify;
     197    if FUseWait then
     198    begin
     199      if FWait then FFlags := FFlags or mci_Wait;
     200      FUseWait := False;
     201    end;
     202    CheckError(mciSendCommand(FDeviceID, mci_Stop, FFlags, Longint(@Parm)));
     203    FPlaying := False;
     204    Position := 0;
     205  end;
    202206end;
    203207
Note: See TracChangeset for help on using the changeset viewer.