Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ASIO Image #824

Closed

Conversation

rousseldenis
Copy link
Contributor

No description provided.

@@ -73,6 +88,9 @@ GOrgueSplash::GOrgueSplash(bool has_timeout, wxWindow *parent, wxWindowID id) :
SetExtraStyle(GetExtraStyle() | wxWS_EX_TRANSIENT);
wxBitmap bitmap = GetImage_Splash();
DrawText(bitmap);
/* Set ASIO license image */
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@larspalo @oleg68 I'm not sure on how to instantiate image.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, found

@rousseldenis rousseldenis changed the title [WIP] Add ASIO Image Add ASIO Image Oct 31, 2021
@rousseldenis
Copy link
Contributor Author

Here a first preview

image

Scaling of original image is not perfect

@rousseldenis rousseldenis linked an issue Oct 31, 2021 that may be closed by this pull request
@rousseldenis rousseldenis added enhancement New feature or request needs review labels Oct 31, 2021
@rousseldenis rousseldenis added this to the 3.4.2 milestone Oct 31, 2021
@rousseldenis
Copy link
Contributor Author

Ok, found the correct quality argument.

image

@rousseldenis
Copy link
Contributor Author

@larspalo @oleg68 This one is ready

@oleg68
Copy link
Contributor

oleg68 commented Oct 31, 2021

@rousseldenis

  1. I can't see the asio image on the splash screen
    about
  2. Please add an entry in the CHANGELOG.md
  3. Do we still need to display the text about ASIO on the bottom on the splash?
  4. Do we need show the image only under Windows or we should do it under other platforms, where ASIO is not used?

@larspalo
Copy link
Contributor

4\. Do we need show the image only under Windows or we should do it under other platforms, where ASIO is not used?

I think we only need to mention ASIO at all if it's included in the distributed build.

@rousseldenis
Copy link
Contributor Author

rousseldenis commented Oct 31, 2021 via email

@larspalo
Copy link
Contributor

@rousseldenis What?

@rousseldenis
Copy link
Contributor Author

Here is a part of license concerning logo Le dim. 31 oct. 2021 à 20:01, larspalo @.***> a écrit :

4. Do we need show the image only under Windows or we should do it under other platforms, where ASIO is not used? I think we only need to mention ASIO at all if it's included in the distributed build. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#824 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEU76PJ5LAI3IKGDATSEHQLUJWG73ANCNFSM5HCOC4JA .

Mmmh, GitHub don't like email attachments. I will send license

@rousseldenis
Copy link
Contributor Author

image

@rousseldenis
Copy link
Contributor Author

rousseldenis commented Nov 1, 2021

@oleg68 Did you build on my branch (two exist with 'asio' in name) ?

I did it several times from scratch and I have the good result

@rousseldenis
Copy link
Contributor Author

  • Do we still need to display the text about ASIO on the bottom on the splash?
  • Do we need show the image only under Windows or we should do it under other platforms, where ASIO is not used?

3 => I'll take the license assertion 'the ASIO compatible Logo and Steinberg’s copyrights notice'
4 => As soon as the library is included in the whole software, it should

@larspalo
Copy link
Contributor

larspalo commented Nov 1, 2021

Well, if you read the initial 1. statement, I think you'd be hard pressed to find any code that's using or is based on the ASIO driver/ in any GO distributed binary except the windows builds... In the others I'd consider it false marketing... But if we distribute windows builds with ASIO, we should of course mention it in the documentation and on the project website(s) like suggested.

@rousseldenis
Copy link
Contributor Author

In the others I'd consider it false marketing

Indeed. So, what do we do ?

@larspalo
Copy link
Contributor

larspalo commented Nov 1, 2021

We can

  • Use different splash screen content for different builds (if ASIO is included or not)
  • State that the ASIO lines are only valid for windows builds that include ASIO
  • Do something different...

@rousseldenis
Copy link
Contributor Author

  • Use different splash screen content for different builds (if ASIO is included or not)

I like this even if I don't know (yet) how to do it, but quite difficult.

  • State that the ASIO lines are only valid for windows builds that include ASIO

More easy.

@oleg68
Copy link
Contributor

oleg68 commented Nov 1, 2021

@oleg68 Did you build on my branch (two exist with 'asio' in name) ?

I did it several times from scratch and I have the good result

I used the github build result from https://github.com/rousseldenis/grandorgue/actions/runs/1405200626

@rousseldenis
Copy link
Contributor Author

@oleg68 Did you build on my branch (two exist with 'asio' in name) ?
I did it several times from scratch and I have the good result

I used the github build result from https://github.com/rousseldenis/grandorgue/actions/runs/1405200626

Mmmh I see, you took an old build, I commited twice. So, you need to get this https://github.com/rousseldenis/grandorgue/actions/runs/1407748122

@oleg68
Copy link
Contributor

oleg68 commented Nov 1, 2021

Mmmh I see, you took an old build, I commited twice. So, you need to get this https://github.com/rousseldenis/grandorgue/actions/runs/1407748122

