Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

Windows 7 Spectrum display plugin

Announcements of new plugins or updates.

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo

dperrow
Plugin Author
Posts: 276
Joined: May 27th, 2011, 2:13 pm
Location: Stirling, Scotland

Re: Windows 7 Spectrum display plugin

Post by dperrow »

would not be too hard to make it choose from 3 so i'll go ahead and do this.

Regards

dperrow
Plugin Author
Posts: 276
Joined: May 27th, 2011, 2:13 pm
Location: Stirling, Scotland

Re: Windows 7 Spectrum display plugin

Post by dperrow »

okay, you can try this. You will need to add a line in the config file for AudioDevice3.
SPCV2.zip
As usual, let me know how it goes.

Regards
You do not have the required permissions to view the files attached to this post.

trihy
Posts: 100
Joined: January 17th, 2018, 1:43 pm

Re: Windows 7 Spectrum display plugin

Post by trihy »

dperrow wrote:okay, you can try this. You will need to add a line in the config file for AudioDevice3.
SPCV2.zip
As usual, let me know how it goes.

Regards
Hi. Thanks!

Did some test with this

AudioDevice1=41
AudioDevice2=43
AudioDevice3=33


But seems audiodevice3 is doing nothing. Even started lcdsmartie with only audiodevice3 turned on to avoid conflicts, but didnt work, eq just stays flat.

If I put audiodevice3=33 on audiocdevice1 or 2, it works.

Maybe audiodevice3 is not the correct param or some typo in the code?

The other two entries seems to work fine.

dperrow
Plugin Author
Posts: 276
Joined: May 27th, 2011, 2:13 pm
Location: Stirling, Scotland

Re: Windows 7 Spectrum display plugin

Post by dperrow »

Do you think you could switch on debug and send me the SPCV2.log file please.

dperrow
Plugin Author
Posts: 276
Joined: May 27th, 2011, 2:13 pm
Location: Stirling, Scotland

Re: Windows 7 Spectrum display plugin

Post by dperrow »

Hold that and try this as I found a problem.
SPCV2.zip
You do not have the required permissions to view the files attached to this post.

trihy
Posts: 100
Joined: January 17th, 2018, 1:43 pm

Re: Windows 7 Spectrum display plugin

Post by trihy »

dperrow wrote:Hold that and try this as I found a problem.
SPCV2.zip

Hi! Can confirm Audiodevice3 is now working.

Cant make a real life test cause I forgot the bt headset on a friend house. And will have to wait like 2 weeks to have them back :mrgreen:

But made some test with audiodevice3 and all worked fine.

Thanks

trihy
Posts: 100
Joined: January 17th, 2018, 1:43 pm

Re: Windows 7 Spectrum display plugin

Post by trihy »

dperrow wrote:Hold that and try this as I found a problem.
SPCV2.zip
Hi. How are you?

Was using scp without problems for long time

Today updated to latest windows 10 build 2004 and now scp crashes lcdsmartie evertime it run. I can use other plugins but scp make it crash.

If I can do anything to help, just ask.

I noticed that using just AudioDevice kind of work.

But using

AudioDevice1
AudioDevice2

Most of the times, it crash. Sometimes when you switch between outputs, sometimes just crash when you open it.

I have set
AudioDevice1=33
AudioDevice2=3

With just 3 turned on, works, when I turn on 33, it crash. If I launch lcdsmartie again with both turned on, with 33 as default, works, when I turn off 33 seems it goes to 3 and keep working, if I turn on 33 again, it crash again.

Also noticed that even without switching outputs, it crash after some minutes of use. All of this worked perfect before the win 10 may uodate.

dperrow
Plugin Author
Posts: 276
Joined: May 27th, 2011, 2:13 pm
Location: Stirling, Scotland

Re: Windows 7 Spectrum display plugin

Post by dperrow »

Hi There,
all well here. Trust you are all good?

The latest version of Windows 10 I have available to me and installed is 1909 so I can't try this. However, I'd expect it to be more likely to be a bug so if there's anything more you can tell me about how it crashes that might help but I'll have a peer at the code anyway.

I'm in Scotland and we are just coming out of full lock down starting tomorrow so I'm still milling about the house and have time.

dperrow
Plugin Author
Posts: 276
Joined: May 27th, 2011, 2:13 pm
Location: Stirling, Scotland

Re: Windows 7 Spectrum display plugin

Post by dperrow »

btw is there anything in the log file?

trihy
Posts: 100
Joined: January 17th, 2018, 1:43 pm

Re: Windows 7 Spectrum display plugin

Post by trihy »

dperrow wrote:Hi There,
all well here. Trust you are all good?

