PageSourceSearch

https://www.benjaminspeed.com/_next/static/chunks/1938.0594bb4271e54ce5.js

js benjaminspeed.com collected 2026-10-08 05:21:27 UTC 3,694 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1938],{1938:(e,t,a)=>{a.r(t),a.d(t,{AIFFParser:()=>k});var s=a(6896),i=a(3220),n=a(2168),r=a(8990),o=a(6454),l=a(7429),h=a(2277);let m={NONE:"not compressed	PCM	Apple Computer",sowt:"PCM (byte swapped)",fl32:"32-bit floating point IEEE 32-bit float",fl64:"64-bit floating point IEEE 64-bit float	Apple Computer",alaw:"ALaw 2:1	8-bit ITU-T G.711 A-law",ulaw:"\xb5Law 2:1	8-bit ITU-T G.711 \xb5-law	Apple Computer",ULAW:"CCITT G.711 u-law 8-bit ITU-T G.711 \xb5-law",ALAW:"CCITT G.711 A-law 8-bit ITU-T G.711 A-law",FL32:"Float 32	IEEE 32-bit float "};class c extends(0,h.fO)("AIFF"){}class p{constructor(e,t){this.isAifc=t;let a=t?22:18;if(e.chunkSize<a)throw new c(`COMMON CHUNK size should always be at least ${a}`);this.len=e.chunkSize}get(e,t){let a=s.UINT16_BE.get(e,t+8)-16398,i=s.UINT16_BE.get(e,t+8+2),n={numChannels:s.UINT16_BE.get(e,t),numSampleFrames:s.UINT32_BE.get(e,t+2),sampleSize:s.UINT16_BE.get(e,t+6),sampleRate:a<0?i>>Math.abs(a):i<<a};if(this.isAifc){if(n.compressionType=o.e.get(e,t+18),this.len>22){let a=s.UINT8.get(e,t+22);if(a>0){let i=(a+1)%2;if(23+a+i===this.len)n.compressionName=new s.StringType(a,"latin1").get(e,t+23);else throw new c("Illegal pstring length")}else n.compressionName=void 0}}else n.compressionName="PCM";return n}}let u={len:8,get:(e,t)=>({chunkID:o.e.get(e,t),chunkSize:Number(BigInt(s.UINT32_BE.get(e,t+4)))})},d=i("music-metadata:parser:aiff");class k extends l.s{constructor(){super(...arguments),this.isCompressed=null}async parse(){if("FORM"!==(await this.tokenizer.readToken(u)).chunkID)throw new c("Invalid Chunk-ID, expected 'FORM'");let e=await this.tokenizer.readToken(o.e);switch(e){case"AIFF":this.metadata.setFormat("container",e),this.isCompressed=!1;break;case"AIFC":this.metadata.setFormat("container","AIFF-C"),this.isCompressed=!0;break;default:throw new c(`Unsupported AIFF type: ${e}`)}this.metadata.setFormat("lossless",!this.isCompressed),this.metadata.setAudioOnly();try{for(;!this.tokenizer.fileInfo.size||this.tokenizer.fileInfo.size-this.tokenizer.position>=u.len;){d(`Reading AIFF chunk at offset=${this.tokenizer.position}`);let e=await this.tokenizer.readToken(u),t=2*Math.round(e.chunkSize/2),a=await this.readData(e);await this.tokenizer.ignore(t-a)}}catch(e){if(e instanceof n.d1)d("End-of-stream");else throw e}}async readData(e){switch(e.chunkID){case"COMM":{if(null===this.isCompressed)throw new c("Failed to parse AIFF.COMM chunk when compression type is unknown");let t=await this.tokenizer.readToken(new p(e,this.isCompressed));return this.metadata.setFormat("bitsPerSample",t.sampleSize),this.metadata.setFormat("sampleRate",t.sampleRate),this.metadata.setFormat("numberOfChannels",t.numChannels),this.metadata.setFormat("numberOfSamples",t.numSampleFrames),this.metadata.setFormat("duration",t.numSampleFrames/t.sampleRate),(t.compressionName||t.compressionType)&&this.metadata.setFormat("codec",t.compressionName??m[t.compressionType]),e.chunkSize}case"ID3 ":{let t=await this.tokenizer.readToken(new s.Uint8ArrayType(e.chunkSize)),a=n.vY(t);return await new r.S().parse(this.metadata,a,this.options),e.chunkSize}case"SSND":return this.metadata.format.duration&&this.metadata.setFormat("bitrate",8*e.chunkSize/this.metadata.format.duration),0;case"NAME":case"AUTH":case"(c) ":case"ANNO":return this.readTextChunk(e);default:return d(`Ignore chunk id=${e.chunkID}, size=${e.chunkSize}`),0}}async readTextChunk(e){let t=(await this.tokenizer.readToken(new s.StringType(e.chunkSize,"ascii"))).split("\0").map(e=>e.trim()).filter(e=>e?.length);return await Promise.all(t.map(t=>this.metadata.addTag("AIFF",e.chunkID,t))),e.chunkSize}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.