Yes, this build works.

@oleg68
Copy link
Contributor

oleg68 commented Nov 1, 2021

  • Use different splash screen content for different builds (if ASIO is included or not)

I like this even if I don't know (yet) how to do it, but quite difficult.

It is not so difficult:

#ifdef ASIO_INCLUDED
    /* Set ASIO license image */
    wxImage asio = GetImage_ASIO();
    wxBitmap m_asio = (wxBitmap)asio.Scale(asio.GetWidth() * 0.1, asio.GetHeight() * 0.1, wxIMAGE_QUALITY_HIGH);
    dc.DrawBitmap(m_asio, 70, 10);
#endif

And to add the folowing code in the CMakeLists.txt:

if(RTAUDIO_USE_ASIO)
  add_definitions(-DASIO_INCLUDED)
endif()

@rousseldenis
Copy link
Contributor Author

@oleg68 Done

CMakeLists.txt Outdated
@@ -68,6 +68,11 @@ else ()
endif ()
option(GO_SEPARATE_LINUX_PACKAGES "Generate separate linux packages for resources and demo" OFF)

# Add ASIO variable
if(RTAUDIO_USE_ASIO)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you move this below in the file, before if(RTAUDIO_USE_ASIO AND NOT ASIO_SDK_DIR)? It'd better to have all asio-related things at one place.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I looked quickly but didn't find them.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And it still doesn't work on linux.

Try to use if(WIN32 AND RTAUDIO_USE_ASIO)

@oleg68 oleg68 modified the milestone: 3.4.2 Nov 3, 2021
@oleg68
Copy link
Contributor

oleg68 commented Nov 7, 2021

@rousseldenis I've created a PR to your repo that solves displaying th ASIO image on linux and mac. Could you take a look?

@oleg68
Copy link
Contributor

oleg68 commented Nov 7, 2021

@rousseldenis I've tested the last version https://github.com/rousseldenis/grandorgue/actions/runs/1430943236

Unfortunnally if the version is too long then the asio image overlappes the version number
goasiowin

Could you try to move the image below?

@rousseldenis
Copy link
Contributor Author

Yes of course. I noticed it but unfortunately didn't have the time yet.

@oleg68
Copy link
Contributor

oleg68 commented Nov 9, 2021

@rousseldenis I submitted rousseldenis#4

After merging it the only thing rests for you is resolving a conflict in CHANGELOG.md

@rousseldenis
Copy link
Contributor Author

@larspalo @oleg68 This one is ready

@oleg68
Copy link
Contributor

oleg68 commented Nov 11, 2021

@rousseldenis please resolve the conflict

@rousseldenis
Copy link
Contributor Author

@rousseldenis please resolve the conflict

Done

@@ -34,8 +34,12 @@ BEGIN_EVENT_TABLE(GOSplashBitmap, wxControl)
EVT_KEY_DOWN(GOSplashBitmap::OnKey)
END_EVENT_TABLE()

<<<<<<< HEAD
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does nott work. Please leave the only line

GOSplashBitmap::GOSplashBitmap(wxWindow *parent, wxWindowID id, wxBitmap& bitmap) :

Copy link
Contributor

@oleg68 oleg68 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the <<< and >>> lines

@rousseldenis
Copy link
Contributor Author

Please remove the <<< and >>> lines

Wrong behaviour in my editor. :-)

@oleg68
Copy link
Contributor

oleg68 commented Nov 13, 2021

@rousseldenis

The ASIO copyright also should be displayed only on windows. And the ASIO sdk version number must be updated.

Please replace in the SplashScreen.cpp:

	wxString msg = _("Copyright 2006 Milan Digital Audio LLC\nCopyright 2009-2021 GrandOrgue contributors\n\nThis software comes with no warranty.\n\nASIO Interface Technology by Steinberg Media Technologies GmbH,\nby use of the Steinberg ASIO SDK, Version 2.2.\nASIO is a trademark and software of Steinberg Media Technologies GmbH.");
	dc.DrawLabel(msg, wxRect(60, 62, 370, 100), wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL);

with

	wxString msg = _("Copyright 2006 Milan Digital Audio LLC\nCopyright 2009-2021 GrandOrgue contributors\n\nThis software comes with no warranty");
	dc.DrawLabel(msg, wxRect(60, 72, 370, 40), wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL);
    #ifdef ASIO_INCLUDED
	font = *wxNORMAL_FONT;
	font.SetWeight(wxFONTWEIGHT_NORMAL);
	font.SetPointSize(7);
	dc.SetFont(font);
	msg = _("ASIO Interface Technology by Steinberg Media Technologies GmbH,\nby use of the Steinberg ASIO SDK, Version 2.3.3.\nASIO is a trademark and software of Steinberg Media Technologies GmbH.");
	dc.DrawLabel(msg, wxRect(60, 122, 370, 40), wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL);
    #endif

@oleg68 oleg68 added the duplicate This issue or pull request already exists label Nov 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request needs review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants