Re: Playing mp3 files as background

  • From: "mixollagy fm UK" <mixollagyfm@xxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Mon, 26 Nov 2007 16:52:15 -0000

guess you could setup a timer, so if your in vb 6, we could do this.
Public wav As Intiger.
Private Sub Frmmain()
wav = 1
End Sub
Private Sub Timer(click)
wav = wav +1
If wav = 30 Then
'we play the file again and reset the wav var to 1 again.
'call the wav procedure here, what ever it might be, playwav_Click() for 
example.
wav = 1
End If
End Sub
You can use a .rez file, it's just getting around the resource editor.
I did see a tutorial on how to do procedures, it was dead simple, it's just a 
simple procedure, but you need to navigate the resource editor.
Put in to google, plannet source code, it's plannet-source-code.com, tuns of 
code and projects to download and mess with, it's a good site!
Kind regards: Jamie.
  ----- Original Message ----- 
  From: Simon 
  To: programmingblind@xxxxxxxxxxxxx 
  Sent: Monday, November 26, 2007 5:28 PM
  Subject: Re: Playing mp3 files as background


  Hi there,
  Yeah I thought of using a resource file and doing it taht way. I'm back to 
using DirectSound8 directly now, as aposed to using it through COMM Audio. So 
not sure if you can use a .rez file with that. I'll give it a go though.
  Converting to wave I can do, sadly though it still doesnt' loop. So perhaps 
it's the file in the first place. I'll stick at it though and see waht we can 
come up with. The file I'm using to test though won't be the eventual file I'll 
be rleasing the game with. This is just for test purposes only, and to learn 
the techniques needed.
  Ah well, back to it for me then.
  Cheers,
  Simon
    ----- Original Message ----- 
    From: mixollagy fm UK 
    To: programmingblind@xxxxxxxxxxxxx 
    Sent: Monday, November 26, 2007 1:16 PM
    Subject: Re: Playing mp3 files as background


    Hi there.
    If you converted the .mp3 to wav files, if you know how to, you could use 
the resource editor to put the sounds in to the .exe file, so there is only the 
1 .exe file and no files with it, because all of the music and affects are in 
the actuall .exe file, also stops people from trying to copy the music and 
affects, i guess.
    Kind regards: Jamie.
      ----- Original Message ----- 
      From: Simon 
      To: programmingblind@xxxxxxxxxxxxx 
      Sent: Monday, November 26, 2007 7:44 AM
      Subject: Re: Playing mp3 files as background


      hahahaha, that's me too! Ooh! This looks interesting! Now what did I come 
here for again? ...
      But I'll definitely have to have a look at that, if that works then it's 
yet another hurdle overcome.
      Allrighty then, let's see if we can get this there mp3 file converted.
      Cheers,
      Simon
        ----- Original Message ----- 
        From: inthaneelf 
        To: programmingblind@xxxxxxxxxxxxx 
        Sent: Monday, November 26, 2007 7:42 AM
        Subject: Re: Playing mp3 files as background


        lol, lots of stuff there, I tend to get focused and miss things myself, 
either that or get distracted with something other than what I wanted,  and 
then forget to get what I originally went there for, grins

        I'm inthane!, I'm an elf!... 
          ----- Original Message ----- 
          From: Simon 
          To: programmingblind@xxxxxxxxxxxxx 
          Sent: Sunday, November 25, 2007 10:56 PM
          Subject: Re: Playing mp3 files as background


          lol I go there all the time and I missed that also? Typical of me. 
Thanks elfers I'll take a look see now.
          Cheers,
          Simon
            ----- Original Message ----- 
            From: inthaneelf 
            To: programmingblind@xxxxxxxxxxxxx 
            Sent: Monday, November 26, 2007 12:06 AM
            Subject: Re: Playing mp3 files as background


            Codex is available from: 
            www.jfwlite.com 
            for free on there programs page, 

            HTH
            inthane
            . For Blind Programming assistance, Information, Useful Programs, 
and Links to Jamal Mazrui's Text tutorial packages and Applications, visit me 
at:
            http://grabbag.alacorncomputer.com
            . to be able to view a simple programming project in several 
programming languages, visit the Fruit basket demo site at:
            http://fruitbasketdemo.alacorncomputer.com

              ----- Original Message ----- 
              From: Simon Jaeger [simon4599] 
              To: programmingblind@xxxxxxxxxxxxx 
              Sent: Sunday, November 25, 2007 3:02 PM
              Subject: Re: Playing mp3 files as background


              It does. It's hard to say what, but something about GoldWave 
converts the files in such a way that ComAudio usually will not decode them. If 
you have soundforge or even CDex, you may want to try those. 
                ----- Original Message ----- 
                From: Simon 
                To: programmingblind@xxxxxxxxxxxxx 
                Sent: Sunday, November 25, 2007 5:58 PM
                Subject: Re: Playing mp3 files as background


                I'm using goldwave. I figured it'd just convert over normally. 
Hmm, I've got a lot to learn here too, it seems.
                Cheers,
                Simon
                  ----- Original Message ----- 
                  From: Simon Jaeger [simon4599] 
                  To: programmingblind@xxxxxxxxxxxxx 
                  Sent: Sunday, November 25, 2007 10:53 PM
                  Subject: Re: Playing mp3 files as background


                  some files, in general, have trouble playing with ComAudio. 
Also, mp3s do not loop, and if you converted it from the laready converted mp3 
to an ogg file, it definitely isn't going to loop. What program are you using 
to convert this file?

                   ----- Original Message ----- 
                    From: Simon 
                    To: programmingblind@xxxxxxxxxxxxx 
                    Sent: Sunday, November 25, 2007 2:55 PM
                    Subject: Playing mp3 files as background


                    Hi guys,
                    This is sort of related to the COMM Audio question that was 
asked earlier, but there are differences so I'll start a new topic just to be 
safe.
                    I'm writing a game that needs background music, among other 
things. Well DirectSound, (version 8 with vb6 in my case), doesn't like to play 
mp3 files, so I'd like to use COMM Audio. In the documentation for for the 
library it says that it has trouble with some mp3 files, (my background music 
is one of them), so I switched to an ogg file. That is to say I converted the 
file. Thing is I'm still having the same problem. Lots of very jumpy, rhythmic, 
but jumpy white noise. While you can dance to it.. bearly, grin, it's not 
something I'd want to put in a professional game really. So to my question. Has 
anyone else had this problem, and if so what did they do to fix it if anything?
                    I have thought about converting the background music to a 
.wav file, which I know do play ok as the other sound effects play wonderfully. 
The only issue I'd have there is download size. I'm scared to think how big the 
file would be if I had to convert 10 levels' worth of music to .wav on top of 
all the other files it needs. Can we say order on CD? *grins*
                    Anyway thanks in advance for any help with this.
                    Regards,
                    Simon

Other related posts: