83 Royalty-Free Audio Tracks for "Encoding"

00:00
03:01
In a field in new mexico, the wind is blowing. Sound recorded by a ms setup schoeps ccm41+ccm8sound devices 788t recorder with cl8ms is encoded in stereo left-rightrecorded in may 2013 in new mexico (close to folsom), usa. Original recording in wave, 96khz, 24bitsound reference: @cd130526t008. More sounds on www. Felixblume. Com. Please rate or comment the sound if you like it!.
Author: Felix
00:00
03:22
Some birds and insects in the countryside in texas (recorded close to pampa, texas). Sound recorded by a ms setup schoeps ccm41+ccm8sound devices 788t recorder with cl8ms is encoded in stereo left-rightrecorded in may 2013 in texas, usa. Original recording in wave, 96khz, 24bitsound reference: @cd130530t014. More sounds on www. Felixblume. Com. Please rate or comment the sound if you like it!.
Author: Felix
00:00
02:01
A bird is flying around, at night in the forest. Cricket are singing in background. (venezuela, gran sabana). Sound recorded by a ms setup sennheiser microphone mkh50+mkh30sound devices 302 mixer + sound devices 744t recorderms is encoded in stereo left-rightrecorded in 2011. More sounds on http://www. Felixblume. Com. Please rate the sound or comment it if you like it !.
Author: Felix
00:00
02:01
Switzerland, graubunden - at the surface of the lake, ice is melting and crisping…. Sound recorded by a ms setup schoeps microphone ccm41&ccm8;sound devices 552 mixer + sound devices 744t recordermicrophone are into a zephyx windscreen really close to the ice in this casems is encoded in stereo left-rightrecorded in 2011. More sounds on http://www. Felixblume. Com. Please rate the sound or comment it if you like it !.
Author: Felix
00:00
02:01
Mali, diafarabé - muezzin are calling for the morning prayer in the small village. . . Dogs are the first to answer!. Sound recorded by a ms setup sennheiser microphone mkh50@mkh30sound devices 302 mixer + minidisc recorderms is encoded in stereo left-rightrecorded in 2005. More sounds on http://www. Felixblume. Com. The same sound on soundcloud:http://soundcloud. Com/felixblume/appel-priere. Please rate the sound or comment it if you like it !. .
Author: Felix
00:00
01:07
Recorded at 24/96 from sound professionals ms-tfb-2 binaural microphone headset with 12vdc battery box connected to aux-in on sound devices mixpre-6. Postprocessed to normalized 16/44. 1 stereo pcm with cooledit 2000, flac-encoded. An electric light rail train approaches i-25 & broadway station while ringing its bell in rhythm. It stops. Doors open, an announcement plays, doors close, and the train departs.
Author: Chromakei
00:00
02:01
Mexico, puebla. Roosters and dogs wake up in the small village of la preciosita. A morning in mexican countryside. Sound recorded by a ms setup schoeps microphone cmc6mk41+cmc6mk8cooper mixer + zoom h4n recorderms is encoded in stereo left-rightrecorded en 2009. More sounds on http://www. Felixblume. Com. Please rate the sound or comment it if you like it !.
Author: Felix
00:00
02:01
Morroco tangier - muezzin call at night in the center of the city. People and cars are moving around. Recorded from the top of a house. Sound recorded by a ms setup schoeps microphone cmc6mk41+cmc6mk8sound devices 442 mixer + zoom h4n recorderms is encoded in stereo left-rightrecorded en 2009. More sounds on http://www. Felixblume. Com. Please rate the sound or comment it if you like it !.
Author: Felix
00:00
02:01
Usa california - dogs barking and birds singing in the red wood forest, close to san francisco. Road in the far background. Sound recorded by a ms setup sennheiser mkh50+mkh50sound devices 302 mixer + tascam recorderms is encoded in stereo left-rightrecorded in 2008. More sounds on http://www. Felixblume. Com. Please rate the sound or comment it if you like it !.
Author: Felix
00:00
00:38
Close recording of a cricket in the californian desert (in the mojave desert, close to joshua tree park). Sound recorded by a ms setup schoeps ccm41+ccm8sound devices 788t recorder with cl8ms is encoded in stereo left-rightrecorded in september 2012. The same sound slowned down:http://www. Freesound. Org/people/felix. Blume/sounds/166342/#. More sounds on http://www. Felixblume. Com. Please rate the sound or comment it if you like it !.
Author: Felix
00:00
02:01
France, minervois - a summer thunderstorm, rain and thunder in the countryside(minervois, south of france, my homeland). Sound recorded by a ms setup schoeps microphone ccm41&ccm8;sound devices 552 mixer + sound devices 744t recorderms is encoded in stereo left-rightrecorded in 2011. The same sound on soundcloud: http://soundcloud. Com/felixblume/minervois-orage. More sounds on http://www. Felixblume. Com. Please rate the sound or comment it if you like it !.
Author: Felix
00:00
02:01
Usa, arizona - a windmill is squeaking alone in the desert. Sound recorded by a ms setup schoeps microphone cmc6mk41+cmc6mk8cooper mixer + zoom h4n recorderms is encoded in stereo left-rightrecorded en 2009. This sound has been used on:http://mildadventures. Weebly. Com/bushmanland-circuit. Html. More sounds on http://www. Felixblume. Com. The same sound on sound cloud:http://soundcloud. Com/felixblume/usa-desert. Please rate the sound or comment it if you like it !.
Author: Felix
00:00
25:00
I wanted to make a very gentle wakeup alarm for my android phone. It's a 25-minute long fade in of a pure 3-khz tone. Created with audacity. I encoded this to ogg vorbis for personal use, but i'm sure you can do this better for yourself (maybe you'll prefer other format), so here you have a quality flac file for source.
Author: Unfa
00:00
00:49
Some people praying into the "abbaye de la cambre" in brussels, belgium. They are praying "je vous salut marie" (in french). Sound recorded by a ms setup schoepsmicrophone ccm41+ccm8sound devices 302 mixerms is encoded in stereo left-rightrecorded in brussels in 2008. More sounds on http://www. Felixblume. Com. The same sound on soundcloud onhttp://soundcloud. Com/felixblume/priere. Please rate the sound or comment it if you like it !.
Author: Felix
00:00
00:04
A sound i initially made for scp containment breach's ambiance sounds when i had first had the zoom h6 (2019 december, i regularly sound mod old games to gain learning experience of the encoding, the resampling quality of that engine and the internals and since then i've improved in many places). The actual recording is the pressure sound of water going down its sinkhole, filtered as to "muffle" the sound due to the design being that behind a wall and catching the attention of the player likely leading to their death by scp-173 but also was done to boost its bass and it gives a sort of comfortable, releasing feel.
Author: Magnuswaker
00:00
03:01
A pair of owls stationed themselves outside my half-basement bedroom window in colorado early this morning around 12am. Unfortunately i only had my phone to capture them with, but it still turned out alright, save for the periodic vox-like breaks when silencing background noise. The hoot is obvious as to the source, but i'm unsure about the screech/cry that occurs with equal frequency. Is it the response of a mate? or just the yip of a curious neighbor dog?. Recorded with the stock application on my lg g3 phone and encoded to mp3 using the "video to mp3" app.
Author: Depwl
00:00
01:31
A dog groaning, moaning, sniffing, panting and grunting. Close recording of a french bulldog in a house in mexico city. Sound recorded by a ms setup schoeps microphone cmc6mk41+cmc6mk8sound devices 552 mixer & recorderms is encoded in stereo left-rightrecorded en june 2011 / sound reference: 11y06m20-001. More sounds on http://www. Felixblume. Com. The same sound on sound cloud:http://soundcloud. Com/felixblume/bulldog. Please rate the sound or comment it if you like it !.
Author: Felix
00:00
04:01
New years eve in peru: fireworks, fire-crackers and rockets to celebrate the new year (pisco, peru, 2012). Sound recorded by a ms setup schoepsmicrophone ccm41+ccm8sound devices 744t recorderms is encoded in stereo left-rightrecorded in 2012. You can find the 2011 new year eve in venezuela on: http://www. Freesound. Org/people/felix. Blume/sounds/131921. More sounds on http://www. Felixblume. Com. Please rate or comment the sound if you like it!.
Author: Felix
00:00
00:44
Test guitar solo. Bright noise as artifact of notebook mic input agc (automatic gain control) made in the imposition of a previously recorded. Recorded: 20-10-2013notebook: aspire-5742g, windows 7, asio4all driver, sonar x2, noise gate and vox plug-ins. Guitar: squier stratocaster, south korea, early 1990, with pickup saymour duncan at bridge position. Very very old strings. Guitar connected directly to notebook mic input. Exported to wav 44000/16. Encoded into mp3 with linux console: lame -b 320 -m s soloprev3. Wavlame version: lame 64bits version 3. 99. 5 (http://lame. Sf. Net).
Author: Zabuhailo
00:00
04:19
I tried out some new gear and methods! more mountainside rain! a complete storm from beginning to end with swelling and then waning rainfall, occasional thunder. Ms stereo bar on mic stand projected through open second-floor window, just under the roof eaves. Recorded july 20th during one of the mid-afternoon brief intense storms we can seem to get frequently in the rocky mountain foothills beginning around june. If you were listening and wondering, the direct sound of the thunder is somewhat occluded as i believe the storm was behind the overhanging roof and house from the perspective of the microphone array. The mountainous terrain and other objects in the field reflected some of that thunderclap, as well as the exterior wall of the home, and so this is all a little bit funky. Mid-side stereo recording:large diaphragm condensers mounted on octavia stereo mic mounting bar:akg perception 220 mid (cardiod) (on top, upside-down)akg perception 400 side (in bidirectional mode) (on bottom, facing left)sound devices mixpre-6 preamp+mixer+recorder (ch1+2 paired to ms stereo, gain @ +21db, fader @ unity, balance at mid/side center) w/48vdc phantom power applied, on-board mid-side encoding and monitoring in l+r, 24/96khz stereo recording. Postprocessing:cooledit 2000: edited to excerpt from longer recording. Normalized recording to 0db. Downsampled to 16bit 48khz. Flac: encoded.
Author: Chromakei
00:00
10:01
On the mountain chacaltaya, thunderstorm begin : lightning, thunderclap, snow and hail. . . Sound recorded by a ms setup schoeps ccm41+ccm8 with a cinela zephyx rain protectionsound devices 788t recorder with cl8ms is encoded in stereo left-rightrecorded in february 2014 in chacaltaya mountain, above la paz, bolivia. Sound reference: @sam140207016same sound on souncloud http://soundcloud. Com/felixblume/chacaltaya. More sounds on http://www. Felixblume. Com/. Please rate or comment the sound if you like it!.
Author: Felix
00:00
03:01
Prayer calls for the evening prayer "maghrib", around 20h45. Recorded in the city of istanbul (turkey), close to the pera street. Sound recorded by a ms setup schoeps microphone ccm41+ccm8sound devices 552 mixer + sound devices 744t recorderms is encoded in stereo left-rightrecorded in june 2012sound reference: @vea120617t42. The same sound is available on soundcloud:http://soundcloud. Com/felixblume/istanbul-appel-priere. More sounds on http://www. Felixblume. Com. Please rate the sound or comment it if you like it !.
Author: Felix
00:00
04:53
This recording, encoded in vbr format, is one hour and 44 minutes long. Like the other recordings in this sound pack, the mother cat and her kittens are inside a nesting box in the garage. A small stereo microphone (olympus me51s) was placed inside the brooding area. After editing, they were exported to mp3 format. Sounds include mewing, purring, shuffling, and nursing. Some occasional heartbeats may be heard as the mother cat or kittens move inside. Other sounds include a rooster crowing, and people working outside, and some occasional people talking in the background. At this stage, the kittens are in week 3 of their life.
Author: Theharmonicrainbow
00:00
01:09
A 286 computer booting and running a self-test before reaching the os, then getting shut down through the button at the middle of the right corner of the case, including part of the monitor shutting down. The picked license is creative commons 0, but it'd be great if you could mention me in your work, if you ever use it for it, i'd like to take a look at what you've done. Recorder: moto g4 play (harpia), laying flat and facing down on the case. Microphone: built-in microphone. Encoding: wave (lossless, 32-bit float pcm). Processing: no dsp applied, removed a full piece of sound at the beginning and a full piece of sound at the end, including environmental noises that weren't related with this recording.
Author: Facuarmo
00:00
00:03
Quiquiriquí - mexico, wirikuta desert (spanish). Sound engineer: félix blumemicrophone used: ms setup schoeps ccm41+ccm8recorder: sound devices 744trecorded in july 2012 in wuadley (san luis potosi, mexico)ms is encoded in stereo left-right. The rooster’s singing has so many names around the world. Cocorico in france, cock-a-doodle-doo in english, kikeriki in germany, quiquiriqui in spanish. . . Does the rooster really sing differently according to his nationality?cocorico sound is a collaborative project putting together on a map rooster sounds from all over the world, using the freesound platform. Http://www. Felixblume. Com/cocorico-sound-project/.
Author: Cocoricosound
00:00
02:01
Wind is blowing and howling in the salt desert of atacama (chili). Sound recorded by a ms setup schoeps microphone ccm41&ccm8;sound devices 744t recorderms is encoded in stereo left-rightrecorded in 2012 during the shooting of "camanchaca // notes pour un film à venir" directed by clio simon (http://www. Wix. Com/cliosimo8/cliosimon - cliosimon@gmail. Com)photography : sergio nahuel. More sounds on http://www. Felixblume. Comthe same sound on soundcloud with a french description on http://soundcloud. Com/felixblume/desert-atacama. Please rate the sound or comment it if you like it !.
Author: Felix
00:00
07:38
At the end of the day, the buffalos came to eat some food the worker of the park gave to them with his truck. The bisons came really close to us. Sound recorded by a ms setup schoeps ccm41+ccm8sound devices 788t recorder with cl8ms is encoded in stereo left-rightsound file in 96khzrecorded in may 2013 in the tallgrass prairie reserve close to pawhuska, oklahoma (usa). Sound reference: @cd130510t012. The same sound on sound cloud https://soundcloud. Com/felixblume/buffalos. More sounds on www. Felixblume. Com. Please rate or comment the sound if you like it!.
Author: Felix
00:00
01:31
Usa, california - a diesel goods train is passing by in the ghost town of bagdad in the mojave desert. Close recording of the train (a couple of meters). Train horn is announcing he is coming. Sound recorded by a ms setup schoeps microphone ccm41+ccm8sound devices 552 mixer + sound devices 744t recorderms is encoded in stereo left-rightrecorded in nov 2011. The same sound on sound cloud:http://soundcloud. Com/felixblume/train. The same sound slowed downhttp://www. Freesound. Org/people/felix. Blume/sounds/189153. Another sound of train in the desert on freesound:http://www. Freesound. Org/people/felix. Blume/sounds/166086/. More sounds on http://www. Felixblume. Com. Please rate the sound or comment it if you like it !.
Author: Felix
00:00
03:57
Upper maxwell falls, evergreen, co, at the top of the falls. Recorded a little before dusk, 2017-07-19. Recorded binaurally using sound professionals ms-tfb-2 binaural microphone headset, 12vdc battery box, sound devices mixpre-6 at 24/192. Postprocessing: digital gain, downsampled to 16/48. Flac: encoded. The rock formations here play appealing tricks with the sound of the running and falling stream. Facing out over falls dropoff, vaguely. A lot of digital gain (+30db?) was applied in postprocessing. The analog preamp was originally set to +21db on the aux-in (ch5/6) input, but this may not have been the optimal gain staging. See also schoeps ms stereo version recorded one month later, here: http://freesound. Org/people/chromakei/sounds/400404/.
Author: Chromakei
00:00
16:54
Several years back my older brother stumbled upon a bunch of old family reel to reel films and sat down one evening to project them on a wall and digitize them. This is the sound of that process. What you can hear, i imagine, is the noise of the projector in the left channel and the sound of the reels in the right channel. I've been obsessed with the sounds of the infinite variation in old analog hardware. As a sound designer, that infinite variation is often sought after but rarely, or accurately, reproduced through digital files in various libraries. Of if they are, they're often too short to cover whatever scene i am trying to fill. On the surface it's just noise but if you listen closer it's this wonderful cacophony of overlapping and repeating sounds that are always looping but never quite identical on each rotation. It was ripped from youtube using audio hijack at 48khz/16bit, but due to youtube re-encoding things as youtube does, it's nowhere near the source. It's still, in my opinion, a sound worth sharing. Enjoy!.
Author: Theoddcastdark
00:00
02:55
Br-laser vector synthesis reel for make noise morphagene. These sounds have visuals encoded into them at high frequencies. The vector synthesis reel for the make noise morphagene is a collection of different xy samples, to show off morphagene's stereo sampling capability. The sample material can be displayed on oscilloscopes, modified vectrex game consoles, ilda laser displays or oscilloscope simulation software in xy mode. Some splices on the reel can be used as seamless loops. Here is a video to give a basic idea of the reelhttps://youtu. Be/cxxb9veyq6w. The collection of vectors was arranged by bernhard rasinger and includes vector contributions from artists listed below. An important part of this reel is to put the spotlight on working and performing artists utilizing sound signals to draw images as vector art. Alberto novellohttp://www. Jestern. Com. Andrew duffhttp://andrew-duff. Co. Uk/. Bernhard rasingerhttps://www. Br-laser. Com/. Chris kinghttp://videocircuits. Blogspot. Com/. Derek holzerhttp://macumbista. Net/. Douglas nunnhttps://vectorhackfestival. Com/guests/nunn/. Hansi raberhttp://youtube. Com/hansiraber. Ivan marušić klifhttp://i. M. Klif. Tv. Jerobeam fendersonhttp://oscilloscopemusic. Com. Jonas bershttp://jonasbers. Com. Joost rekveldhttp://www. Joostrekveld. Net. Philip baljeuhttp://instagram. Com/pbaljeuhttps://www. Youtube. Com/channel/ucudrl_q3_cnsj0ta2k7saha. Philipp haffnerhttps://www. Instagram. Com/philipp_haffner/. Robert henkehttp://roberthenke. Com/. Roland lionihttp://www. Akirasrebirth. Com. Ted davishttp://teddavis. Org. Vector hack festivalhttps://vectorhackfestival. Com/. All of these artists, working in the vector synthesis realm are creating these vectors with a different set of tools. These tools include pure data, max4live, oscistudio, axoloti, modular synthesizer, video synthesizer. Https://oscilloscopemusic. Com/oscistudio. Phphttp://write. Flossmanuals. Net/pure-data/introduction2/http://www. Axoloti. Com/https://www. Ableton. Com/de/live/max-for-live/. For introductory oscilloscope and technique tutorials please enjoy jerobeam fenderson´s tutorial series. Https://www. Youtube. Com/playlist?list=plfgouhnvmlro45p9uur18wofljeavcfvv.
Author: Makenoisemusic
00:00
21:21
This is a failed attempt at sampling a rock drumkit on 6 tracks. The channels are as follows:. 0: oh l1: oh r2: kick3: snare4: room l5: room r. I've captured this into ardour 5. 12 using 3 different audio interfaces:. Behringer umc202hd - overheads (dynamic mics)line 6 pod studio ux2 - kick and snare (condenser + dynamic)zoom h2 - room ambience (built-in xy condenser mics). This file is a 6-channel 24-bit flac file encoded using ffmpeg from the raw wav files exported from the original ardour session. There are several issues with this recording however:. 1. The tracks seem to drift, because the individual audio interface clocks were not in sync. The proper way to record multitrack audio is using a single multichannel audio interface - but i didn't have one. 2. There's either x-runs or some usb transfer issues creating small glitches and dropouts in various tracks her and there. Don't know why did this happen, as we've been tracking the real drummer's performance without these issues. Now - fixing these issues manually would be an insane amount of work, but i hope maybe someone has means to either solve them with programming a special tool, or know a tool that could fix these, and make this recorded session ready to be sliced as a drumkit for say - drumgizmo. There's some really good stuff in here - an i was able to cut and mix some really nice drum samples, that i've been using for years, but it's not ready to be fully sliced for maximum flixibility. The instrument was played by myself - it's a drumset by pearl (don't remember the details), owned by the drummer of a band i recorded this with. The band was called small hint - hence the drumkit name. We were recording an ep, and i used some free time left to capture this as well. The ep was never finished and we disbanded soon after. Regarding fixing the issues - here's what i think needs to be done:. 1. I think each hit would have to be automatically phase-aligned on all 6 channels, to correct for the drift. 2. I think it should be possible to automatically detect clicks by simply watching for a sudden change in amplitude between adjacent samples - marking bad areas and then using something like audacity's repair effect to interpolate the waveforms. I think the glitches have much steeper changes in amplitude than even the drum transients, so it should be possible to differentiate between those automatically. If you found a way to fix at least some of these problems - please let me know!. If you've made some "remixes" on freesound - i'd also love to know that. Apart from that - sample what you can out of this and make some sick drum tracks!.
Author: Unfa
00:00
00:01
Start sound of mac ii iix iicx iici se/30. Create by dissessemble rom code and use wave table algorithm write c program write wav file. C program below:. /* mac_ii. C *//* boot beep mac ii *//* 2558/09/06 */. #include. #define knumber_samples 30000#define kdelay_note 300#define kwave_table_value 0x30013f10#define ksample_rate 22257 // hz. Void preparewavetable( unsigned short *wavetable, unsigned int value );void updatewavetable( unsigned short *wavetable, unsigned short chiso );void savesound( char *filename, short *sounddata, unsigned int numberframes, unsigned int samplerate );. Int main () {. // ---- wave tableunsigned short wavetable[256];// ---- sound data, stereoshort sounddata[knumber_samples << 1];// ---- increment array (16/16 bit fix point integer)int arrayincrement[] = {3 << 16, 4 << 16, (3 << 16) + 0x2f2, 6 << 16};// ---- prepare wave tablepreparewavetable( wavetable, kwave_table_value );. // ---- array phase (16/16 bit fix point integer)unsigned int arrayphase[] = {0, 0, 0, 0}; // set all = 0. Unsigned int samplenumber = 0;while( samplenumber < knumber_samples ) {. // ---- calculate sampleunsigned int channelleft = 0;unsigned int channelright = 0;unsigned char notenumber = 0;while ( notenumber < 4 ) {// ---- see if should update phase for note, only do if play noteif( samplenumber >= notenumber*kdelay_note ) {// ---- up date phase beforearrayphase[notenumber] += arrayincrement[notenumber];// ---- not let out of range [0; 255]if( arrayphase[notenumber] > 0xff0000 ) // 0xff0000 == 255 << 16arrayphase[notenumber] -= 0xff0000; // return to begin of wave table}unsigned short mauvat = wavetable[arrayphase[notenumber] >> 16];. // ---- add sound componentsif( notenumber < 2 ) // ---- first 2 notes left channelchannelleft += mauvat;else // ---- last 2 notes right channelchannelright += mauvat;// ---- next notenotenumber++;}// ---- save left and right samplessounddata[samplenumber << 1] = (channelleft << 9) - 0x8000; // use << 1 for 16 bitsounddata[(samplenumber << 1) + 1] = (channelright << 9) - 0x8000; // use << 1 for 16 bitupdatewavetable( wavetable, samplenumber & 0xff );samplenumber++;}// ---- save wav filesavesound( "mac ii. Wav", sounddata, samplenumber << 1, ksample_rate ); // multiply 2 because stereo. Return 1;}. Void preparewavetable( unsigned short *wavetable, unsigned int value ) {. // ---- prepare wave tableunsigned short index = 0;unsigned short wavetablevalue = value & 0xff;while( index < 64 ) {wavetable[index] = wavetablevalue; // << 8; // for 16 bitindex++;}. Wavetablevalue = (value >> 8) & 0xff;while( index < 128 ) {wavetable[index] = wavetablevalue; // << 8; // for 16 bitindex++;}. Wavetablevalue = (value >> 16) & 0xff;while( index < 192 ) {wavetable[index] = wavetablevalue; // << 8; // for 16 bitindex++;}wavetablevalue = (value >> 24) & 0xff;while( index < 256 ) {wavetable[index] = wavetablevalue; // << 8; // for 16 bitindex++;}}. Void updatewavetable( unsigned short *wavetable, unsigned short index ) {// ---- get value from wave tableunsigned short value = wavetable[index];// ---- calculate new value for wave tableif( index == 255 ) { // careful at last element of wave tablevalue += wavetable[0];value = (value >> 1);wavetable[0] = value;}else {value += wavetable[index+1];value = (value >> 1);wavetable[index+1] = value;}. }. #pragma mark ---- save wavvoid saveheader( file *filename, unsigned int samplerate );void savesounddatainteger16bit( file *filename, short *sounddata, unsigned int numbersamples );. Void savesound( char *filename, short *sounddata, unsigned int numberframes, unsigned int samplerate ) {// ---- open filefile *file = fopen( filename, "wb" );if( file ) {// ---- "riff"fprintf( file, "riff" );// ---- length sound file - 8unsigned int lengthsoundfile = 32;lengthsoundfile += numberframes << 1; // một không có một mẫu vạt cho kênh trái và phải// ---- save file lengthfputc( (lengthsoundfile) & 0xff, file );fputc( (lengthsoundfile >> 8) & 0xff, file );fputc( (lengthsoundfile >> 16) & 0xff, file );fputc( (lengthsoundfile >> 24) & 0xff, file );// ---- "wave"fprintf( file, "wave" );// ---- save headersaveheader( file, samplerate );// ---- save sound datasavesounddatainteger16bit( file, sounddata, numberframes );// ---- close filefclose( file );}else {printf( "problem save file %s\n", filename );}}. Void saveheader( file *file, unsigned int samplerate ) {// ---- name for header "fmt "fprintf( file, "fmt " );// ---- header lengthfputc( 0x10, file ); // length 16 bytefputc( 0x00, file );fputc( 0x00, file );fputc( 0x00, file );// ---- method for encode, 16 bit pcmfputc( 0x01 & 0xff, file );fputc( (0x00 >> 8) & 0xff, file );// ---- number channels (stereo)fputc( 0x02, file );fputc( 0x00, file );// ---- sample rate (hz)fputc( samplerate & 0xff, file );fputc( (samplerate >> 8) & 0xff, file );fputc( (samplerate >> 16) & 0xff, file );fputc( (samplerate >> 24) & 0xff, file );// ---- number bytes/secondunsigned int numberbytessecond = samplerate << 2; // multiply 4 because short (2 byte) * 2 channelfputc( numberbytessecond & 0xff, file );fputc( (numberbytessecond >> 8) & 0xff, file );fputc( (numberbytessecond >> 16) & 0xff, file );fputc( (numberbytessecond >> 24) & 0xff, file );// ---- byte cho một khung (nên = số lượng mẫu vật * số lượng kênh)// ---- number bytes for sampleunsigned short bytesoneframe = 4; // short (2 byte) * 2 channelunsigned char bitsonesample = 16; // shortfputc( bytesoneframe & 0xff, file );fputc( (bytesoneframe >> 8) & 0xff, file );. Fputc( bitsonesample, file );fputc( 0x00, file );}. Void savesounddatainteger16bit( file *file, short *sounddata, unsigned int numbersamples ) {fprintf( file, "data" );unsigned int datalength = numbersamples << 1; // each sample 2 bytefputc( datalength & 0xff, file );fputc( (datalength >> 8) & 0xff, file );fputc( (datalength >> 16) & 0xff, file );fputc( (datalength >> 24) & 0xff, file );unsigned int sampleindex = 0;while( sampleindex < numbersamples ) {short shortdata = sounddata[sampleindex];fputc( shortdata & 0xff, file );fputc( (shortdata >> 8) & 0xff, file );sampleindex++;}}.
Author: Sieuamthanh
51 - 83 of 83
/ 2