Greetings monks,
I'm currently working on a cross-platform gui flashcard application that i'm thinking about adding to CPAN. Flashcard sets would be stored as individual modules.
However i'm also thinking about making it possible to link the items in the flashcard sets to audio bits, which would optimally be present in the form of audiobanks available as modules on cpan. As i'm doing this with wxPerl i have one restriction though: The audio bits need to be plain wav files and actually present as files; i can't simply feed them to Wx::Sound as a variable.
Right now i'm pondering though exactly how to accomplish this. The ways i can think of would be as follows:
- Have the audiobank module be a hash which contains serialized (Storable, FreezeThaw or something like that) versions of the audio files. When the sound files are required they are unserialized, dumped with File::Temp and the filename forwarded. Problem: Not very elegant.
- Simply add the .wavs as files to the module package and figure out the path to the files, then forward that. Problem: I have no idea if there is a module for that and i don't want to do it the brute way.
Do any of you have better ideas as to how to accomplish this or other comments? Maybe i'm thinking about it in the wrong way completely?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.