Discussion Forums  >  Audio, Video, Playing, Recording

Replies: 5    Views: 162

sherab
Code is Art
Profile
Posts: 21
Reg: Mar 17, 2011
Taiwan
210
11/02/12 07:40 AM (13 years ago)

soundboard

Hi There is a soundboard tutorial in bt but it's a earlier one. In v2.0 there isn's any sound effect for button properties. I can't even upload any sound file to bt,always ignore. Any suggestions are more than welcome. thanks.
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
11/02/12 07:53 AM (13 years ago)
The sound effects are still hidden in v2.0, but commented out of the code. The reason for this is to force each plugin to handle audio within themselves, rather than an overall "core" being in control of it. I suppose your options would be to customize your own project's code to re-enable the sound effects, or wait for a soundboard plugin (or another button menu plugin that allows sound)
 
SheriDee
Code is Art
Profile
Posts: 1094
Reg: Sep 23, 2011
location unknow...
22,840
like
11/02/12 09:52 AM (13 years ago)
Hey sherab! I attempted to put an updated tutorial up for 2.0 but alas things have been a bit "weird" on my end to say the least. Shot a video and mess up your hosted account.....not pretty. Also, I only have the tutorial for self-hosted... Anyways let me give you what I have so far. Here is a step by step from David in an email I got from him: ----------------------------------------------------- Open your apps config.txt file. In the Xcode project, the latest one. Remove the dataURL and the reportToCloudURL properties from the configt.txt file. This is temporary, we can put them back. They will look like.. "buzztouchAPIKey":"xxxxxx",  "dataURL":"",  "reportToCloudURL999":"",  "name":"random app name here"  The NAMES of the properties are there, the values are blank.  So, this means to the app: "Don't look online for a config.txt file" We're doing this for a reason. 2) Find a button or menu item in your config.txt file. These will be JSON items that look like:  A menu item will look like this... {"itemId":"11111", "itemType":"BT_menuItem", "titleText":"Row 1", "loadScreenWithItemId":"id of screen to load"} A button will look like... {"itemId":"11111", "itemType":"BT_buttonItem", "titleText":"Row 1", "loadScreenWithItemId":"id of screen to load"} (the only difference is the "itemType". These are known as childItems. A series of "childItems" is the list of menu rows or buttons for a particular screen. To add a sound effect, just add the property name and the sound effect file name like... {"itemId":"11111", "itemType":"BT_buttonItem", "titleText":"Row 1", "loadScreenWithItemId":"id of screen to load", "soundEffectFileName":"yourSound.mp3"} --------------------------- Also...you will need to change the itemProperies.php You can get here: http://cl.ly/code/2z3J3j42193d AGAIN ONLY SELF-HOSTED. I have not figured this out other than working on a plugin for the market. Also....to keep the buttons in place for the soundboard itself I used the tutorial 1.5 works the same. Hope this helps Sheri
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
11/02/12 10:14 AM (13 years ago)
@Sheri, Couldn't you use the JSON snippet keeper for the above instructions? Then you wouldn't have to use a self hosted, and you wouldn't have to delete the dataURL.
 
SheriDee
Code is Art
Profile
Posts: 1094
Reg: Sep 23, 2011
location unknow...
22,840
like
11/02/12 10:31 AM (13 years ago)
True True.....just supporting how wonderful your tool really is ;) . I see this question a lot in the forums and feel that I since I did the first tutorial I put my two cents in.....either way it can be viewed as a very complex thing to do on the back in. ....or maybe a video can show better....tried on my end..total epic fail....do I hear any volunteers? anyone? ahem ;) I do agree with you that a plugin would solve the problem. Sheri
 
sherab
Code is Art
Profile
Posts: 21
Reg: Mar 17, 2011
Taiwan
210
like
11/02/12 07:52 PM (13 years ago)
Thank you so much Sheri and Stobe.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.