(Solved) one sound application at a time

hello,archers! I moved from gnome to Kde(at last) and faced the issue. E.G if amarok plays musik there's no system notifications and smplayer plays no sound t.i only one programm can use alsa at a time. I have latest kde, alsa and gstreamer and xine backends for phonon. alsamixer shows everything's ok. What should  I do? thnx.
Last edited by off220 (2011-01-15 10:30:01)

Ok. I've been able to solve the problem by creating /home/user/.asoundrc file with this content
pcm.softvolPhonon {           
    type softvol             
    slave.pcm "default:CARD=0"
    control {                 
        name "Phonon"         
        card 0               
    min_dB -51.0             
    max_dB 0.0               
    resolution 100           
    hint {                   
        show on               
        description "My Soundcard with extra Volume Control"
Then I just choose Phonon as the mail output in sound preferences. Solved.

Similar Messages

  • Lion OS - Viewing one window/application at a time after using Show Desktop

    Please note I am using a MacBook, but it is connected to a monitor and I use an external Apple keyboard, so those are the shortcuts I am using.
    In Snow Leopard, when I had a lot of windows open and I wanted to, say, drag a file from the desktop into a specific folder in the Finder, I used to use F11 to show the desktop, then choose the Finder from the dock, and that is the only one that would appear. Then I could could easily drag files from the desktop into a folder, etc.
    Now when I try Command+F3 to show the desktop, and choose the Finder, all of the windows I have open repopulate the screen, with the Finder on top - obscuring the desktop.
    Is there a way to quickly sweep away extra windows and choose only ONE to view at a time? (e.g., so the only thing you see on the screen is that one window and the desktop?)
    Many thanks in advance!

    Finder preferences <delete
    • Navigate to ~/Library/Preferences and delete.....
    com.apple.finder.plist
    com.apple.sidebarlists.plist
    Navigate to ~/Library/Preferences/ByHost and delete...
    • com.apple.windowserver.xxxxxxxxxx.plist
    where xxxxxx = a hexadecimal numeric string.
    Navigate to /Library/Preferences and delete...
    • com.apple.windowserver.plist
    george

  • [Solved] Multiple sounds at the same time

    Hello!
    I've just received my new Creative X-Fi Titanium since I was in need of an optical in socket and have spent a while trying to get it to work to my liking.
    I read through the ALSA wiki, read countless posts on the forums such as this one http://bbs.archlinux.org/viewtopic.php?pid=702994, tried several .asoundrc files and of course read the related arch wiki pages without much success.
    Everything is upmixed properly to 5.1 output but I still can't play two sounds at once - with one odd exception:
    When I have mpd playing and start a youtube video, sound will play but it will only output through the 2 front speakers and I can pause and unpause mpd normally, sound will return.
    When I pause mpd and play a youtube video, it gets upmixed properly but mpd returns "error: problems opening sound device".
    Mplayer returns [AO_ALSA] alsa-lib: pcm_hw.c:1291:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: Invalid argument and [AO_ALSA] alsa-lib: pcm_dmix.c:1060:(snd_pcm_dmix_open) unable to open slave.
    Heroes of Newerth returns the same: ALSA lib pcm_dmix.c:1060:(snd_pcm_dmix_open) unable to open slave.
    fuser -v /dev/snd/*
    /dev/snd/controlC0: eyescream 27612 F.... Steam.exe
    /dev/snd/pcmC0D0p: eyescream 27612 F...m Steam.exe
    fuser -v /dev/dsp*
    zsh: no matches found: /dev/dsp*
    cat .asoundrc
    pcm.snd_card {
    type hw
    card 0 # change to your cards number or name
    # 6 channel dmix:
    pcm.dmix6 {
    type dmix
    ipc_key 1024
    ipc_key_add_uid false
    ipc_perm 0666
    slave {
    pcm "hw:0,0"
    rate 48000
    format "S32_LE"
    channels 6
    period_time 0
    period_size 1024
    buffer_time 0
    buffer_size 8192
    # upmixing:
    pcm.ch51dup {
    type route
    slave.pcm dmix6
    slave.channels 6
    ttable.0.0 1
    ttable.1.1 1
    ttable.0.2 0.6
    ttable.1.3 0.6
    ttable.0.4 0.5
    ttable.1.4 0.5
    ttable.0.5 0.5
    ttable.1.5 0.5
    pcm.duplex {
    type asym
    playback.pcm "ch51dup" # upmix first
    capture.pcm "hw:0"
    # change default device:
    pcm.!default {
    type plug
    slave {
    pcm "duplex"
    # for aoss
    #pcm.dsp "duplex"
    #pcm.dsp1 "duplex"
    If anyone could hint me in the right direction as to how I could get it to work properly or provide me with a working .asoundrc, I'd appreciate it!
    Last edited by eyescream (2010-02-25 19:30:30)

    eyescream wrote:I can have sound in mpd and mplayer at the same time now
    Good. So file the damned bug report against mpd. Right now would be a good time.
    eyescream wrote:but flash completely blocks sound off for other things.
    See thread. Prove to me that flash/firefox is blocking:
    fuser -v /dev/snd/* /dev/dsp*
    eyescream wrote:The problem now is that mpd only outputs through my front speakers, so it isn't being upmixed anymore.
    Forget about upmixing for the moment, until you've got the ALSA/OSS conflict solved.
    Edit: Use e.g.:
    audio_output {
    type "alsa"
    name "Sound Card"
    options "dev=dmixer"
    device "headphones"
    In /etc/mpd.conf or ~/.mpdconf, where the device string matches an ALSA pcm entry.
    eyescream wrote:What do you mean by not renaming "default" exactly?
    This, of course, from your own ~/.asoundrc
    # change default device:
    pcm.!default {
         type plug
         slave {
        pcm "duplex"
    Comment that section out, for the time being.
    Last edited by brebs (2010-02-25 02:43:54)

  • Only one sound source at the time works.

    Not that long ago things used to be good. Things used to work nice. I was happy. My desktop was happy. Then, at some point during the summer, something went wrong. I can't remember when exactly it happened, but at some point a poison pill came from the updates, my computer got a bad trip. No error messages, warnings or anything else to prepare me for what was coming.
    My hotkeys in sawfish for changing the volume just stopped working. After a while of scratching my head, I noticed that the mixer device that used to be in /dev just isn't there anymore. Gone like a fart in the desert. No idea how to get it back.
    And if that wasn't enough, the sound also got generally cranky. If I have a youtube or any other similar tab open in my browser, totem is mute. So, if I want to watch a movie or listen to a music and it's not working, I have to figure out which one of the damn browser tabs has decided to hijack my audio and close it. It's sort of a problem in modern multitasking environment.
    Any useful ideas? And no, reinstalling the system is not one.
    If I get this back working, I swear to god I will never ever run updates again.

    jpalan wrote:However, flash still seems to hijack everything.
    Instead of guessing, start playing mplayer and some flash source (youtube or whatever) and post the output of  'fuser -v /dev/snd/*'.
    Is your mplayer using alsa? 'cat ~/.mplayer/config' might have the answer (if you use the config) or just check mplayer output:
    ==========================================================================
    Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
    AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
    Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
    ==========================================================================
    AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
    Video: no video
    Starting playback...
    See that
    AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
    - I have configured mplayer to use alsa.

  • OSS doesn't play more than 1 sound at the same time [SOLVED]

    Hello,
    I use OSS to replace ALSA, it used to work properly here. Today I noticed that I can't play more than one sound at the same time, something which I used to be able to do.
    Also, ossxmix doesn't operate properly (I can't control the volume of a specific program).
    Looks like a permissions issue, because /dev/dsp and /dev/oss are created as root and other users get Permission Denied.
    Any ideas how to fix it? My sound card is an AC'97 onboard.
    Thanks!
    EDIT: Solved by pacman -R oss, rm -rf /usr/lib/oss then pacman -S oss. Seems to have worked.
    Last edited by Renan Birck (2009-01-02 23:06:35)

    Hello Angela,
    Have you tried resetting the iPod yet to see if that makes a difference?  To do this, press and hold both the Select (Center) and Menu buttons together long enough for the Apple logo to appear.
    If that doesn't work, a restore of the iPod via iTunes may be in order.
    B-rock

  • IMac (2008) OS10.6.8 - Main menu freezes when running more than one application at a time.  Apple and 3rd party applications - all freeze the main menu.  Safe mode seems to work OK. Tried repairing permissions - didn't work.

    For the past 60 days I've experienced Main Menu freeze when running more than one application at a time.  iPhoto, Preview, Text Edit, Epson Scan, Firefox and Thunderbird are the apps I use almost daily.  No matter what I do, when more than one is running they will freeze the Main Menu (top of the screen).  I've tried booting is Safe Mode and I don't seem to have a problem.  I've tried several suggestions from repairing permission (DiskUtility) to eliminating specifis login items.  Nothing works. I've posted this issue on the Apple forum several times and no one else has experienced this problem.  I hesitate to take my iMac to the Apple Store or a private Apple repair service until I've exhausted all of my options.  Do I have any more options?    

    Question:  Everytime an app crashes I have the option to report it to Apple - which I usually do.  But I've NEVER reported a Main Menu freeze because it never asks me to
    There's really no need to submit to Apple, it's just a round file cabinet on the other end, especially with 10.6 or earlier.
    This sure sounds like a resource problem...
    See if the Disk is issuing any S.M.A.R.T errors in Disk Utility...
    http://support.apple.com/kb/PH7029
    Open Activity Monitor in Applications>Utilities, select All Processes & sort on CPU%, any indications there?
    How much RAM & free space do you have also, click on the Memory & Disk Usage Tabs.
    Open Console in Utilities & see if there are any clues or repeating messages when this happens.
    In the Memory tab, are there a lot of Pageouts?

  • XFi Can't Handle more than one sound at a time?!?

    I bought an XFi Elite Pro and it was working great. Now, however, it will only handle one sound at a time. For example, if I'm playing a song in iTunes and windows makes a sound, the itunes song cuts out, the windows sound plays, then itunes abruptly cuts back in. Same thing in games. If I'm playing Warcraft the sound will cut out if Windows makes some kind of a sound.
    How do I get my card back to being able to play multiple sounds/music simultaneously? I'm running Vista Ultimate on a Quad Core system with 4 gigs of RAM.

    Sound like something messed up somehow. Maybe you can consider reinstalling the drivers again? @28.86.2.0

  • Only one sound at a time work

    Hi
    Installed arch linux a couple of days ago and got most stuff up and running. Altho one problem I just noticed it that I can only play one sound at a time. For example, if I have music playing from mpd I don't get any sound from youtube or from urban terror only the sound from mpd will be played. I've googled some, but don't really know what to search for
    If you do have a explanation please keep the reply simple as I am still learning
    Thanks in advance
    Last edited by farner (2009-02-24 12:25:54)

    test1000 wrote:
    this might be obvious but are you using intel? the youtube and urban terror/any mmap based game is normal.see http://wiki.archlinux.org/index.php/All … nd_at_once. also from the urban terror webpage: "Urban Terror 4.1 can run on Quake 3 Arena or on the free ioUrbanTerror." if you switch to iourbanterror the alsa issue is fixed. or else you have to start any urban terror with et-sdl-sound which only works on i686.
    edit: if you check the wiki first for stuff like this you usually get a faster response and you get to use your brain as a bonus to
    I actually googled my a* of and searched the wiki, but was unable to find that site. And I do have intel, however after reading
    In Linux, only one program can play a sound at a time unless you have a soundcard that supports hardware mixing (all/most onboard soundchips don't.)
    I decided to use my pci card (a creative audigy 2 ZS). I have been having trouble before getting it to work so I thought I would use my onboard card instead. But it was fairly easy this time
    (had to disable the onboard card in the bios and change the module to snd-emu10k1) and woops it worked
    Thanks for all the help
    Last edited by farner (2009-02-24 22:33:57)

  • XCode won't load more than one application at a time on my iTouch?

    I got the latest SDK, installed the latest firmware, re-generated the provisioning profile. Really, everything works exactly as expected, and xCode installs my application normally, but if I, say, try to install two different sample projects, HelloWorld and TheElements, when I "Build and Go" the second application, it deletes the previous application as part of the installation procedure. That is, TheElements will be installed, and HelloWorld will be deleted.
    This only happens on the device, not in the emulator, and happens with any application, not just these two. I just can't install more than one app on the device.
    According to iTunes, there is plenty of room on the actual iTouch. Also, in Organizer, rather than a checkbox next to the Application, there is an "arrow". When I click the application, I see "Application Data".
    What the ****? Is this normal for iTouch? Are only iPhone developers allowed to develop more than one application at a time?

    you must create an application ID
    (use program portal - App ID) and in provisioning make a profile with the new App ID, and use the
    same profile in your 2 applications
    In Xcode for your project , (2*click target) section properties, use different names as Identifier, and you can have
    more than one of your applications installed on the phone. I use identifieres as
    dk.mochasoft.abc
    and
    dk.mochasoft.xyz
    I think when you release the applications to App Store, you will need different Profiles for the applications. The Apple documentation is a little weak on this subject.

  • In Lion Apple's Mail sound works for about one half a day each time I close it and then open it but it lasts no longer than that

    In Lion Apple's Mail sound works for about one half a day each time I close it and then open it but it lasts no longer than that. What is the fix?

    Try disabling the IDLE switch in the account's Advanced preference panel.

  • Some one please answer this, every time i go into application loader it says, application failed codesign verification go into application loader and try to publish a app it says, please go into depth im a beginner, and use gamesalad

    some one please answer this, every time i go into application loader it says, application failed codesign verification , please go into depth im a beginner, and only use gamesalad please respond as soon as possible!   

    yes i did sorry for the late response LOL plus it was just a minor error! Just check to make sure u have all of ur correct distribution/developer/and creator certificates in your keychain access installed and up-to-date! Plus i have had over 900 downloads on that game!! ^^
    -CHEERS /RYAN

  • Is there any way to load just ONE java application at the same time?

    I'm using 'jnlp' to load java applications and I want to load just one application at the same time.
    Is there any way to do that?
    I have been trying to use 'findLoadedClass' but it doesn't work.
    Also I've tried to make a file when a application is loading and delete when the application exits.
    but it has a problem when the user terminates the application.
    (the file can't be deleted...)
    The applications are using socket to receive data, all of them uses same port. That's why I want to load just one application at a time, otherwise they work wrong way.

    Do you actually mean you want to make sure that only one instance of a GIVEN Java program is running at one time? If so then search this forum becuse this question comes up frequently.

  • 5.1 Surround over HDMI: Solve one problem, another rises up.

    UPDATE 1:  After a good night's sleep, and after doing a bit more reading on alsa-project.org (big props to this page), I managed to get a much better ~/.asoundrc together.  It solves all my problems, and I can do everything I need.  I've preserved the post below in case anyone else runs into these issues, and I'll post my solution as a response to this post.
    UPDATE 2:  Looks like I celebrated too early.  Got more strange problems.  Screw it, I'm going back to PulseAudio.  I just wrote a wrapper script to kill and restart Pulse for applications that really, really need ALSA.
    Okay.  I've almost completely worn out my fingers trying to get this working.  I feel like I'm playing Whack-a-Mole.  This is a bit of a lengthy post, but I'll try my best to describe every problem I've encountered in as much detail as I can, followed by the solutions I found, followed by the problems each solution brought with it.  By going through everything this way, mole by mole, hopefully it'll be easy to follow along and help me come to a universally working solution.
    Summarized Version of Problems:
    5.1 surround works only on specific applications which are robust enough to allow me to manually specify audio output options, and only if ALSA isn't configured at all
    once I've configured ALSA, sound works on every application, but it's all downmixed to 2.0 stereo from this point on
    installing PulseAudio lets me choose 5.1 surround as a default, but brings with it its own problems and drawbacks, namely the lack of passthrough support for encoded streams
    Long-Winded Version:
    I have my computer connected over HDMI to an AVR with a 5.1 surround speaker system.  At first, I didn't have anything configured in ~/.asoundrc (or its global equivalent, /etc/asound.conf).  Neither file existed, so everything was running off defaults.  I got the name and device number of my card from aplay, ran speaker-test and played a six-channel test file in mplayer.
    $ aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    $ aplay -L
    null
    Discard all samples (playback) or generate zero samples (capture)
    pulse
    PulseAudio Sound Server
    hdmi:CARD=HDMI,DEV=0
    HDA Intel HDMI, HDMI 0
    HDMI Audio Output
    $ speaker-test -Dhdmi -c6
    speaker-test 1.0.28
    Playback device is hdmi
    Stream parameters are 48000Hz, S16_LE, 6 channels
    Using 16 octaves of pink noise
    Rate set to 48000Hz (requested 48000Hz)
    Buffer size range from 64 to 349504
    Period size range from 32 to 174752
    Using max buffer size 349504
    Periods = 4
    was set period_size = 174752
    was set buffer_size = 349504
    0 - Front Left
    4 - Front Center
    1 - Front Right
    3 - Rear Right
    2 - Rear Left
    5 - LFE
    Time per period = 21.868405
    $ mplayer -ao alsa:device=hdmi -channels 6 Nums_5dot1_24_48000.wav
    MPlayer SVN-r37224 (C) 2000-2014 MPlayer Team
    210 audio & 441 video codecs
    mplayer: could not connect to socket
    mplayer: No such file or directory
    Failed to open LIRC support. You will not be able to use your remote control.
    Playing Nums_5dot1_24_48000.wav.
    libavformat version 55.33.100 (internal)
    Audio only file format detected.
    Load subtitles in ./
    ==========================================================================
    Opening audio decoder: [pcm] Uncompressed PCM audio decoder
    AUDIO: 48000 Hz, 6 ch, s24le, 6912.0 kbit/100.00% (ratio: 864000->864000)
    Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
    ==========================================================================
    [AO_ALSA] Format s24le is not supported by hardware, trying default.
    AO: [alsa] 48000Hz 6ch s16le (2 bytes per sample)
    Video: no video
    Starting playback...
    A: 8.6 (08.5) of 9.0 (09.0) 0.3%
    Exiting... (End of file)
    Everything seemed well, all six channels played from the correct location on both tests, but I did realize that the device number of the card was 3, not 0.  A lot of applications that aren't as configurable expect the default card/device to be set properly, and audio won't work in those applications without specifying that in ALSA's configuration.  Knowing this, I set the following in my ~/.asoundrc:
    pcm.!default {
    type hw
    card HDMI
    device 3
    ctl.!default {
    type hw
    card HDMI
    device 3
    This, however, ended up causing more problems.  Oh, it made sound work on everything by default after that, but only for one application at a time!  That surpised me, as I thought ALSA's big advantage over OSS is that it can multitask.  Running the speaker-test the way I did earlier turned out fine, but when I tried playing that test file in mplayer, things got weird again. Here's the output from mplayer:
    $ mplayer -ao alsa -channels 6 Nums_5dot1_24_48000.wav
    MPlayer SVN-r37224 (C) 2000-2014 MPlayer Team
    210 audio & 441 video codecs
    mplayer: could not connect to socket
    mplayer: No such file or directory
    Failed to open LIRC support. You will not be able to use your remote control.
    Playing Nums_5dot1_24_48000.wav.
    libavformat version 55.33.100 (internal)
    Audio only file format detected.
    Load subtitles in ./
    ==========================================================================
    Opening audio decoder: [pcm] Uncompressed PCM audio decoder
    AUDIO: 48000 Hz, 6 ch, s24le, 6912.0 kbit/100.00% (ratio: 864000->864000)
    Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
    ==========================================================================
    [AO_ALSA] alsa-lib: pcm_hw.c:1557:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p' failed (-2): No such file or directory
    [AO_ALSA] Playback open error: No such file or directory
    Failed to initialize audio driver 'alsa'
    Could not open/initialize audio device -> no sound.
    Audio: no sound
    Video: no video
    Exiting... (End of file)
    Why the hell is it looking for pcmC0D0p?  It should be looking at pcmC0D3p.  Did it not get the memo from ~/.asoundrc?  Urgh.
    I've also tried '-af channels=6' in place of '-channels 6' but the same result happened.  It does the same thing without the '-ao alsa' option, I just specified it to trim down the output, so that I wouldn't be copying and pasting all kinds of other errors about not finding OSS or JACK or other things I don't have installed.
    If I symlink /dev/snd/pcmC0D0p to /dev/snd/pcmC0D3p, it'll fix the problem, but that feels like one ugly kludge.  I'd have to do it again over and over every time I reboot, too.
    Not sure if this would help matters or not, but if anyone knows how to change my card's device number from 3 to 0, I'd like to try that as well, but I'm not sure how to do that sort of thing.  I'm just guessing it might be worth trying, since everything looks for card0/device0 by default, and that kludge I tried earlier did have an effect, so maybe if we can just switch those device numbers with each other, everything would work smoothly without having to force anything through ALSA's configuration at all.  I believe card0/device0 belongs to the Host Bridge... is there a way to have them trade their device numbers for one another's in a safe manner?
    I can also get it to play if I specify the device like I did in my first test, using '-ao alsa:device=hdmi', but that defeats the purpose of getting good defaults set if I still have to set everything by hand before I play something.  If I try playing the test file without any options, like so:
    $ mplayer Nums_5dot1_24_48000.wav
    ... it will play, but only in two-channel stereo, and the parts that should happen in the center, rear and LFE channels get downmixed into the left and right channels.
    I can get it to work in aplay, though!  All six channels!  Not that I plan on using this as my primary multimedia software.
    $ aplay -c6 Nums_5dot1_24_48000.wav
    The only solution I found so far that allows me to have 5.1 audio by default is to install the PulseAudio server, which is able to find a sink/source named 'alsa_output.pci-0000_00_03.0.hdmi-surround' and lets me choose that as my default.  Only problem with this is that PulseAudio has its own problems.
    Aside from the crackling sound issues in some Wine games, Pulse also has a much bigger drawback -- a complete lack of passthrough support, meaning I can't use encoded streams such as Dolby DTS and TrueHD with PulseAudio.  I have a Harman/Kardon AVR and I'd like to get my money's worth out of it, so I'd really like to figure out a solution in ALSA without using Pulse at all.
    Does anyone know how I can have my cake and eat it, too?  I just need 5.1 surround, by default, in ALSA without PulseAudio.
    HUGE thanks to anyone who tries to help here.  This is really making me sad and frustrated, I've been using Arch for quite a while now and this is the first real big stumper I've come across that forced me to post a thread.  Otherwise I've been having a wonderful time.
    Edited because I tried something different that removed *some* issues, but the above problems still remain.
    Last edited by Rybelda (2014-10-27 22:10:24)

    Well, I thought I fixed it doing this...
    pcm.!default {
    type plug
    slave.pcm "dmixer"
    pcm.dmixer {
    type dmix
    ipc_key 1138
    ipc_key_add_uid true
    slave {
    pcm "hw:0,3"
    format S32_LE
    channels 8
    rate 192000
    period_size 9600
    buffer_size 38400
    ... but then realized it strangely makes applications that run at 640x480 have no sound at all.  No idea why the video resolution is screwing up the sound, but that's what's happening, because if I set the resolution any higher, the sound comes back.
    I'm going back to PulseAudio, I feel like ALSA is mocking me.  I wrote a wrapper script for the few times where pure, Pulse-less ALSA will be necessary for me.  Here it is, in case it helps anyone else.  I've tested it with XBMC, it turns off Pulse and allows ALSA to pass through encoded streams unhindered.  It also works with some Wine applications that have scratchy audio glitches in Pulse.
    #!/bin/bash
    echo "autospawn = no" > $HOME/.config/pulse/client.conf
    pulseaudio --kill &> /dev/null
    "$*"
    rm -f $HOME/.config/pulse/client.conf
    pulseaudio --start &> /dev/null
    I'm removing the SOLVED tag because technically I didn't resolve any of my original issues, I more or less gave up on what I wanted to do and found another way to satisfy my needs, but it still isn't as elegant as I had hoped for.  In any case, I'm done with this issue for now and the forseeable near-future, but if anyone has anything further to add, feel free.
    Last edited by Rybelda (2014-10-27 22:32:55)

  • Need Help On this(solve these 2 applications)

    Hello All,
    Find below the questions for Snooker scoreboard application programming in java and second one is an applet. Please solve the two applications and send me the code immediately to [email protected] and [email protected] .
    I have the exam tomorrow and any help regarding this is appreciated.
    1)
    UNIVERSITY OF SUNDERLAND
    SCHOOL OF COMPUTING AND TECHNOLOGY
    MODULE CODE:      COMM3C
    MODULE TITLE:      Java Network Programming
    MODULE ASSESSOR:      Adrian Wadsworth
    ASSESSMENT:      One of Two (Referred/Deferred)
    TITLE OF ASSESSMENT:      Individual Assignment Snooker Scoreboard Application (4 pages)
    MODERATED:      May 2006
    PLEASE READ ALL INSTRUCTIONS AND INFORMATION CAREFULLY.
    This assignment contributes 50% to your final module mark.
    Please ensure that you retain a duplicate of your assignment. We are required to send samples of student work to the external examiners for moderation purposes. It will also safeguard in the unlikely event of your work going astray.
    THE FOLLOWING LEARNING OUTCOMES WILL BE ASSESSED:
    Knowledge of:
    a.      Critical awareness of the issues and problems associated with the development of programs to run in a networked environment      �9
    b.      Critical understanding of the Java and the web      �9
    c.      Architectural issues of relating to distributed systems
    d.      Critical awareness of network programs and network protocols      �9
    and ability to:
    e.      Design and implement a Java applet or application      �9
    f.      Critically evaluate network technologies for specific requirements
    g.      Design test a Java based on-line systems      �9
    h.      Work as part of a team to develop a component based system.
    i.      Use and critically evaluate Software Engineering tools      �9
    IMPORTANT INFORMATION
    You are required to submit your work within the bounds of the University Infringement of Assessment Regulations (see your Programme Guide). Plagiarism, paraphrasing and downloading large amounts of information from external sources, will not be tolerated and will be dealt with severely. Although you should make full use of any source material, which would normally be an occasional sentence and/or paragraph (referenced) followed by your own critical analysis/evaluation. You will receive no marks for work that is not your own. Your work may be subject to checks for originality which can include use of an electronic plagiarism detection service.
    Where you are asked to submit an individual piece of work, the work must be entirely your own. The safety of your assessments is your responsibility. You must not permit another student access to your work.
    Where referencing is required, unless otherwise stated, the Harvard referencing system must be used (see your Programme Guide).
    Submission Date and Time      Before 4pm, Friday 1st September 2006
    Submission Location      LRC, Reg Vardy Centre, St Peters Campus
    Java Network Programming (COMM3C)
    Assignment 1 (Referred/Deferred) May 2006
    Snooker Scoreboard Application
    This assignment is designed to consolidate the knowledge of the Java programming language you have gained in the first half of the course and to develop your skills in using basic Java input/output facilities, designing graphical user interfaces and implementing client-server systems.
    The Application (70 marks)
    You will develop a client/server based scoreboard application which will present and log the activity of a snooker match which may comprise a maximum of 15 frames. Your application must be capable of performing the following functions:
    (a) Displaying the current score of each player for the current frame.
    (b) Displaying the break for the player currently at the table.
    (c) Displaying a record of the sequence of balls potted with their values during each break for each player during the current frame.
    (d) Logging, and ultimately storing on a floppy disc in drive A, a record of the sequence of events occurring during a frame. This would include: fouls committed, balls potted with their values and which player potted them for each frame completed. This is intended to provide the definitive record for the frame. Note that, with the exception of player names, match identification and the date, no other information (such as the frame score) should be stored on disc.
    (e) Recalling a frame's record from disc. The application must be able to process the data recalled from disc for any chosen frame and provide the following information:
    i) the frame score and the highest break for each player,
    ii) the number of points conceded as fouls by each player,
    iii) the number of times each player visited the table,
    vi) the number of times each colour ball (not reds or free balls) was
    v) potted in the frame as a whole by each player.
    The application must be developed as a client/server system using the loopback address so the client and the server can be run on the same computer.
    The client will include the graphical User Interface (GUI) which will facilitate the entry of player names, a method of scoring, a method of displaying all required information and interaction with the server to allow data to be sent to it and recalled from it. See above for detailed requirements.
    The server must facilitate the storage to and retrieval from floppy disc of match data and interaction with the client. The server need only be capable of interacting with a single client.
    The Application (continued)
    In addition to your report (see next page), you must submit a 3.5 inch virus checked floppy disc (CD's are NOT acceptable) which must contain four folders, described below, and nothing else.
    Folder 1: The clientSource folder. Must contain all client source files and nothing else.
    Folder 2: The clientClass folder. Must contain all client class files and nothing else.
    Folder 3: The serverSource folder. Must contain all server source files and nothing else.
    Folder 4: The serverClass folder. Must contain all server class files and nothing else.
    Any number of client classes may be developed, but the class containing the client's main method must be called client. Any number of server classes may be developed, but the class containing the server's main method must be called server.
    All applications must be executable directly from the command prompt window, without the use of an additional Integrated Development Environment such as Eclipse or JBuilder. You must clearly identify which version of Java you have used to develop your application.
    Note that it will not be possible for you to include class files corresponding to source files which do not compile correctly. You must, however, include all of your source files in the appropriate folder regardless of whether or not they compile.
    You should place the floppy disc in a small envelope and tape it to the front sheet of your report so that no text on the front sheet is obscured. Do not apply tape to the disc itself.
    Report Submission Details (30 marks)
    Your report must contain the following elements:
    (a) a well commented source listing of the application source code (whether functional
    or not). Note that sections of code which do not function correctly should be clearly identified by the words "NOT FULLY FUNCTIONAL" and accompanied by a brief hand written explanation of the problem.
    (b) a maximum of four screen shots showing the application in action
    (c) a conclusion, with clearly marked sub-headings, which must include:
    i) a clear statement of the extent of the application's functionality,
    ii) a brief explanation of how to use your version of the application,
    iii) a description of how you have made the application robust,
    iv) any other commentary that you feel is relevant.
    Your report must be presented on A4 sheets of paper which must be stapled together at the top left corner to allow access to all of the report�s contents without removing the staple.
    If your report is too thick to be secured using a staple, punch a hole in the top left corner and bind the pages together with a treasury tag.
    Your report must not be submitted in any type of cover or folder.
    Your name, my name and the module number must be clearly displayed on the front sheet of your submission.
    No other information, designs or motifs should appear on the front sheet.
    Note that all the pages of this assignment must be submitted with your report and must immediately follow the front sheet.
    Your report must NOT be submitted electronically and must NOT be included on your floppy disc.
    Failure to comply with the requested report and floppy disc submission format will result in the allocation of a significantly reduced mark.
    A.Wadsworth
    2)UNIVERSITY OF SUNDERLAND
    SCHOOL OF COMPUTING AND TECHNOLOGY
    MODULE CODE:      COMM3C
    MODULE TITLE:      Java Network Programming
    MODULE ASSESSOR:      John Tindle
    ASSIGNMENT      Two of Two (Referred/Deferred)
    TITLE OF ASSIGNMENT:      Java Media Player
    MODERATED:      May 2006
    PLEASE READ ALL INSTRUCTIONS AND INFORMATION CAREFULLY.
    This assignment contributes 50% to your final module mark.
    Please ensure that you retain a duplicate of your assignment. We are required to send samples of student work to the external examiners for moderation purposes. It will also safeguard in the unlikely event of your work going astray.
    THE FOLLOWING LEARNING OUTCOMES WILL BE ASSESSED:
    Knowledge of:
    a.      Critical awareness of the issues and problems associated with the development of programs to run in a networked environment      �9
    b.      Critical understanding of the Java and the web      �9
    c.      Architectural issues of relating to distributed systems
    d.      Critical awareness of network programs and network protocols      �9
    and ability to:
    e.      Design and implement a Java applet or application      �9
    f.      Critically evaluate network technologies for specific requirements      �9
    g.      Design test a Java based on-line systems      �9
    h.      Work as part of a team to develop a component based system.
    i.      Use and critically evaluate Software Engineering tools      �9
    IMPORTANT INFORMATION
    You are required to submit your work within the bounds of the University Infringement of Assessment Regulations (see your Programme Guide). Plagiarism, paraphrasing and downloading large amounts of information from external sources, will not be tolerated and will be dealt with severely. Although you should make full use of any source material, which would normally be an occasional sentence and/or paragraph (referenced) followed by your own critical analysis/evaluation. You will receive no marks for work that is not your own.
    Where you are asked to submit an individual piece of work, the work must be entirely your own. The safety of your assessments is your responsibility. You must not permit another student access to your work.
    Where referencing is required, unless otherwise stated, the Harvard referencing system must be used (see your Programme Guide).
    Submission Date and Time      Before 4pm, Friday 1st September 2006
    Submission Location      LRC, Reg Vardy Centre, St Peters Campus
    Module COMM3C Java Network Programming
    Assignment 2 (Referred/Deferred) May 2006
    Java Media Framework
    Part 1 Research Topics
    The Java Media Framework API (JMF) enables audio, video and other time-based media to be added to applications and applets built on Java technology. This optional package, which can capture, playback, stream, and transcode multiple media formats, extends the Java 2 Platform, Standard Edition (J2SE) for multimedia developers by providing a powerful toolkit to develop scalable, cross-platform technology.
    The aim of this assignment is to develop the skills required by a network systems developer so that they are able to incorporate standard Java components code into their own projects.
    Here is a link the JMF website
    http://java.sun.com/products/java-media/jmf/
    JMF documentation
    http://java.sun.com/products/java-media/jmf/reference/docs/index.html
    JMF code examples
    http://java.sun.com/products/java-media/jmf/reference/codesamples/index.html
    JMF Documentation
    http://java.sun.com/products/java-media/jmf/2.1.1/specdownload.html
    Download and read the JMF API Guide
    https://sdlc3a.sun.com/ECom/EComActionServlet;jsessionid=1BA18CD12B4C0D0DEC445DAAD5522248
    Research the topics given in Part 1 and answer the questions listed below.
    Describe the structure and mode of operation of the JMF in your own words.
    Describe in your answer Controller Event (ref p30 JMF API Guide)
    Describe in your answer Standard Controls (ref p20 JMF API Guide)
    Describe in your answer Presenting RTP Media Streams (ref p68 JMF API Guide)
    Describe in your answer Capturing Time Based Media (ref p77 JMF API Guide)
    Describe what is meant by a Media Processor and a Media Player. How do they differ?
    Part 2 SimplePlayerApplet.java
    Download the Java Applet, modify the source code and add it to a package within a Java Project. Recompile the Applet using JBuilder. Please refer to the following two links:
    Code examples
    http://java.sun.com/products/java-media/jmf/reference/codesamples/index.html
    SimplePlayerApplet.java
    http://java.sun.com/products/java-media/jmf/2.1.1/samples/samples/SimplePlayerApplet.java
    Download the JMF library and add it to the JBuilder IDE using the Project Properties function.
    Download the JMF library using this link
    http://java.sun.com/products/java-media/jmf/2.1.1/download.html
    Describe how you developed the applet SimplePlayerApplet.java
    Describe how you tested SimplePlayerApplet.java.
    Use the JB Builder/Designer tool to add two buttons to a Frame to start and stop the AppletPlayer.
    Upload the Applet online to your CET website.
    Set the access rights so that the Applet will run online via browser.
    Test the Applet using a browser.
    Provide screenshots to prove the Applet runs satisfactorily online.
    Here is a link to view the operation of the JMF Player
    http://osiris.sunderland.ac.uk/~cs0jti/NetSys/website/data-archive/COMM3C-JavaNP/JavaMediaFramework/SimplePlayerApplet/classes/
    To run the Applet click on SimplePlayerApplet.html
    To run this applet in your browser you must install the Java Runtime Environment and the JMF.
    http://java.sun.com/j2se/1.4.2/download.html
    To run the Applet it is also recommended that a codec pack is installed.
    Here is a link to freecodecs.com
    http://www.free-codecs.com/download/K_Lite_Codec_Pack.htm
    The following codec packs have been found to work satisfactorily with the JMG Applet.
    Install either the (i) K-Lite Code Pack or the (ii) XP Codec Pack
    Note - Do not install both codec packs at the same time.
    Video clips may be found at this URL
    http://osiris.sunderland.ac.uk/~cs0jti/NetSys/website/data-archive/COMM3C-JavaNP/JavaMediaFramework/
    Tests have shown that the following files are compatible with the JMF Player,
    1 - eng.avi
    2 - movie.mpeg
    3 - hvid.avi
    Note
    If any of the links given above are broken then students may find copies of this data stored at the following URL.
    http://cet-netres-srv.sunderland.ac.uk/website/Archive2006/JMF/SimpleAppletPlayer/
    Student Report Structure
         1. Write and submit an original report relating to the design of your Java application.
         2. Provide a printed report. Your mark will primarily be obtained from your printed report.
         3. The contents of the report must be completely original, this includes text, diagrams and any simple examples.
         4. Students are required to submit a disk with their JBuilder Java Projects.
         5. Students must put their disk in an envelope and attach it their report.
         6. If the disk is directly sellotaped to the report their project code will be allocated a mark of 0.
         7. The report submitted must not exceed the page count excluding the front sheet and index.
         8. Students should print on just one side of the paper.
         9. Staple your report at the top left hand corner.
         10. Do not use plastic folders or envelopes that must be taken apart and reassembled.
         11. Required font type Arial or Times Roman and size 12.
         12. To obtain high marks students must present work that has a high technical content with clear diagrams and a good standard of original English (your own work), that is not taken from standard textbooks, papers or websites.
         13. Students should provide good references and link them with the text and diagrams in the main body of their report. All text that is extracted and added from another source, such as the web, must be identified using bold italics. The total amount of text added that is not original must not exceed 5% of the total.
         14. Penalties will be incurred for the following
    No name on disk
    No name on report
    Disk Sellotaped to report
    Report in a plastic folder
    JB project is incomplete or will not compile.
    Moderated by MSc Moderation Panel May 2006
    Reference: jmf-2006-v4-modified.htm
    A copy of this assignment may be found online at URL
    http://osiris.sunderland.ac.uk/~cs0jti
    Name
    Frontpage 1 side of A4 Index 1 side of A4
    Part 1 Research into JMF 4 sides of A4 Marks 30
    Controller Event
    Standard Controls
    Presenting RTP Media Streams
    Capturing Time Based Media
    Player vs processor
    JMF Plug-ins
    Part 2 SimplePlayerApplet.java 3 sides of A4 Marks 60
    Link for application
    Description of development
    Start and Stop buttons
    Description of testing
    Online test � applet works
    Screenshots
    JB project loads
    JB code runs - 20 marks
    References 1 side of A4 Marks 10
    List of references
    Correct use of refs in main text
    2)

    Plagiarism, paraphrasing and downloading largeamounts of >information from external sources, will
    not be tolerated and will be >dealt with severely.
    You will receive no marks for work that is not yourown. Your work may >be subject to checks for
    originality which can include use of an >electronic
    plagiarism detection service.Hey, the OP didn't read the rest of the assignment so why should they read that part?

  • Sound application help

    here is another example of a sound application that does not work. can any one help me fix it??
    import java.awt.*;
    import java.applet.*;
    import java.net.URL;
    public class AnotherAudioAttempt{
      public static void AlertSound(){
        try{
          java.io.File file = new java.io.File("file:///home/nova812/myJava/audio/siren.au");
          AudioClip welldoneclip = Applet.newAudioClip(file.toURL());
          welldoneclip.play();
        catch (Exception e){}
      public static void main(String[] argz){
        AlertSound();
    }//end classRon_W

    I did try System.in.read() but it didn't work either. However, going the the archives here I found a version of the following code. finally some code that works. I modified it so that it would play a sound when the app starts. Althoug the code works, pushing the play sound button to fast will cause the app to not play a sound for a long time. some tweeking is needed.
    import java.awt.event.*;
    import java.awt.*;
    import java.applet.*;
    import java.net.*;
    import java.io.*;
    public class PlaySound {
      public static void main(String args[]) {
      new PlaySoundFrame();
    class PlaySoundFrame extends Frame implements ActionListener {
      Button playSound = new Button("Play Sound");
      PlaySoundFrame() {
        super();
        /* Add the window listener */
        addWindowListener(new WindowAdapter() {
        public void windowClosing(WindowEvent evt) {
          dispose(); System.exit(0);}});
        playSound.addActionListener(this);
        add(BorderLayout.NORTH,playSound);
        /* Size the frame */
        setSize(200,200);
        /* Center the frame */
        Dimension screenDim = Toolkit.getDefaultToolkit().getScreenSize
        Rectangle frameDim = getBounds();
        setLocation((screenDim.width - frameDim.width) / 2,
        (screenDim.height - frameDim.height) / 2);
        /* Show the frame */
        setVisible(true);
        playSnd();
    public void playSnd(){
       AudioClip ac = null;
          try{
            ac = Applet.newAudioClip(new URL("file:///home/nova812/myJava/audio/siren.au"));
          catch(MalformedURLException mfe){
          System.out.println("BadURL!");
          if(ac != null)
            ac.play();
          else
            System.out.println("no sound!!");
      public void actionPerformed(ActionEvent evt){
        if (evt.getSource() == playSound){
          playSnd();
    }Ron_W

Maybe you are looking for

  • Add a new folder to bookmarks?

    In Safari the prompt add a new folder comes up, but in Firefox I cannot find that prompt anywhere. When bookmarks is open, the View/Sidebar is not available.

  • JFrame restoration problem.

    Hello everyone!! My problem is: I have a jframe inside of that there's a jpanel. the jpanel mouse listener calls a method in a different class that uses the graphic reference of the jpanel to draw. once I minimize and maximize the jframe the drawing

  • [SOLVED] Conky lua problem (transparency)

    Hi, I'm trying to transfer my conky from Ubuntu to Arch: below is a screenshot of the Ubuntu version (what it should look like).  On Arch I have a solid black background.   If it's relevant, I'm running Archbang rather than pure Arch, so with Openbox

  • Standby server in oracle9i standard edition under linix

    Hi, I want to know more abt the standby server option on oracle 9i standard edition, whether is it possible or not, if yes give me step by step doc and useful scripts for automating the system. thanx in advance.

  • Retrieving triggers messages

    Hi! I came across this problem the other day. I have created triggers in my SQL. The triggers are stating appropriate message for any worng data entry. But I cannot catch this message from front end either by servlet or swing. Can any of you please h