Re: Unicode file paths
[email protected] Fri, 13 Apr 2018 13:05:13 +0800
| Newsgroups | gmane.comp.audio.supercollider.devel |
|---|---|
| Message-ID | <[email protected]> |
---- On Fri, 13 Apr 2018 08:19:24 +0800 James Harkins <[email protected]> wrote ---- > The error reported by the students is "Qt: Could not open soundfile." That strongly suggests SoundFileView.read (I'm calling readWithTask, but currently that delegates to 'read'). Confirmed. SoundFileView is the problem. ( var file; v = SoundFileView(nil, Rect(400, 500, 500, 200)) .onClose_({ file.close }) .front; d = DragSink(nil, Rect(800, 200, 150, 70)) .receiveDragHandler_({ file = SoundFile.openRead(View.currentDrag); if(file.notNil) { d.receiveDragHandler_(nil); "SoundFile got stats successfully".postln; file.dump; "Now trying SoundFileView:read".postln; v.soundfile_(file).read; } { "File couldn't be opened as a sound file".warn } }) .front; ) SoundFile got stats successfully Instance of SoundFile { (02C76370, gc=1C, fmt=00, flg=00, set=03) instance variables [7] fileptr : RawPointer 01EA0098 headerFormat : "WAV" sampleFormat : "float" numFrames : Integer 7408801 numChannels : Integer 2 sampleRate : Integer 44100 path : "C:/Users/blahblah/Downloads/作业(��..." } Now trying SoundFileView:read ERROR: Qt: Could not open soundfile: C:/Users/blahblah/Downloads/作业(完整).wav hjh PS I literally just today learned 完整 = complete / full / intact ;) _______________________________________________ sc-dev mailing list info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/ search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/