[Csnd] alsaseq spurious error message
Date | 2017-10-13 20:13 |
From | Albert Graef |
Subject | [Csnd] alsaseq spurious error message |
Hi everybody, my first post to this list, so please bear with me. :) return (err==-ENOENT)?0:err; Victor, in https://github.com/csound/csound/issues/503 you noted that you consider this ENOENT error genuine? As I detailed above, I don't think it is, but I may be wrong. We can only be really sure if we actually take a look at the snd_midi_event_t struct which causes this specific error. Unfortunately, I don't have the time to dive into the code right now, would anyone else take to care a look? Or maybe just commit the workaround I suggested. I don't think that it will do any harm, whereas that error message looks kind of scary to me. ;-) TIA, Albert -- Dr. Albert Gr"af Computer Music Research Group, JGU Mainz, Germany Email: aggraef@gmail.com WWW: https://plus.google.com/+AlbertGraef |
Date | 2017-10-13 20:42 |
From | Steven Yi |
Subject | Re: [Csnd] alsaseq spurious error message |
Hi Albert, Nice to hear from you! I looked at the code mentioned and it seems fine to me to ignore -ENOENT. The way I understand it, sequencer events are not just MIDI events, so when -ENOENT is found, it's saying "You're trying to decode this event as MIDI. The event is indeed a valid sequencer event, but it just doesn't happen to be a MIDI one". The documentation for snd_midi_event_decode(): http://www.alsa-project.org/alsa-doc/alsa-lib/group___m_i_d_i___event.html#ga9ef018a85ec7f61d45d8b17083bf8cc3 lists which seq events map to MIDI. So... I'd be in favor of the code change proposed. Victor: +1? steven On Fri, Oct 13, 2017 at 3:13 PM, Albert Graef |
Date | 2017-10-13 20:53 |
From | Victor Lazzarini |
Subject | Re: [Csnd] alsaseq spurious error message |
Yes, we should bow to the experience here and do as you suggest. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland > On 13 Oct 2017, at 20:42, Steven Yi |
Date | 2017-10-13 20:53 |
From | Albert Graef |
Subject | Re: [Csnd] alsaseq spurious error message |
Attachments | rtalsa.diff |
Hi Steven, long time no see, how you're doing? :)On Fri, Oct 13, 2017 at 9:42 PM, Steven Yi <stevenyi@gmail.com> wrote: Hi Albert, -- Dr. Albert Gr"af Computer Music Research Group, JGU Mainz, Germany Email: aggraef@gmail.com WWW: https://plus.google.com/+AlbertGraef |
Date | 2017-10-13 21:18 |
From | Steven Yi |
Subject | Re: [Csnd] alsaseq spurious error message |
Hi Albert, Since Victor was +1 and you've tested it there, and since this is just a small one-liner, I went ahead and applied the change and attributed it to you in the commit message: https://github.com/csound/csound/commit/418fd15f591d5333958c0bddf6417d02cd5a1316 In general PRs work great for us, though! Thanks! steven On Fri, Oct 13, 2017 at 3:53 PM, Albert Graef |
Date | 2017-10-13 21:25 |
From | Albert Graef |
Subject | Re: [Csnd] alsaseq spurious error message |
Cool, many thanks!! On Fri, Oct 13, 2017 at 10:18 PM, Steven Yi <stevenyi@gmail.com> wrote: Hi Albert, -- Dr. Albert Gr"af Computer Music Research Group, JGU Mainz, Germany Email: aggraef@gmail.com WWW: https://plus.google.com/+AlbertGraef |