Re: [hatari-devel] Midi code improvements

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Successfully built now (I haven't tested, just looking at my builds) at least. 

I don't know of a way unfortunately :( 

On Wed, Dec 15, 2021 at 20:12, Eero Tamminen <oak@xxxxxxxxxxxxxx> wrote:
Hi,

Thanks, I pushed hopeful fix.

Is there something on Linux I can use to do at least a compile test on
"PrefsController.m" code?

- Eero

On 15.12.2021 20.58, Troed Sångberg wrote:
> Build failed - log available. Saw this at a quick glance:
>
> error: use of undeclared identifier 'portname'; did you mean 'portName'?
> while ((portName = Midi_Host_GetPortName(portname, +1, true)))
> ^~~~~~~~
> portName
> /Users/troed/dev/hatari/src/gui-osx/PrefsController.m:574:14: note: 'portName' declared here
> const char* portName = NULL;
> ^
> /Users/troed/dev/hatari/src/gui-osx/PrefsController.m:578:2: error: use of undeclared identifier 'portname'; did you mean 'portName'?
> portname = NULL;
> ^~~~~~~~
> portName
> /Users/troed/dev/hatari/src/gui-osx/PrefsController.m:574:14: note: 'portName' declared here
> const char* portName = NULL;
> ^
> /Users/troed/dev/hatari/src/gui-osx/PrefsController.m:579:43: error: use of undeclared identifier 'portname'; did you mean 'portName'?
> while ((portName = Midi_Host_GetPortName(portname, +1, false)))
> ^~~~~~~~
> portName
> /Users/troed/dev/hatari/src/gui-osx/PrefsController.m:574:14: note: 'portName' declared here
> const char* portName = NULL;
> ^
> 3 errors generated.
>
> On Wed, Dec 15, 2021 at 19:46, Eero Tamminen <oak@xxxxxxxxxxxxxx> wrote:
>
>> Hi,
>>
>> I was hoping that somebody could check it beforehand, but I've now
>> pushed my changes.
>>
>> I think Mac GUI should build, the main thing is does the devices view
>> MIDI selection still work, or does it need further changes somewhere.
>>
>> - Eero
>>
>> On 15.12.2021 18.03, Bob Carpenter wrote:
>>> This is Troed’s website for automated Hatari Mac binaries:
>>> https://troed.ddns.net/d/b90229b625/
>>>
>>> It appears to have compiled correctly. I may be able to look briefly at the
>>> binary tonight. However, like Nicolas, I do not use MIDI.
>>>
>>> Bob C
>>>
>>> On Wed, Dec 15, 2021 at 5:20 AM Nicolas Pomarède <npomarede@xxxxxxxxxxxx>
>>> wrote:
>>>
>>>> Le 15/12/2021 à 13:34, Eero Tamminen a écrit :
>>>>> Hi,
>>>>>
>>>>> On 14.12.2021 23.28, Nicolas Pomarède wrote:
>>>>>> Le 14/12/2021 à 21:43, Eero Tamminen a écrit :
>>>>>>> I've just pushed some MIDI functionality improvements.
>>>>>>>
>>>>>>> I have some pending commits that do not change existing
>>>>>>> functionality, just IMHO improve the code. It needs small change in
>>>>>>> Mac GUI code though which I cannot build/test.
>>>>>>>
>>>>>>> Any quick comments on the attached changes?
>>>>>>
>>>>>> looks fine to me, I don't have any specific opinion on the midi part
>>>>>> as long as it works :) (as I don't really use midi I'm glad if you
>>>>>> want to work on it)
>>>>>
>>>>> Thanks!
>>>>>
>>>>> Then the next thing is for somebody having Mac build setup to verify
>>>>> that my small patch to gui-osx/PrefsController.m:
>>>>>
>>>>> * Builds
>>>>> * Mac GUI still works for MIDI
>>>>>
>>>>>
>>>>> Btw. I initially did the Hatari MIDI API change in hopes that Hatari
>>>>> could get run-time detection of new MIDI devices. However, PortMidi
>>>>> apparently detects new MIDI devices only after PmTerminate() &
>>>>> PmInitialize() cycle, which one obviously cannot do whenever Hatari
>>>>> devices dialog is opened.
>>>>>
>>>>> I'm hoping that someday PortMidi would be capable of appending new
>>>>> devices to its device list even without re-init...
>>>>>
>>>>>
>>>>
>>>> Hi
>>>>
>>>> just for testing the Mac version still builds, troed posted some times
>>>> ago a link to his own server where he builds daily snapshot of latest
>>>> change. Don't remember the link, you should find it somewhere in this
>>>> mailing list in an old thread.
>>>> IIRC you can see the build log and check that nothing is broken for Mac.
>>>>
>>>> Nicolas
>>>>
>>>>
>>>> --
>>> Sent from my iPhone
>> >






Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/