Dear All
I am transitioning a Windows Lazarus graphical programme to Linux. I insert my MP3 player (which has a FAT 32 file system) into my Linux computer. I start the programme which is on the computer and select a M3U file, which is on the MP3 player. When the playlist file is opened its contents is written to a memo.
I can then add lines, which are paths/filenames.mp3, to other files and generally edit the window. If I want to know how many minutes of listening I have in the playlist, I need only click a button, GetPlayTime, which does the following:
reads the memo content into a string
changes the \ to a /
reads in the first line of the string
uses BASS to calculate the playtime of that mp3 file
and iterates until there are no more lines/paths left
When the iteration is done and the total play time is known, it is output to a label caption.
I can then add more line or remove some. I do not have to save the memo content to the M3U file, because it is the memo content that is read in.
After making more changes, and without saving the memo content to the M3U file, I want to be able to click the button again and update the total play time displayed. I do click GetPlayTime and no change is registered. This does work in the Windows version.
Subsequent changes to the memo window are not recognised when I click the button to get the playtime. Very odd.
Is there an obvious answer, or do we have to dig deep?
Thanks. And wait to hear