The latest version of Windows 10 I have available to me and installed is 1909 so I can't try this. However, I'd expect it to be more likely to be a bug so if there's anything more you can tell me about how it crashes that might help but I'll have a peer at the code anyway.

I'm in Scotland and we are just coming out of full lock down starting tomorrow so I'm still milling about the house and have time.
Hi. Nice to know you are good. Lockdown here too :)

On windows 10 1909 works great.

Problem is latest windows build, may 2020 https://www.microsoft.com/en-us/softwar ... /windows10 It´s win 10 2004, was released some days ago.

You can update there if you want, just hit update now and it will update to may update.

Will try to see if I can take a look at log, lcdsmartie doesnt crash with a dialog box or something, just hang and dissappear, screen on lcd gets stuck with the EQ _______________

Edit. Seems I cant fnd any log file for ldsmartie.

trihy
Posts: 100
Joined: January 17th, 2018, 1:43 pm

Re: Windows 7 Spectrum display plugin

Post by trihy »

I found an easy way to reproduce the problem.

Just use scp as always, go to sound properties and disable the actual output device, it will instantly crash. No need to turn on-off another device.

This happen using

Audiodevice

or

Audiodevice1
Audiodevice2

In cfg file. Both method will crash lcdsmartie as soon as you disable the actual output.

With disabling I mean from here https://www.pcworld.es/cmsdata/features ... device.jpg Just right click, disable. In my case Im using hdmi output.

Tried to disable sound output without scp, and lcdsmartie doesnt crash. With scp will crash, no matter if you are on scp screen. Unchecking scp screen will make lcdsmartie dont crash while disabling audio output.

dperrow
Plugin Author
Posts: 276
Joined: May 27th, 2011, 2:13 pm
Location: Stirling, Scotland

Re: Windows 7 Spectrum display plugin

Post by dperrow »

If it’s there it will be in lcdSmartie/logs/spcv2.log

dperrow
Plugin Author
Posts: 276
Joined: May 27th, 2011, 2:13 pm
Location: Stirling, Scotland

Re: Windows 7 Spectrum display plugin

Post by dperrow »

Okay, that helps narrow it down. I’m wondering if it’s something to do with bass/bass wasabi integration.there are new versions of those but I can’t find anything in the release notes of relevance.

trihy
Posts: 100
Joined: January 17th, 2018, 1:43 pm

Re: Windows 7 Spectrum display plugin

Post by trihy »

dperrow wrote:Okay, that helps narrow it down. I’m wondering if it’s something to do with bass/bass wasabi integration.there are new versions of those but I can’t find anything in the release notes of relevance.
Hi. Yes, I think some changes were made to audio output

More testing, with just audiodevice is harder to make lcdsmartie crash when disabling output. With two audiodevices on cfg is a lot easier to crash it when disabling output. I think with two it crash everytime you disable audio output.

When crashes, scpv2.log show this at the end of the log:

13:42:38.961 SPC_init Chosen audio device is 3

Seems log doesnt even know it crashed.

When not crashing and disabling output, it show on last line:

13:21:36.076 SPC_init Can't initialize chosen audio device
(error code: 3)

Seems scp can not tolerate when output changes with this build of windows. Or at least not tolerate when using two or more audiodevice on cfg.

dperrow
Plugin Author
Posts: 276
Joined: May 27th, 2011, 2:13 pm
Location: Stirling, Scotland

Re: Windows 7 Spectrum display plugin

Post by dperrow »

I'd be keen to see a few lines before each of these messages.

If SPC craches then it's unlikely to log the last message to the file so, yes, it doesn't know it's crashed.

The error translates to:

#define BASS_ERROR_DRIVER 3 // can't find a free/valid driver
BASS_ERROR_DRIVER The driver could not be initialized.

but thats as much as the docs tell me. In effect it is saying it cant initialise the new device when the device changes.

I'm still looking........ Don't really want to do a forced Windows update on this machine though.

trihy
Posts: 100
Joined: January 17th, 2018, 1:43 pm

Re: Windows 7 Spectrum display plugin

Post by trihy »

dperrow wrote:I'd be keen to see a few lines before each of these messages.

If SPC craches then it's unlikely to log the last message to the file so, yes, it doesn't know it's crashed.

The error translates to:

#define BASS_ERROR_DRIVER 3 // can't find a free/valid driver
BASS_ERROR_DRIVER The driver could not be initialized.

but thats as much as the docs tell me. In effect it is saying it cant initialise the new device when the device changes.

I'm still looking........ Don't really want to do a forced Windows update on this machine though.

Hi. Sure, will send you full log by pm. But doesnt show anything different.

