Audio: Remove unused float helper code
Let's us get rid of 'alext.h' include, which doesn't exist on OSX.
This commit is contained in:
		
							parent
							
								
									ce0fee0641
								
							
						
					
					
						commit
						0ef68a2eb7
					
				
					 2 changed files with 0 additions and 12 deletions
				
			
		| 
						 | 
					@ -23,8 +23,6 @@
 | 
				
			||||||
#define ALUTIL_H
 | 
					#define ALUTIL_H
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <al.h>
 | 
					#include <al.h>
 | 
				
			||||||
#include <alc.h>
 | 
					 | 
				
			||||||
#include <alext.h>
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace AL
 | 
					namespace AL
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -65,9 +65,6 @@ static uint8_t formatSampleSize(int sdlFormat)
 | 
				
			||||||
	case AUDIO_S16MSB :
 | 
						case AUDIO_S16MSB :
 | 
				
			||||||
		return 2;
 | 
							return 2;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	case AUDIO_F32 :
 | 
					 | 
				
			||||||
		return 4;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	default:
 | 
						default:
 | 
				
			||||||
		Debug() << "Unhandled sample format";
 | 
							Debug() << "Unhandled sample format";
 | 
				
			||||||
		abort();
 | 
							abort();
 | 
				
			||||||
| 
						 | 
					@ -94,13 +91,6 @@ static ALenum chooseALFormat(int sampleSize, int channelCount)
 | 
				
			||||||
		case 2 : return AL_FORMAT_STEREO16;
 | 
							case 2 : return AL_FORMAT_STEREO16;
 | 
				
			||||||
		default : abort();
 | 
							default : abort();
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	case 4 :
 | 
					 | 
				
			||||||
		switch (channelCount)
 | 
					 | 
				
			||||||
		{
 | 
					 | 
				
			||||||
		case 1 : return AL_FORMAT_MONO_FLOAT32;
 | 
					 | 
				
			||||||
		case 2 : return AL_FORMAT_STEREO_FLOAT32;
 | 
					 | 
				
			||||||
		default : abort();
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	default : abort();
 | 
						default : abort();
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue