Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the faculty-weekly-schedule domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/codebangers.com/httpdocs/wp-includes/functions.php on line 6114

Deprecated: Creation of dynamic property Simple_Code_Block_Loader::$shortcodes is deprecated in /var/www/vhosts/codebangers.com/httpdocs/wp-content/plugins/simple-code-block/core/class-simple-code-block-loader.php on line 61

Deprecated: version_compare(): Passing null to parameter #2 ($version2) of type string is deprecated in /var/www/vhosts/codebangers.com/httpdocs/wp-content/themes/shop-isle/vendor/codeinwp/themeisle-sdk/load.php on line 31

Deprecated: version_compare(): Passing null to parameter #2 ($version2) of type string is deprecated in /var/www/vhosts/codebangers.com/httpdocs/wp-content/themes/shop-isle/vendor/codeinwp/themeisle-sdk/load.php on line 36

Deprecated: Creation of dynamic property ThemeisleSDK\Product::$author_url is deprecated in /var/www/vhosts/codebangers.com/httpdocs/wp-content/themes/shop-isle/vendor/codeinwp/themeisle-sdk/src/Product.php on line 188

Deprecated: Creation of dynamic property Shopisle_Admin_Page::$theme_name is deprecated in /var/www/vhosts/codebangers.com/httpdocs/wp-content/themes/shop-isle/inc/admin/class-shopisle-admin-page.php on line 18

Deprecated: Creation of dynamic property Shopisle_Admin_Page::$theme_slug is deprecated in /var/www/vhosts/codebangers.com/httpdocs/wp-content/themes/shop-isle/inc/admin/class-shopisle-admin-page.php on line 19
Fix Sound Drivers for Raspberry Pi – Easy – CodeBangers

Fix Sound Drivers for Raspberry Pi – Easy

Install the Sound Drivers

Update : The newer Debian “Wheezy” image enables the sound driver by default so this section is not needed to those that are using the newest version. Others that are having audio issues from previous versions of Raspian, see below.

In the Debian “Squeeze” image the ALSA sound drivers are considered experimental and have been disabled by default. To enable sound you need to type the commands below into the command line :

sudo apt-get install alsa-utils

That will install the required sound driver files and tools. Type “Y” when prompted. The following command will load the sound driver :

sudo modprobe snd_bcm2835

By default the output is set to automatically select the interface (HDMI if available otherwise analog). You can force it to use a specific interface using :

sudo amixer cset numid=3 <n>

Where <n> is the required interface : 0=auto, 1=analog, 2=hdmi. To force the Raspberry Pi to use the analog output :

sudo amixer cset numid=3 1

You will need to run the modprobe command again when your Pi is rebooted/restarted.

Playing A WAV File

In order to play a WAV file we need a file to play. Type the following command to download a test WAV file :

sudo wget http://www.freespecialeffects.co.uk/soundfx/sirens/police_s.wav

Now we can play it :

sudo aplay police_s.wav

If you are lucky the sound will play through your speakers or headphones.

I tried a number of WAV files but only some of them played. Hopefully this will be resolved in future releases of the sound drivers.

Source