catharsis / spotifile

FUSE file system for Spotify
BSD 3-Clause "New" or "Revised" License
144 stars 7 forks source link

Include RIFF header when reading from track file #1

Closed catharsis closed 9 years ago

catharsis commented 9 years ago

By emitting a header containing track information, we can avoid having to specify sample rate, bit depth and the number of channels when playing the track (through mplayer, for example). Very convenient.

I'm not sure whether we should keep the raw pcm data around or not, though I'm leaning towards the latter.

This should also include a renaming of the track file from "pcm" to something indicative of the file's content (track.wav? track_name.wav? wav? wave?)

catharsis commented 9 years ago

Fixed by 3a0e50bb331d4f0e6cdef5858b5bb1781b241601