Hi,

i think the basic NSM stuff (open/save song) should be now in place and 
working (in my nsm branch). What is not working atm. is the setting of 
the jack client name. The whole NSM stuff is brought into life after the 
jack client is created, so this a small problem for us. Just moving the 
NSM code around would also not work, since the open() callback is also 
used to open/create a new song, which needs can't be done so early.
An idea would be to move the NSM stuff to the hydrogen core and delay 
the loading of the song, so returning from the open callback before our 
song is created.

Best regards,
Sebastian


On 2014-08-10 1:58, Harry van Haaren wrote:
> Hey,
> 
> Just looked at the callback, basically what needs to happen is that H2
> calls   nsm_check_nowait()   in a timer callback, to respond to
> things that NSM tells it to do.
> 
> I've tried to implement that A) as a static function B) as a method in
> MainForm.
>  The goal:
> -There's one nsm_client_t (currently created/owned by
> main.cpp:main():496 ), this pointer needs to be passed to
> nsm_check_nowait()
> 
> A)
> Using the static function, we must pass the nsm_client_t pointer: I
> didn't find a way to make a QTimer do this: that said, I'm not an
> experienced QT dev :/
> 
> B)
> So I tried to implement a member function in MainForm to do the same
> thing, and pass the nsm_client_t pointer to there, which throws the
> following error on runtime:
> Object::connect: No such slot MainForm::nsm_update( pMainForm ) in
> /root/programming/hydrogen/src/gui/src/main.cpp:521.
> 
> My lack of experience with QT and normal use of QTimers and
> signals/slots makes it hard for me know what the best solution is
> here. Both solutions are fine from NSM's point of view.
> 
> Cheers, -Harry
> 
> On Sat, Aug 9, 2014 at 9:19 PM, <mau...@smoors.de> wrote:
> 
>> Hi,
>> 
>> On 2014-08-09 10:51, Harry van Haaren wrote:
>> 
>>> 
>>> Yes: i tried copying a H2 saved song to that dir, to see if that
>> would
>>> make it work. No luck.
>> 
>> I had no problems with that.. I changed the method a bit to create
>> a new
>> song if the file is not yet existing, and now the new/open stuff
>> seems
>> to be working on my side.
>> 
>> But i stumbled upon a problem with saving.. The callback method is
>> not
>> getting called when i click on the "Save" button at the NSM Gui. On
>> the
>> other hand, i see that the save-callback registered the same way as
>> the
>> callback for opening a song. Is there something left to be
>> implemented/configured to make this work?
>> 
>> Best regards,
>> Sebastian
>> 
>> 
> ------------------------------------------------------------------------------
>> _______________________________________________
>> Hydrogen-devel mailing list
>> Hydrogen-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/hydrogen-devel [1]
> 
> 
> 
> Links:
> ------
> [1] https://lists.sourceforge.net/lists/listinfo/hydrogen-devel
> 
> ------------------------------------------------------------------------------
> 
> _______________________________________________
> Hydrogen-devel mailing list
> Hydrogen-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hydrogen-devel

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Hydrogen-devel mailing list
Hydrogen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel

Reply via email to