Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: mcleinn

Search: Search took 0.00 seconds.

  1. IMHO UTF8 in SdFat would be perfectly fine. If...

    IMHO UTF8 in SdFat would be perfectly fine. If this is coming, we can leave the UTF8-UTC2 transfer functions for SdFat as a patch.
    But MTP needs to convert properly to 16bit (UTC2/UTF16) strings...
  2. Please correct me, if I am wrong, but I think C++...

    Please correct me, if I am wrong, but I think C++ and C generally do not have garbage collection.
    But yes, I am reading that dynamic allocation is considered "bad style" on embedded systems, as...
  3. Ok, I implemented it, and I can confirm it works....

    Ok, I implemented it, and I can confirm it works. The directory listing on the host PC now shows Unicode characters correctly.

    MTP.cpp:


    void MTPD::writestring(const char* str8) {
    if...
  4. I just checked MTP.cpp, and it seems to me...

    I just checked MTP.cpp, and it seems to me (haven't worked with C or C++ in a while), that the writestring function blows back the 8bit strings into a 16bit string (which I guess is to be expected,...
  5. Thank you for the offer, Paul! In the last...

    Thank you for the offer, Paul!

    In the last hour, I already implemented the missing eight functions in SdFAT(Core), by calling UTF8<->UCS2 conversion methods.
    The code compiles. Good, this is a...
  6. Ok, I see. Rewriting all the mentioned libraries...

    Ok, I see. Rewriting all the mentioned libraries (at least SD wrapper and MTP-t4) for additional char16_t support seems quite some work.
    But I am considering writing a small patch for SdFat, which...
  7. WMXZ library in storage.h seems to be char*...

    WMXZ library in storage.h seems to be char* focused, yes. I guess this would need to be changed.
    At the very least it is not compatible with the Unicode mode of SdFat.
    In the example, it gets an...
  8. Ok, the example in MTP_t4 is working, but only if...

    Ok, the example in MTP_t4 is working, but only if #define USE_EXFAT_UNICODE_NAMES 0 in ExFatConfig.h
    In this case, the filenames displayed in Windows are displaying all non-American letters as...
  9. Great adviсe, thank you. With the beta...

    Great adviсe, thank you. With the beta Teensyduino the code actually compiles :)
    Serial is working, and there is even an MTP device showing up in Windows.
    Its contents are empty, but that is...
  10. MTP dependency issues w/Teensy 3.6 and SDFat 2.0.4

    Dear community,

    I'm successfully using a Teensy 3.6 as a Unicode-compatible native MP3 player, and would now like to add MTP.
    However, I am running into several dependency issues. There seem to...
  11. Thanks for the quick reply! In other words,...

    Thanks for the quick reply!

    In other words, as long as I don't copy files while I'm playing them, I should be fine?
    The project is a player for my baby daughter, so that wouldn't be a big...
  12. General guidance needed on MP3 (22.05kHz & MTP)

    Dear community,

    looking for general guidance on MP3 with Teensy 3.6.

    I am planning to put several GBs of MP3 on the SD-card. Most are audio books, some of them with sample rates of 22.05kHz. ...
Results 1 to 12 of 12