wav

Monogame: WAV not playing

时光毁灭记忆、已成空白 提交于 2020-01-03 19:14:31
问题 This is MonoGame 3.4 and I'm using it through VS2013. I'm compiling my WAV file using mgcb the same way as my textures. MGCB works fine, but when it comes to playing a sound using SoundEffect class, it doesn't play anything. There is no exception and SoundEffect.Play() function returns true , but I can't hear anything. Here's my code: Loading: JumpSound = content.Load<SoundEffect>("SpinJump"); Playing: var Ins = JumpSound.CreateInstance(); Ins.Volume = 1f; Ins.Play(); The very same code plays

Read and write stereo .wav file with python + metadatas

橙三吉。 提交于 2020-01-03 02:22:13
问题 What's the easiest way to read and write a stereo .wav file in Python ? Should I use scipy.io.wavfile.read ? Should I use a 2-dimension array (how ?) in order to have x[n,j] where j is the channel number? I also want to read/write metadatas stored in the wav file like the markers , MIDI root note (Soundforge, as well as other sound editors, can read/write this specific .wav metadata called "MIDI root note") Thank you PS : I already know how to do with a mono file : from scipy.io.wavfile

Trouble converting an MP3 file to a WAV file using Naudio

↘锁芯ラ 提交于 2020-01-02 12:40:32
问题 Naudio Library: http://naudio.codeplex.com/ I'm trying to convert an MP3 file to a WAV file, but I've run in to a small error. I know what's going wrong, but I don't really know how to go about fixing it. Here's the piece of code I'm running: private void button1_Click(object sender, EventArgs e) { using(Mp3FileReader reader = new Mp3FileReader(@"path\to\MP3")) { using(WaveFileWriter writer = new WaveFileWriter(@"C:\test.wav", new WaveFormat())) { int counter = 0; while(reader.Read(test,

What trick will give most reliable/compatible sound alarm in a browser window for most browsers

不羁的心 提交于 2020-01-02 10:17:50
问题 I want to be able to play an alarm sound using Javascript in a browser window, preferably with the requirement for any browser plugins (Quicktime/Flash). I have been experimenting with the tag and the new Audio object in Javascript, but results are mixed: As you can see, there is no variant that works on all browsers. Do I miss a trick that is more cross-browser compatible? This is my code: // mp3 with Audio object var snd = new Audio("/sounds/beep.mp3");snd.play(); // wav with Audio object

What trick will give most reliable/compatible sound alarm in a browser window for most browsers

安稳与你 提交于 2020-01-02 10:17:07
问题 I want to be able to play an alarm sound using Javascript in a browser window, preferably with the requirement for any browser plugins (Quicktime/Flash). I have been experimenting with the tag and the new Audio object in Javascript, but results are mixed: As you can see, there is no variant that works on all browsers. Do I miss a trick that is more cross-browser compatible? This is my code: // mp3 with Audio object var snd = new Audio("/sounds/beep.mp3");snd.play(); // wav with Audio object

Read .wav file using delphi

梦想的初衷 提交于 2020-01-01 07:12:31
问题 I now currently try to read .wav file using delphi here is my code : type TWaveHeader = packed record Marker_RIFF: array [0..3] of char; ChunkSize: cardinal; Marker_WAVE: array [0..3] of char; Marker_fmt: array [0..3] of char; SubChunkSize: cardinal; FormatTag: word; NumChannels: word; SampleRate: longint; BytesPerSecond: longint; BytesPerSample: word; BitsPerSample: word; Marker_data: array [0..3] of char; DataBytes: longint; end; TChannel = record Data : array of double; end; some private

Play PCM with javascript

不问归期 提交于 2020-01-01 07:03:30
问题 I got some problems playing PCM Audio on the browser. The PCM audio comes from an android device with udp-protocol and is saved on the server as *.raw I unsuccessfully trying to play this saved file with the help of webaudioapi. Using following code, plays me some creepy sound with white noise: var audioCtx = new (window.AudioContext || window.webkitAudioContext)(); audioCtx.sampleRate = 16000; // Stereo var channels = 1; // Create an empty two second stereo buffer at the // sample rate of

Decoding a WAV File Header

大憨熊 提交于 2020-01-01 06:17:10
问题 I'm trying to understand the header of a WAV file. I've opened an example file and got this: 5249 4646 e857 1400 5741 5645 666d 7420 1000 0000 0100 0200 44ac 0000 10b1 0200 0400 1000 I've been reading this data representation tutorial. I understand that 52 is one byte and represents the ASCII letter R . I understand up to the 1000 0000 . Why does that represent decimal 16? The tutorial says that the value at that position is always 0x10 . How does 1000 0000 equate to 0x10 . Also, when reading

Reverse audio file in Android

倾然丶 夕夏残阳落幕 提交于 2020-01-01 03:26:12
问题 I am in the very ealy stages of developing this app but looking into it I have already reached a problem. I need to be able to play an audio file backwards (you know like to reveal hidden messages ;)). I have no experience working with audio on android and have no idea if this is even possible. I found a question on here which solves the problem in java (Click Here For Question) But this makes use of the javax.sound library which android does not support. Will I need this library to solve

Play WAV files one after the other in Java

大城市里の小女人 提交于 2019-12-30 14:51:49
问题 I'm trying to play a few WAV files after each other. I tried this method: for (String file : audioFiles) { new AePlayWave(file).start(); } But that plays them all at the same time. So I need a function that looks like this: public void play(Vector<String> audioFiles); The vector contains the files, for example: "test1.wav" , "test2.wav" I have been looking for over four hours, but I can't seem to find a working solution :( I also tried concatenating the WAV files to one AudioInputStream. It