*

Offline LukeZ

  • 339
    • View Profile
  • Kansas, USA
Re: Open Source Sound using Teensy 3.2 and PJRC Audio Library
« Reply #45 on: November 25, 2017, 11:42:29 AM »
I think that what Deny means is that he cannot hear an audible cue that he can fire the cannon again.

A solution for him would be to match the sound length and the "loader" shouting "cannon loaded" or something else like "plug your ears" or "Deny you can now push the fire button" etc..
Aha! Yes I understand now. In fact that is a very good idea and yes it is certainly possible. I will add this feature soon and let you know when it is available. Thank you for the suggestion.

Hi Deny, just to let you know I have added a sound to notify the user that the cannon is ready. The sound name should be "reloaded.wav"

You will need to update the firmware on both your TCB and your sound card. You can do this easily through OP Config.

Then just place the "reloaded.wav" sound on your SD card and it will play when the Cannon Reload Time has expired after firing the cannon. This time is determined by your tank's weight class - you can use one of the standard Tamiya weight classes, or define a custom weight class. See the Battle tab in OP Config for weight class settings. The active weight class is then selected by using the dipswitches on your TCB.
NO SUPPORT THROUGH PM - read why
Open Panzer FAQs

*

Online Deny

  • 24
    • View Profile
  • Russia
Re: Open Source Sound using Teensy 3.2 and PJRC Audio Library
« Reply #46 on: November 25, 2017, 01:59:50 PM »
Hi, Luke.
This is great news.
Will try to test.
Thanks for the quick feedback on the idea.
Regards, Denis

*

Offline LukeZ

  • 339
    • View Profile
  • Kansas, USA
Re: Open Source Sound using Teensy 3.2 and PJRC Audio Library
« Reply #47 on: December 15, 2017, 07:22:44 PM »
Jürgen recently created another sound set, this time for the Panzer III. It is posted to the GitHub page.

Thanks Jürgen!
NO SUPPORT THROUGH PM - read why
Open Panzer FAQs

*

Online Deny

  • 24
    • View Profile
  • Russia
Re: Open Source Sound using Teensy 3.2 and PJRC Audio Library
« Reply #48 on: December 22, 2017, 09:21:34 AM »
Hi, Luke!
After the next update TCB V. 0.92.15 stopped playing on the sound module of the file reloaded. wav, all other files are working properly.
Sincerely, Denis
Regards, Denis

*

Offline jhamm

  • 55
  • It´s a hobby no profession!
    • View Profile
  • Germany
Re: Open Source Sound using Teensy 3.2 and PJRC Audio Library
« Reply #49 on: December 22, 2017, 10:15:02 AM »
Do you have enough ammunition on board?  ;)  :o :P

*

Online Deny

  • 24
    • View Profile
  • Russia
Re: Open Source Sound using Teensy 3.2 and PJRC Audio Library
« Reply #50 on: December 22, 2017, 11:07:26 AM »
Full ammunition )))
Regards, Denis

*

Offline LukeZ

  • 339
    • View Profile
  • Kansas, USA
Re: Open Source Sound using Teensy 3.2 and PJRC Audio Library
« Reply #51 on: December 22, 2017, 01:22:50 PM »
Deny, nothing in the code has change with regards to the reload sound in the last three releases. Please check anything else that might be causing issues:
  • What is the cannon reload time for your currently-selected weight class? If the reload time is very short, you might not hear the reload sound because the cannon fire sound will still be playing.
  • Is the reload sound correctly named and present on your SD card? Test if the sound card can actually play it - put a jumper on RC input 1 on the sound card (connect signal to ground) then turn on the sound card. It will cycle through every sound on the SD card and play it if it can, you should hear your reload sound play otherwise there is an issue with the sound file.
NO SUPPORT THROUGH PM - read why
Open Panzer FAQs

*

Offline LukeZ

  • 339
    • View Profile
  • Kansas, USA
Re: Open Source Sound using Teensy 3.2 and PJRC Audio Library
« Reply #52 on: December 22, 2017, 08:01:52 PM »
Deny I just did a physical test with my TCB running 0.92.15 and the cannon reload sound works fine for me.

Light and Medium weight classes reload so quickly (1 and 5 seconds) that the sound is most likely going to be covered up by the cannon fire sound, if your cannon fire sound lasts 5 seconds which it easily could. For testing set the weight class to Heavy (dipswitch 1 and 2 to Off position). This gives a 9 second reload time.
NO SUPPORT THROUGH PM - read why
Open Panzer FAQs

*

Online Deny

  • 24
    • View Profile
  • Russia
Re: Open Source Sound using Teensy 3.2 and PJRC Audio Library
« Reply #53 on: December 23, 2017, 02:56:20 AM »
Hi, Luke.
 the problem was in the dipswitch. when switching to different modes (easy, medium, hard) the tank remained the custom mode. should have been stronger to move the switches to the edge. Now it is ok.
Regards,  Denis
Regards, Denis

*

Offline jhamm

  • 55
  • It´s a hobby no profession!
    • View Profile
  • Germany
Re: Open Source Sound using Teensy 3.2 and PJRC Audio Library
« Reply #54 on: December 23, 2017, 03:46:08 AM »
The problem is in most cases outside the tank....  ;)

Merry Christmas @ all!

*

Online Deny

  • 24
    • View Profile
  • Russia
Re: Open Source Sound using Teensy 3.2 and PJRC Audio Library
« Reply #55 on: December 23, 2017, 07:18:53 AM »
The problem is in most cases outside the tank....  ;)

Merry Christmas @ all!

straight to the point.

Merry Christmas @ all!
Regards, Denis

*

Offline LukeZ

  • 339
    • View Profile
  • Kansas, USA
Re: Open Source Sound using Teensy 3.2 and PJRC Audio Library
« Reply #56 on: December 23, 2017, 11:32:07 AM »
the problem was in the dipswitch. when switching to different modes (easy, medium, hard) the tank remained the custom mode. should have been stronger to move the switches to the edge. Now it is ok.

Glad to hear it! My favorite kinds of problems are the ones with easy solutions. :D

NO SUPPORT THROUGH PM - read why
Open Panzer FAQs