Search:

Type: Posts; User: summit45

Search: Search took 0.10 seconds.

  1. Replies
    26
    Views
    3,099

    [SOLVED] Re: Automatic audio file player not working

    However, you are of course right that code ought to be commented. I decided to comment it because it is possible I will want to show it to my university or someone to show what I taught myself...
  2. Replies
    26
    Views
    3,099

    [SOLVED] Re: Automatic audio file player not working

    And I haven't asked anyone to read it. I put it up in case it was to interest of anyone searching the web or the forums looking for answers to a similar problem, or if someone had a comment they...
  3. Replies
    26
    Views
    3,099

    [SOLVED] Re: Automatic audio file player not working

    Believe me when I tell you that I'm pretty confident no human being besides me is ever going to have to reprogram this, and if that day comes, I will put comments in it.

    -summit45
  4. Replies
    26
    Views
    3,099

    [SOLVED] Re: Automatic audio file player not working

    It just does what you said. Declares Calendar objects representing each target time, and parses their Epoch time through a Date object into a long var. Then establishes the current Epoch time, and...
  5. Replies
    26
    Views
    3,099

    [SOLVED] Re: Automatic audio file player not working

    Well, this forum just lost me my last two posts, so here goes an approximate re-do:

    You were right about the CPU usage! I had no idea it would be that bad over a little loop. But yeah, I have...
  6. Replies
    26
    Views
    3,099

    [SOLVED] Re: Automatic audio file player not working

    How would you do it? Like I said, I know most of the code I write could be improved. That's because I'm quite new to Java and teaching it to myself. I have no idea how I would compute the time to...
  7. Replies
    26
    Views
    3,099

    [SOLVED] Re: Automatic audio file player not working

    Well, the program works now. Doesn't do quite everything I'd like, but it's good enough, it runs, it will get the job done I believe.

    I thank everyone who replied for their help!

    -summit45
    ...
  8. Replies
    26
    Views
    3,099

    [SOLVED] Re: Automatic audio file player not working

    Does start() normally finish playing the audio file it references before allowing execution to continue?

    -summit45
  9. Replies
    26
    Views
    3,099

    [SOLVED] Re: Automatic audio file player not working

    println()'s would show me what's happening and when, but not why - and indeed as the code stands now, they already DO show that the for() loop in the FilePlayer is being called twice, one time...
  10. Replies
    26
    Views
    3,099

    [SOLVED] Re: Automatic audio file player not working

    I understand that. When I wrote it, I figured it was probably rather disgusting code-wise, but again, I am inexperienced, but I figure the best way to learn is to go do it, even if it isn't perfect...
  11. Replies
    26
    Views
    3,099

    [SOLVED] Re: Automatic audio file player not working

    Yeah, I'm sorry about the lack of indentation. I wrote it in Notepad and didn't personally care about indenting, but it's not fair to ask others to pick through that mess. Here is the corrected...
  12. Replies
    26
    Views
    3,099

    [SOLVED] Re: Automatic audio file player not working

    Ok, I've got the loop problem fixed - the audio only plays once.

    My problem is now just this: In each method of the FilePlayer object, only the audio file that is initialized there actually...
  13. Replies
    26
    Views
    3,099

    [SOLVED] Re: Automatic audio file player not working

    Tried it, thanks for the suggestion. That helped a lot - now the code runs when the system clock reaches its right time!

    So it looks like my code is getting hung up on my attempted use of the...
  14. Replies
    26
    Views
    3,099

    [SOLVED] Automatic audio file player not working

    So this program is supposed to play back a series of audio files at certain times of the day. I'm aware there are probably ways I could have written it better, but I'm rather new to this, and I'd be...
Results 1 to 14 of 15