精华内容
下载资源
问答
  • Sound

    2020-12-09 12:55:29
    <div><p>Actulal version from git has sound problems again, I have also old sdr-j .9985 and sound is ok.</p><p>该提问来源于开源项目:JvanKatwijk/qt-dab</p></div>
  • sound

    2012-10-19 22:25:00
    sound类在 flash3.0中算是很常见的功能,也是很常用的,下面 简单的运用了 sound类,加载了一首歌,控制 播放 暂停 停止,和控制音量大小; package { import flash.display.MovieClip; import fl....

          sound类在 flash3.0中算是很常见的功能,也是很常用的,下面 简单的运用了 sound类,加载了一首歌,控制 播放 暂停 停止,和控制音量大小;

    package  {
    	
    	import flash.display.MovieClip;
    	import fl.controls.*;
    	import flash.media.Sound;
    	import flash.net.URLRequest;
    	import flash.media.SoundChannel;
    	import flash.events.MouseEvent;
    	import flash.media.SoundTransform;
    	import fl.events.SliderEvent;
    	
    	
    	public class SoundMain extends MovieClip {
    		//定义三个按钮,分别是:播放、暂时、停止
    		private var play_btn:Button=new Button();
    		private var suspend_btn:Button=new Button();
    		private var stop_btn:Button=new Button();
    		//定义一个slider组件,控制声音的大小;
    		private var controlVolume:Slider=new Slider();
    		//定义sound的三个类,分别是;声音,声音控制,声音音量
    		private var sound:Sound=new Sound();
    		private var soundchannel:SoundChannel=new SoundChannel();
    		private var soundtransform:SoundTransform=new SoundTransform();
    		//定义一个数;初始化声音播放的位置为0
    		private var position:Number=0;
    		
    		public function SoundMain(){
    			//加载声音
    			sound.load(new URLRequest('00.mp3'));
    			//对三个按钮的 设置
    			play_btn.label='播放';
    			play_btn.x=10;
    			play_btn.y=260;
    			play_btn.width=40;
    			addChild(play_btn);
    			suspend_btn.label='暂停';
    			suspend_btn.x=50;
    			suspend_btn.y=260;
    			suspend_btn.width=40;
    			addChild(suspend_btn);
    			stop_btn.label='停止';
    			stop_btn.x=90;
    			stop_btn.y=260;
    			stop_btn.width=40;
    			addChild(stop_btn);
    			//对slider的设置
    			controlVolume.x=140;
    			controlVolume.y=270;
    			addChild(controlVolume);
    			//给三个按钮 加上单击事件
    			play_btn.addEventListener(MouseEvent.CLICK,onPlayHandler);
    			suspend_btn.addEventListener(MouseEvent.CLICK,onSuspendHandler);
    			stop_btn.addEventListener(MouseEvent.CLICK,onStopHandler);
    			//初始化声音的大小
    			controlVolume.value = 5;
                            soundtransform.volume = controlVolume.value *0.1;
                            soundchannel.soundTransform = soundtransform;
    			//给slider加事件
    			controlVolume.addEventListener(SliderEvent.CHANGE,onControlVolume);
    
    	    }
    		private function onPlayHandler(e:MouseEvent):void{
    			soundchannel=sound.play(position);
    			
    		}
    		private function onSuspendHandler(e:MouseEvent):void{
    			position=soundchannel.position;
    			soundchannel.stop();
    			
    		}
    		private function onStopHandler(e:MouseEvent):void{
    			position=0;
    			soundchannel.stop();
    			
    		}
    		private function onControlVolume(e:SliderEvent):void{
    			soundtransform.volume = (e.target.value)*0.1;
    	                soundchannel.soundTransform = soundtransform;
    			
    		}
    	}
    	
    }
    

      

      

    转载于:https://www.cnblogs.com/wenwubin/archive/2012/10/19/2731711.html

    展开全文
  • Heart sound cancellation from lung sound record using cyclostationarity
  • Sound preview makes no sound

    2020-12-01 19:45:46
    <div><p>I am trying to preview sounds and am clicking on the sound icon for particular block, but no sound can be heard. <p>Windows 7 x64.</p><p>该提问来源于开源项目:ben-wallis/Filtration</p></...
  • Notification Sound

    2020-12-08 21:36:04
    <div><p>When i trying to set custom notification sound it doesnt work. But if you set checkbox "Switch to another sound system" it use default sound and works fine for every notification. Step...
  • Sound fixes

    2020-12-30 08:45:45
    <div><p>This PR addresses several issues with the new sound system that uses system() to fork an external sound player. <p>1) Fixed memory leak every time plugin played a sound. 2) Plugin sound play ...
  • direct sound

    2019-04-15 15:02:40
    DirectSound是DirectXAudio的一个较底层的部件,提供了丰富的接口函数,实现.wav格式的波形声音数据的播放控制
  • Sound issues

    2020-12-26 01:01:06
    <div><p>In the 0.4 version of Rigs of Rods, only one sound can play at a time. For example, when I put the parking brake on, the engine sounds temporarily turn off, then when the parking brake sound ...
  • Sound hint

    2020-12-02 10:09:52
    <div><p>Any chance for implementing sound hint ? <p>For example <code>notify-send "Sound test" --hint=string:sound-file:/path/to/sound.wav</code></p> <p>this works in most notification ...
  • sound issue

    2021-01-02 21:25:12
    Now emesene2 plays sound no matter if it is a first message, inactive conversation window, or even active conversation window( say even when the conversation window has focus, it still plays a sound)...
  • Sound problems

    2021-01-12 09:25:59
    <div><p>Strange sound problems with Chrome browser. There is no sound if you open the ROM page directly. But if you go to the ROM page from another page, the sound appears.</p><p>该提问来源于开源项目&...
  • Sound Settings

    2021-01-04 02:30:54
    After upgrading, everything is working except for sound. The instructions for configuring sound were obviously simplified. I'm guessing that the issue is that my sound is still set for the custom...
  • Sound issue

    2020-12-02 15:37:14
    <div><p>After a couple of playing I saw that coin collecting sound didn't worked, and shooting sound was intermittent. After some more time even the shooting sound disappeared.</p><p>该提问来源于...
  • no sound from usb sound card

    2020-12-26 02:55:46
    <p>I just installed version 2.0 via the one line install script and everything seems to work except the sound from the usb sound card. <p>I already tried: I installed version 2.0 and everything seems ...
  • sound themes

    2020-11-25 05:29:15
    <div><p>This PR introduces the concept of sound themes. Sound themes works for sound files the same way themes works for images. Two themes are included: Default (current theme) and Legacy (cuckoo!)....
  • Sound choice

    2020-12-07 04:49:01
    <p>Anyone wants to add the possibility to choose the sound of the alarm? (A menu or preference would be enough). Someone (Ralph, not sure if you want your full name here) sent me sounds he created and...
  • <div><p>No sound when enable sound effect in 10.5.1 Macbook Pro 2018 </p><p>该提问来源于开源项目:niw/HapticKey</p></div>
  • Sound music

    2020-12-31 12:27:28
    m not sure where the most appropriate place(s) to put the global sound multiplier is. (do we want to scale <em>all</em> sound effects?</p><p>该提问来源于开源项目:Interkarma/daggerfall-unity</p>...
  • No sound

    2021-01-09 20:07:21
    <div><p>No sound effect while enable sound from setting.</p><p>该提问来源于开源项目:yuliskov/SmartYouTubeTV</p></div>
  • Sound Issues

    2020-12-28 07:10:00
    <div><p>There is a loud sound in E2S that happens with Hell Wind & Hell Wind in Waiting that knocks out the sound in-game and on discord. It is happening every single time I get in there. I have ...
  • Play Sound

    2021-01-09 08:47:50
    <div><p>support playing sound? How to Play Sound?</p><p>该提问来源于开源项目:asticode/go-astilectron</p></div>
  • Sound redirect

    2020-12-02 02:45:10
    <div><p>Sound is not being redirected with any desktop on Ubuntu 18.04, 18.10, 19.04, or 16.04 with pulseaudio. Only gnome desktop shows anything, but still produces no sound. Most setups work in the ...
  • JUST LOOKING FOR THE (SIGNED) SOUNDFLOWER INSTALLER? https://github.com/mattingalls/Soundflower/releases/tag/2.0b2 is the latest version THE MOST RELIABLE WAY TO UNINSTALL From the Finder, HIT Shift-...
  • SDL_sound:SDL_sound-从http镜像
  • directsound

    2016-02-26 16:50:52
    windows平台上使用的directsound音频开发指导文档,比较详细~
  • <div><p>If you reregister a sound after it has successfully played before any subsequent attempts to play the sound fail (this is because isPreloadComplete forever returns false). <p>This is ...
  • sound is to loud in comparison to the other sounds. Meanwhile I have to lower the volume to fit the loudest sound and then I can't hear the other sounds anymore. When I raise the volume to be ...
  • <div><p>After update game, user sound (game_dir/sound), not been extracted from previous_version/sound.</p><p>该提问来源于开源项目:remyroy/CDDA-Game-Launcher</p></div>

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 35,489
精华内容 14,195
关键字:

sound