Home | History | Annotate | Download | only in audio

Lines Matching refs:format

24 /* Functions for audio drivers to perform runtime conversion of audio format */
30 void SDLCALL SDL_ConvertMono(SDL_AudioCVT *cvt, Uint16 format)
38 switch (format&0x8018) {
73 if ( (format & 0x1000) == 0x1000 ) {
104 if ( (format & 0x1000) == 0x1000 ) {
132 cvt->filters[cvt->filter_index](cvt, format);
137 void SDLCALL SDL_ConvertStrip(SDL_AudioCVT *cvt, Uint16 format)
145 switch (format&0x8018) {
180 if ( (format & 0x1000) == 0x1000 ) {
215 if ( (format & 0x1000) == 0x1000 ) {
247 cvt->filters[cvt->filter_index](cvt, format);
253 void SDLCALL SDL_ConvertStrip_2(SDL_AudioCVT *cvt, Uint16 format)
261 switch (format&0x8018) {
296 if ( (format & 0x1000) == 0x1000 ) {
331 if ( (format & 0x1000) == 0x1000 ) {
363 cvt->filters[cvt->filter_index](cvt, format);
368 void SDLCALL SDL_ConvertStereo(SDL_AudioCVT *cvt, Uint16 format)
375 if ( (format & 0xFF) == 16 ) {
400 cvt->filters[cvt->filter_index](cvt, format);
406 void SDLCALL SDL_ConvertSurround(SDL_AudioCVT *cvt, Uint16 format)
413 switch (format&0x8018) {
464 if ( (format & 0x1000) == 0x1000 ) {
523 if ( (format & 0x1000) == 0x1000 ) {
577 cvt->filters[cvt->filter_index](cvt, format);
583 void SDLCALL SDL_ConvertSurround_4(SDL_AudioCVT *cvt, Uint16 format)
590 switch (format&0x8018) {
637 if ( (format & 0x1000) == 0x1000 ) {
686 if ( (format & 0x1000) == 0x1000 ) {
730 cvt->filters[cvt->filter_index](cvt, format);
736 void SDLCALL SDL_Convert16LSB(SDL_AudioCVT *cvt, Uint16 format)
752 formatformat & ~0x0008) | AUDIO_U16LSB);
755 cvt->filters[cvt->filter_index](cvt, format);
759 void SDLCALL SDL_Convert16MSB(SDL_AudioCVT *cvt, Uint16 format)
775 format = ((format & ~0x0008) | AUDIO_U16MSB);
778 cvt->filters[cvt->filter_index](cvt, format);
783 void SDLCALL SDL_Convert8(SDL_AudioCVT *cvt, Uint16 format)
793 if ( (format & 0x1000) != 0x1000 ) { /* Little endian */
801 format = ((format & ~0x9010) | AUDIO_U8);
804 cvt->filters[cvt->filter_index](cvt, format);
809 void SDLCALL SDL_ConvertSign(SDL_AudioCVT *cvt, Uint16 format)
818 if ( (format & 0xFF) == 16 ) {
819 if ( (format & 0x1000) != 0x1000 ) { /* Little endian */
831 format = (format ^ 0x8000);
833 cvt->filters[cvt->filter_index](cvt, format);
838 void SDLCALL SDL_ConvertEndian(SDL_AudioCVT *cvt, Uint16 format)
853 format = (format ^ 0x1000);
855 cvt->filters[cvt->filter_index](cvt, format);
860 void SDLCALL SDL_RateMUL2(SDL_AudioCVT *cvt, Uint16 format)
870 switch (format & 0xFF) {
892 cvt->filters[cvt->filter_index](cvt, format);
898 void SDLCALL SDL_RateMUL2_c2(SDL_AudioCVT *cvt, Uint16 format)
908 switch (format & 0xFF) {
936 cvt->filters[cvt->filter_index](cvt, format);
941 void SDLCALL SDL_RateMUL2_c4(SDL_AudioCVT *cvt, Uint16 format)
951 switch (format & 0xFF) {
991 cvt->filters[cvt->filter_index](cvt, format);
997 void SDLCALL SDL_RateMUL2_c6(SDL_AudioCVT *cvt, Uint16 format)
1007 switch (format & 0xFF) {
1059 cvt->filters[cvt->filter_index](cvt, format);
1064 void SDLCALL SDL_RateDIV2(SDL_AudioCVT *cvt, Uint16 format)
1074 switch (format & 0xFF) {
1093 cvt->filters[cvt->filter_index](cvt, format);
1099 void SDLCALL SDL_RateDIV2_c2(SDL_AudioCVT *cvt, Uint16 format)
1109 switch (format & 0xFF) {
1131 cvt->filters[cvt->filter_index](cvt, format);
1137 void SDLCALL SDL_RateDIV2_c4(SDL_AudioCVT *cvt, Uint16 format)
1147 switch (format & 0xFF) {
1175 cvt->filters[cvt->filter_index](cvt, format);
1180 void SDLCALL SDL_RateDIV2_c6(SDL_AudioCVT *cvt, Uint16 format)
1190 switch (format & 0xFF) {
1224 cvt->filters[cvt->filter_index](cvt, format);
1229 void SDLCALL SDL_RateSLOW(SDL_AudioCVT *cvt, Uint16 format)
1239 switch (format & 0xFF) {
1268 switch (format & 0xFF) {
1299 cvt->filters[cvt->filter_index](cvt, format);
1322 /* Creates a set of audio filters to convert from one format to another.
1323 Returns -1 if the format conversion is not supported, or 1 if the
1331 /*printf("Build format %04x->%04x, channels %u->%u, rate %d->%d\n",
1420 /* This assumes that 4 channel audio is in the format:
1442 void (SDLCALL *rate_cvt)(SDL_AudioCVT *cvt, Uint16 format);