Jump to content
Chinese-Forums
  • Sign Up

ZDT 0.9.0 'error: unable to find sound file'


mvdberg112

Recommended Posts

Fortunately, the error 'Play sound' does not appear anymore with the latest fix. (see: http://www.chinese-forums.com/index.php?/topic/36996-zdt-090b1-relased/page__st__40#comment-305456)

Unfortunately, now sometimes a message 'Unable to find sound file' comes up. Fortunately, it is much less than the previous message.

We are running the zdt.jar provided April 22nd, 2013, as a fix for the 'apostrophe' problem (see here: http://www.chinese-forums.com/index.php?/topic/40642-zdt-090x-three-pinyin-questions/#comment-305777)

Extra info: 'play audio' is Cleared; Win7, Jave 6 27, ZDT0.9.0 with zdt.jar-fix for apostrophe.

The first time the error came up was with the entry 'qi4 tong3'.

This entry was imported using an TXT file. None of the entries in the file gave any problem (not during import, not during studying), until manually a few entries where updated (CTRL-E) - the definition was updated.

This is in the user.script file (in the <user>/zdt folder):

INSERT INTO USER_ENTRY VALUES(5642,138,NULL,'\u6c23\u7b52','\u6c14\u7b52','qi4 tong3','/inflator/(bike) pump/')

INSERT INTO NOTES VALUES(2111,5642,'\u540d\u8bcd; noun; Lesson 12; Hanyu Jiaocheng-Volume 3-Part 1; (\u6c49\u8bed\u6559\u6210-\u7b2c\u4e8c\u518c-\u4e0b-Hanyu Jiaocheng-DiErPeng-Shang; 2006)','','')

Note: the file was is attached here, but the .txt needs to be removed, because the site doesn't allow uploading script files.

Suggestion: when the entries are imported, the fields for Sound and Image are correctly filled with NULL. But when they are manually entered or updated, the values become '' (which is an empty) string. Then when ZDT tries to play a sound, it does not check whether the string actually contains something (perhaps it should only attempt to play a sound when the string is not empty, i.e. soundfile<>'').

Strangerly: I have entered entries manually before, and they did not give this error. I do believe that the fields were often ''. So I do not know why it happens with these and not with others.

Any suggestions?

Thank you!

post-50134-0-32659600-1366810180_thumb.jpg

user.script.txt

Link to comment
Share on other sites

@kaya: 'Do you mean that the audio checkbox at the bottom right is unchecked and nevertheless zdt tries to play the audio file?'

Exactly, yes, that box is cleared and still the error comes up. This leads me to believe that three conditions needs to be met before the error occurs: (1) The field containing the filename is an empty string (ie. '') (2) Before playing the audio file, there is no check whether the string is empty. (3) Even when the box is Cleared, at flipping the card, the audio is played anyway.

I just realize that point (3) is perhaps intended that way, but I am not sure: When the box Character (or pinyin or definition) is checked, it means that the character (or pinyin or definition) is shown before flipping the flashcard (in Self Review mode). When the flashcard is flipped, all three are displayed - that is the whole point of flipping the card. Now, the box 'Audio' probably works the same way: when the card is flipped, the Audio is 'shown' (i.e. played). If the box were checked, then the audio would play before the flip, when the card is shown for the user to answer.

I have created the tracker here:

https://sourceforge.net/tracker/?func=detail&aid=3611776&group_id=133341&atid=726928

Unfortunately, I can only add one file...

Link to comment
Share on other sites

> (3) Even when the box is Cleared, at flipping the card, the audio is played anyway.

Ok, I understand, yes, of course, when you flip the card it doesn't matter which checkboxes have been selected since everything is shown/played.

Btw. did you try my bug fix of the not imported notes?

https://sourceforge.net/projects/zdt/files/zdt-patches/

http://sourceforge.net/projects/zdt/files/zdt-patches/net.sourceforge.zdt.flashcard_0.9.0.jar/download

Replace your net.sourceforge.zdt.flashcard_0.9.0.jar by this one please.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and select your username and password later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Click here to reply. Select text to quote.

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...