Link to home
Start Free TrialLog in
Avatar of Drop_of_Rain
Drop_of_Rain

asked on

About setting up some code.

objects, I am now wondering if only the workout audio files should go into the list and after the list is complete and the user submits it, then ahe list is gone through and all timing files are added at that time.  That way it won't matter when the user presses the timing cycle button. At the time the user submits it, code can check to make sure a timing cycle button was pressed and if not get on pressed before going on.

Let me know if you think this is a better way of doing it?  I think it is now after all the stuff I have put you guys through.
Avatar of Mick Barry
Mick Barry
Flag of Australia image

> I am now wondering if only the workout audio files should go into the list

I suggested that possibility in your previous q :)

Avatar of Drop_of_Rain
Drop_of_Rain

ASKER

You have said that long ago, but I had to understand why it didn't have to happen the way I thought it had to. I had seen it being used in one way, and got stuck seeing it that way. I'm sorry for not following your wisdom, but needed to go through this.

Do you have any suggestions?

i mentioned a couple of q's ago that it sounded like you could get rid of the AudioDetails class altogether, and just store the audio name string in the list. But I'm still not 100% clear on your requirements cannot be totally sure this approach would achieve your goals.

It would be so much easier to help u implement this if you wrote a functional spec *before* trying to implement it :)
<<<It would be so much easier to help u implement this if you wrote a functional spec *before* trying to implement it :)>>>

I have never written one of these before I hope this is what you are asking for

User opens make a custom workout section.

1. All sections of workout buttons are in the frame.
2.The user can choose any order they want to. (Press any button order)
3. Every button pressed needs to be recorded.
3.A list needs as the buttons are pressed.
4,The user needs to be able to unchoose a selection and it is removed from the list
5.That unchoose  selection is removed from the list but not effecting anything else.
6.The user has to submit the workout for processing.
7.A timing cycle must have to been pressed before the submitting can happen.
8.If not a dislog tells them they have to choose one.
9.After one is choosen the list can be submitted.
9a. The user names the workout.
10.All componants are set to clear or back to default.
11.The list is gone through one item at a time and checked againist some conditionals.
12.The choosen timing cycle audiofiles is placed in the list after each item.
13.If the item fits a conditional the timing audiofile is replaced with the proper one.
14.After all timing files are entered into the list the list will be passed to another class.
15.The new class will turn all the audiofiles into streams into a new list.
16.Those streams will be passed to another class.
17.That class will make a single audiofile from the streams.
17.A temp file will be made for backup.
Correction

3a.A list needs to be made as the buttons are pressed.
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The strings will be the file names? All the audiofiles will all be stored in a directory name Audio in the root directory. You said to put all the audiofiles in the same directory then a directory would not have to be in the ActionCommand.

 Is that correct?

How does it know where the audiofiles are?

Is a directory setup somehow?