Home
last modified time | relevance | path

Searched refs:soundinfo (Results 1 – 4 of 4) sorted by relevance

/RvlSDK-3.2/build/tools/sndconv/src/
Dsound.c28 typedef int (*FUNCTION1)(char *path, SOUNDINFO *soundinfo);
29 typedef int (*FUNCTION2)(char *path, SOUNDINFO *soundinfo, void *dest);
45 SOUNDINFO soundinfo; variable
151 if (soundinfo.bufferLength == 0) in soundGetBuffer()
154 if (ptemp = malloc(soundinfo.bufferLength)) in soundGetBuffer()
156 getSoundSamples(soundFile, &soundinfo, ptemp); in soundGetBuffer()
158 if (soundinfo.channels == 1) in soundGetBuffer()
162 if (p = malloc(soundinfo.bufferLength / 2)) in soundGetBuffer()
168 if (soundinfo.bitsPerSample == 8) in soundGetBuffer()
169 soundStereoCombine8Bit(p, ptemp, soundinfo.samples); in soundGetBuffer()
[all …]
Dsndconv.c614 typedef int (*FUNCTION1)(u8 *path, SOUNDINFO *soundinfo);
615 typedef int (*FUNCTION2)(u8 *path, SOUNDINFO *soundinfo, void *dest);
/RvlSDK-3.2/build/tools/soundfile/src/
Dsoundfile.c40 int getAiffInfo(char *path, SOUNDINFO *soundinfo, void *buffer) in getAiffInfo() argument
52 soundinfo->channels = aiffGetChannels(&aiffinfo); in getAiffInfo()
53 soundinfo->bitsPerSample = aiffGetBitsPerSample(&aiffinfo); in getAiffInfo()
54 soundinfo->sampleRate = aiffGetSampleRate(&aiffinfo); in getAiffInfo()
55 soundinfo->samples = aiffGetSamples(&aiffinfo); in getAiffInfo()
56 soundinfo->loopStart = aiffGetLoopStart(&aiffinfo); in getAiffInfo()
57 soundinfo->loopEnd = aiffGetLoopEnd(&aiffinfo); in getAiffInfo()
58 soundinfo->bufferLength = 0; in getAiffInfo()
60 switch (soundinfo->bitsPerSample) in getAiffInfo()
64 soundinfo->bufferLength = soundinfo->samples * soundinfo->channels; in getAiffInfo()
[all …]
/RvlSDK-3.2/build/tools/dspadpcm/src/
Dmain.c82 typedef int (*lpFunc6)(u8 *path, SOUNDINFO *soundinfo);
83 typedef int (*lpFunc7)(u8 *path, SOUNDINFO *soundinfo, void *dest);
567 void encode_soundfile(char *path, SOUNDINFO *soundinfo) in encode_soundfile() argument
575 soundbuffer = malloc(soundinfo->bufferLength); in encode_soundfile()
576 outputbuffer = malloc(getBytesForAdpcmBuffer(soundinfo->samples)); in encode_soundfile()
589 dspadpcmheader.num_samples = reverse_endian_32(soundinfo->samples); in encode_soundfile()
590 …dspadpcmheader.num_adpcm_nibbles = reverse_endian_32(getNibblesForNSamples(soundinfo->samples)); in encode_soundfile()
591 dspadpcmheader.sample_rate = reverse_endian_32(soundinfo->sampleRate); in encode_soundfile()
609 else if (soundinfo->loopEnd) // the sound info has loops form AIFF in encode_soundfile()
613 nibbleLoopStart = getNibbleAddress(soundinfo->loopStart); in encode_soundfile()
[all …]