Home
last modified time | relevance | path

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

/RvlSDK-3.3/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.c617 typedef int (*FUNCTION1)(u8 *path, SOUNDINFO *soundinfo);
618 typedef int (*FUNCTION2)(u8 *path, SOUNDINFO *soundinfo, void *dest);
/RvlSDK-3.3/build/tools/soundfile/src/
Dsoundfile.c57 int getAiffInfo(char *path, SOUNDINFO *soundinfo, void *buffer) in getAiffInfo() argument
70 soundinfo->channels = aiffGetChannels(&aiffinfo); in getAiffInfo()
71 soundinfo->bitsPerSample = aiffGetBitsPerSample(&aiffinfo); in getAiffInfo()
72 soundinfo->sampleRate = aiffGetSampleRate(&aiffinfo); in getAiffInfo()
73 soundinfo->samples = aiffGetSamples(&aiffinfo); in getAiffInfo()
74 soundinfo->loopStart = aiffGetLoopStart(&aiffinfo); in getAiffInfo()
75 soundinfo->loopEnd = aiffGetLoopEnd(&aiffinfo); in getAiffInfo()
76 soundinfo->bufferLength = 0; in getAiffInfo()
78 switch (soundinfo->bitsPerSample) in getAiffInfo()
82 soundinfo->bufferLength = soundinfo->samples * soundinfo->channels; in getAiffInfo()
[all …]
/RvlSDK-3.3/build/tools/dspadpcm/src/
Dmain.c97 typedef int (*lpFunc6)(u8 *path, SOUNDINFO *soundinfo);
98 typedef int (*lpFunc7)(u8 *path, SOUNDINFO *soundinfo, void *dest);
577 void encode_soundfile(char *path, SOUNDINFO *soundinfo) in encode_soundfile() argument
585 soundbuffer = malloc(soundinfo->bufferLength); in encode_soundfile()
586 outputbuffer = malloc(getBytesForAdpcmBuffer(soundinfo->samples)); in encode_soundfile()
599 dspadpcmheader.num_samples = reverse_endian_32(soundinfo->samples); in encode_soundfile()
600 dspadpcmheader.num_adpcm_nibbles = reverse_endian_32(getNibblesForNSamples(soundinfo->samples)); in encode_soundfile()
601 dspadpcmheader.sample_rate = reverse_endian_32(soundinfo->sampleRate); in encode_soundfile()
619 else if (soundinfo->loopEnd) // the sound info has loops form AIFF in encode_soundfile()
623 nibbleLoopStart = getNibbleAddress(soundinfo->loopStart); in encode_soundfile()
[all …]