3 Replies Latest reply on Mar 6, 2007 11:20 AM by Newsgroup_User

    setting the soundDevice

    Opera Rat Level 1
      I have just discovered that when I set the soundDevice to _sound.soundDevice = "DirectSound" my mp3s sound WAY better. I hadn't set any soundDevice before. So my question is if I set the soundDevice to DirectSound can any windows machine with XP accomodate this? Does this mean that I should also set my soundDevice to MacSoundManager for a Mac? My program just plays MP3s and has a volume control. If I do need to set the SoundDevice for a Mac how would my single program set one soundDevice if the person is using a Mac and the other if it is using a Windows machine?
        • 1. Re: setting the soundDevice
          Level 7
          I don't think any PCs running XP will have a problem using DirectSound.
          I thought that was the default.

          To write a conditional statement that does something different on
          different OSes, do this:

          if the platform contains "win" then
          --do something for Windows
          else
          --do something for Mac
          end if

          I believe that Macs only have one option of soundDevice, that being
          MacSoundManager. It is the default and probably can't be changed.
          • 2. Re: setting the soundDevice
            Opera Rat Level 1
            If it's the default, it sure makes a difference (the music is louder and cleaner with the code). BUT if I use the line of code then my volume slider becomes a problem it seems to turn the sound back to that of without the SoundDevice being set. The volume suddenly jumps down when I use the slider.
            • 3. Re: setting the soundDevice
              Level 7
              "Opera Rat" <webforumsuser@macromedia.com> posted in
              macromedia.director.lingo:

              > I have just discovered that when I set the soundDevice to
              > _sound.soundDevice = "DirectSound" my mp3s sound WAY better. I hadn't
              > set any soundDevice before. So my question is if I set the soundDevice
              > to DirectSound can any windows machine with XP accomodate this?

              XP, yes. NT, no (but you didn't ask that :)

              You can also check out 'the soundDeviceList' and set it to your favorite from
              the list of soundDevices available on a machine.


              --
              Mark A. Boyd
              Keep-On-Learnin' :)