This `#define BASS_ERROR_DRIVER 3 // can't find a free/valid driver` should be on log? Never got anything like that on scpv2 log, but will check.

After more testing I could say only hangs when using the option for more than one audiodevice on cfg file.

Not sure if my words sounds rude, my english is pretty basic. Sorry about that.

It`s available on windows update also, but not for every user, it goes on waves. But no need to update, I can do the testing.

trihy
Posts: 100
Joined: January 17th, 2018, 1:43 pm

Re: Windows 7 Spectrum display plugin

Post by trihy »

Well, it says Im not authorized to send pm messages.

Will post them here

http://www.mediafire.com/file/o2ylo3pba ... 2.rar/file

Attached one file when it's working fine, when disabling output with one Audiodevice and when disabling output with two audiodevices.

The workingNomal file it's the same if you have one or two device configured, it will start fine, problem is when switching between or disabling them. With one will show cant finde device, with two will crash.

Maybe it's related to timing? SPCV2 is always looking for output changes? Maybe that milisecond when windows exchanges output make it crash? Adding more time to output check interval could help? Dont know really.

dperrow
Plugin Author
Posts: 276
Joined: May 27th, 2011, 2:13 pm
Location: Stirling, Scotland

Re: Windows 7 Spectrum display plugin

Post by dperrow »

you are correct that the logs didn't help but thanks for posting them.

The check for a change is done using:

CheckRate=100 // defined in SPCV2.cfg
The refresh interval defined in the LCDSmartie settings (mines is set to 30ms)

so 100*30ms => 3second

You could increase Checkrate but I'm not convinced.

I do think it's some sort of timing issue though.

trihy
Posts: 100
Joined: January 17th, 2018, 1:43 pm

Re: Windows 7 Spectrum display plugin

Post by trihy »

dperrow wrote:you are correct that the logs didn't help but thanks for posting them.

The check for a change is done using:

CheckRate=100 // defined in SPCV2.cfg
The refresh interval defined in the LCDSmartie settings (mines is set to 30ms)

so 100*30ms => 3second

You could increase Checkrate but I'm not convinced.

I do think it's some sort of timing issue though.
Hi. Tried changing from 100 to 200 and 300, but no luck.

Also noticed that you can start lcdsmartie with audio disabled and wont crash. Problem is when disabling while lcdsmartie is running. Or switching outputs while running.

dperrow
Plugin Author
Posts: 276
Joined: May 27th, 2011, 2:13 pm
Location: Stirling, Scotland

Re: Windows 7 Spectrum display plugin

Post by dperrow »

Think I've found something. I don't think the code copes when there is no device enabled both at initialisation time and if the devices are changed.

Don't think this is the who;le problem though because if you have 2 devices enabled and disable one of them does it fail then?

trihy
Posts: 100
Joined: January 17th, 2018, 1:43 pm

Re: Windows 7 Spectrum display plugin

Post by trihy »

dperrow wrote:Think I've found something. I don't think the code copes when there is no device enabled both at initialisation time and if the devices are changed.

Don't think this is the who;le problem though because if you have 2 devices enabled and disable one of them does it fail then?
Hi. With two devices turned on, launch lcdsmartie, svcp goes to 33 working fine, turn off 33, svcp goes to 3 and lcdsmartie does NOT crash. All keep working fine.

Its the only instance when using two device and lcdsmartie doesnt crash, if i turn 33 on again, it crash.

So probably you are correct with your findings :D

dperrow
Plugin Author
Posts: 276
Joined: May 27th, 2011, 2:13 pm
Location: Stirling, Scotland

Re: Windows 7 Spectrum display plugin

Post by dperrow »

I'll see if I can fix the no device issue tomorrow and have a look at why turning on 33 would crash it.

trihy
Posts: 100
Joined: January 17th, 2018, 1:43 pm

Re: Windows 7 Spectrum display plugin

Post by trihy »

dperrow wrote:I'll see if I can fix the no device issue tomorrow and have a look at why turning on 33 would crash it.
Hi. Thanks. I think the opposite way should work too. I mean turning on both, launch lcdsmartie, and turn off 3, but since 33 doesnt have a screen I cant check properly.

Remember last svcp code supported 3 audiodevices. Maybe its a good idea to try possible fixes on that one.

Edit. Tried the opposite way, setting 3 as aduiodevice1 and 33 as 2 on cfg. I can turn on and off 3 and will be redirected to 33 and keep working, even If i turn on 3 again, it will switch to 3. But if i turn off 33 and turn on again, it will crash. Seems always is related to on-off on 33

But when only 3 were turned on and disable it from sound properties, also crashed. Maybe when no active device is found, also crash. Im a little confused.

Post Reply