Skip to content

~ as a shortcut for the home directory not supported (OSX) #5

@thomasgeissl

Description

@thomasgeissl

Heyho Nicola,

I am using ofxPDSP's sample buffer and i just ran into a problem when using ~ instead of /Users/thomasgeissl/. Not sure this is supported in c++ at all. Maybe it is just in the underlying mp3 libary not support. I am wondering if ofxAudioFile should support this. What's your opinion on this?
I guess some regexps and ofFilePath::getUserHomeDir() could fix it.

    // _deckA->load("/Users/thomasgeissl/Desktop/Radiohead_Idioteque.mp3"); //works
    _deckA->load("~/Desktop/Radiohead_Idioteque.mp3"); // gives me an error

Thomas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions