Skip to content

Audio calls do not compile #11

@Windsurfer01

Description

@Windsurfer01

In the Sprites examle TAudioSample.GetDuration in Bare.Game.Pas causes a SIGSEGV error, unless I edit it as below.

function TAudioSample.GetDuration: Double;
begin
  Result := 10; //PositionToDuration(FSize);
end;

It then runs but does not appear as the sprites video on the getlazarus web site.
I have followed https://www.freepascal-meets-sdl.net/chapter-3-first-steps/ and placed the header files in /usr/local/share /sdl2 and created the path for other units in the Lazarus project options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions