| View previous topic :: View next topic |
| Author |
Message |
Quatre87 Valued Newbie
Joined: 07 Jan 2004 Posts: 25
|
Posted: Thu Mar 11, 2004 11:25 pm Post subject: VDSMpeg |
|
|
| I Have the next problem : I Have a ID3 Tag Editor in my Mp3 Player, but i can't edit the ID3s while i'm playing the file. Is possible do it? |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Thu Mar 11, 2004 11:27 pm Post subject: |
|
|
| No it's not possible. The MP3 file is locked while being played thus no read/write operations can occur on the file until it is stopped and free'd from playing. |
|
| Back to top |
|
 |
Quatre87 Valued Newbie
Joined: 07 Jan 2004 Posts: 25
|
Posted: Sat Mar 13, 2004 2:47 am Post subject: VDSMpeg |
|
|
Ok.. i understood it, well, i did a code for "deinitialize" the file when save the ID3 and after the save, begin to play the mp3 in the original position:
Mpeg Deinitialize
Mpeg Id3tag,Title,%%title
Mpeg Id3tag,Artist,%%artist
Mpeg Id3tag,Album,%%album
Mpeg Id3tag,Genre,%%genre
Mpeg Close
Mpeg Priority,Critical
Mpeg Open,%%music
Mpeg Initialize
Mpeg Seek,%%pos,0
Mpeg Play
Goto But2button
:But2button
Dialog Select,1
Dialog Close
wait event
Dialog Select,0
goto loop
But when finish the "But2button", the program finish, why? |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Sat Mar 13, 2004 4:37 am Post subject: |
|
|
ummm let's see>
Dialog Select,1
Dialog Close
wait event
Dialog Select,0
Are you sure there is a dialog 1 even open? It looks like it is closed by the time the DIALOG CLOSE command is used thus dialog/form1 is closed. |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Sat Mar 13, 2004 8:31 am Post subject: |
|
|
I usually do:
| Code: | while @event()
wend |
after a dialog close. If there is more than 1 event in the buffer, a close event might still be there when you go back to the main dialog event loop. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
|