Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | conf: added config_get_block_unsigned() | Max Kellermann | 2009-01-18 | 4 | -39/+7 |
| | | | | Eliminate some more getBlockParam() invocations. | ||||
* | conf: added config_get_block_string() | Max Kellermann | 2009-01-18 | 7 | -86/+57 |
| | | | | This replaces lots of getBlockParam() invocations. | ||||
* | jack: parse "ports" setting with g_strsplit() | Max Kellermann | 2009-01-18 | 1 | -20/+7 |
| | | | | Don't modify the configured string. | ||||
* | jack: use audio_output_get_name() | Max Kellermann | 2009-01-18 | 1 | -11/+1 |
| | | | | | Determine the audio output name with audio_output_get_name() instead of obtaining the name from the configuration again. | ||||
* | conf: replaced getBoolBlockParam() with config_get_block_bool() | Max Kellermann | 2009-01-17 | 2 | -9/+6 |
| | | | | No "force" parameter, pass a default value instead. | ||||
* | conf: no CamelCase, part I | Max Kellermann | 2009-01-17 | 10 | -26/+29 |
| | | | | Renamed functions, types, variables. | ||||
* | oss: evaluate the oss_open() return value properly | Max Kellermann | 2009-01-16 | 1 | -1/+1 |
| | | | | It returns bool, not int. | ||||
* | shout: enlarge buffer size to 32 kB | Antoine Beaupré | 2009-01-14 | 1 | -1/+1 |
| | | | | | | | I was having problems with shoutcast stream outputs before applying the attached patch, which enlarges the shoutcast output buffer. Ideally, this should be configurable, but this resolves the issue for my needs. | ||||
* | Introducing mixer api | Viliam Mateicka | 2009-01-10 | 2 | -15/+16 |
| | | | | | This patch tryes to introduce pluggable mixer (struct mixer_plugin) along with some basic infrastructure (mixer_* functions). Instance of mixer (struct mixer) is used in alsa and oss output plugin | ||||
* | added missing explicit config.h includes | Max Kellermann | 2009-01-08 | 1 | -0/+1 |
| | |||||
* | pcm_utils: moved conversion code to pcm_convert.c | Max Kellermann | 2009-01-07 | 1 | -1/+1 |
| | | | | | All what's left in pcm_utils.h is the pcm_range() utility function, which is only used internally by pcm_volume and pcm_mix. | ||||
* | fix G_BYTE_ORDER check | Max Kellermann | 2009-01-05 | 3 | -3/+3 |
| | | | | "#ifdef G_BYTE_ORDER == G_BIG_ENDIAN" cannot work, of course. | ||||
* | use GLib byte order macros | Max Kellermann | 2009-01-05 | 3 | -9/+10 |
| | |||||
* | renaming mixer.h to mixer_api.h | Viliam Mateicka | 2009-01-04 | 2 | -2/+2 |
| | |||||
* | null, fifo: use GLib instead of utils.h | Max Kellermann | 2009-01-03 | 2 | -7/+8 |
| | |||||
* | ao: use g_strsplit() instead of strtok_r() | Max Kellermann | 2009-01-03 | 1 | -37/+15 |
| | | | | g_strsplit() is more portable than strtok_r(). | ||||
* | alsa: use GLib instead of utils.h | Max Kellermann | 2009-01-02 | 1 | -3/+2 |
| | |||||
* | jack: use GLib instead of utils.h | Max Kellermann | 2009-01-02 | 1 | -15/+14 |
| | |||||
* | jack: duplicate jack_get_ports() return values | Max Kellermann | 2009-01-02 | 1 | -3/+4 |
| | | | | | | | | | JACK documentation states: "The caller is responsible for calling free(3) any non-NULL returned value." This does not seem to include the array elements. Duplicate them after jack_get_ports(), and free only the array. Convert JackData.output_ports to non-const. | ||||
* | output plugins: don't include gcc.h | Max Kellermann | 2009-01-01 | 9 | -24/+29 |
| | | | | Use GLib's G_GNUC_UNUSED instead of gcc.h's mpd_unused. | ||||
* | null: don't include gcc.h | Max Kellermann | 2009-01-01 | 1 | -4/+7 |
| | | | | Use GLib's G_GNUC_UNUSED instead of macros from gcc.h. | ||||
* | Moving mixers to audio outputs | Viliam Mateicka | 2008-12-31 | 2 | -1/+40 |
| | |||||
* | alsa: use GLib logging | Max Kellermann | 2008-12-29 | 1 | -29/+30 |
| | |||||
* | jack: use GLib logging | Max Kellermann | 2008-12-29 | 1 | -28/+30 |
| | |||||
* | fifo: use GLib logging | Max Kellermann | 2008-12-29 | 1 | -21/+24 |
| | |||||
* | osx_plugin: migrate from pthread to glib threads | Thomas Jansen | 2008-12-28 | 1 | -19/+18 |
| | |||||
* | shout: fixed bad error message printout | Viliam Mateicka | 2008-12-23 | 1 | -2/+2 |
| | |||||
* | Remove useless statement. | Emanuele Giaquinta | 2008-12-17 | 1 | -1/+0 |
| | |||||
* | Remove useless computation. After the pthread_cond_wait loop there are at ↵ | Emanuele Giaquinta | 2008-12-17 | 1 | -2/+0 |
| | | | | least MIN(od->bufferSize, size) free bytes in the buffer. Thus MIN(od->bufferSize - od->len, size) is always equal to MIN(od->bufferSize, size). | ||||
* | Remove useless statement, curpos is initialized at the beginning of the loop. | Emanuele Giaquinta | 2008-12-17 | 1 | -1/+0 |
| | |||||
* | Factor computation. | Emanuele Giaquinta | 2008-12-17 | 1 | -4/+6 |
| | |||||
* | Use MIN. | Emanuele Giaquinta | 2008-12-17 | 1 | -2/+2 |
| | |||||
* | Call CloseComponent after AudioUnitUninitialize. | Emanuele Giaquinta | 2008-12-17 | 1 | -1/+1 |
| | |||||
* | ao: use 16 bit sample format | Max Kellermann | 2008-12-09 | 1 | -0/+6 |
| | | | | | | | | There have been bug reports on MPD regarding 24 bit output via libao/esd. The "ao" plugin does not attempt fall back to 16 bit currently, and thus fails to play 24 bit audio (i.e. all mp3 files). Make it always use 16 bit samples for now, until more bits are well-tested. | ||||
* | osx: use 16 bit sample format | Max Kellermann | 2008-12-08 | 1 | -0/+3 |
| | | | | | | The OS X output does not seem to support 24 bit audio in the way MPD implements it currently. Fall back to 16 bit for now, and schedule 24 bit support on OS X for MPD 0.15. | ||||
* | osx: use GLib instead of utils.h/log.h | Max Kellermann | 2008-12-08 | 1 | -9/+13 |
| | | | | | One my_usleep() invocation remains, until we find out if we can delete it. | ||||
* | osx: don't use void pointer in arithmetic | Max Kellermann | 2008-12-08 | 1 | -2/+2 |
| | | | | | Cast AudioBuffer.mData to a "unsigned char*" before adding "curpos". This fixes a gcc warning. | ||||
* | alsa: reverted the default buffer_time to 500 ms | Max Kellermann | 2008-12-01 | 1 | -1/+5 |
| | | | | | | | Commit dd7711d8 removed MPD's default ALSA buffer_time. The result was a buffer size which was way too small for playing streams on some sound hardware, and caused skips and distorted sound. Revert the default to 500 ms. | ||||
* | shout: fixed the lame input buffer allocation | Max Kellermann | 2008-11-30 | 1 | -9/+15 |
| | | | | | | | | | | "float (*lamebuf)[2] = g_malloc()" does NOT allocate two float* buffers. The formula is even wrong: it should be applied to LAME's output buffer, not its input buffer. Converted "lamebuf" to the two variables "left" and "right", and allocate them independently with the exact buffer size. Set right=left if mono output is configured. | ||||
* | shout_mp3: cast input buffer to int16_t* | Max Kellermann | 2008-11-30 | 1 | -2/+2 |
| | | | | It's easier to work with an int16_t* pointer here. | ||||
* | oss: use GLib instead of utils.h/log.h | Max Kellermann | 2008-11-25 | 1 | -55/+56 |
| | |||||
* | mvp: use GLib instead of utils.h/log.h | Max Kellermann | 2008-11-25 | 1 | -16/+27 |
| | |||||
* | shout: use GLib instead of utils.h/log.h | Max Kellermann | 2008-11-25 | 4 | -82/+82 |
| | |||||
* | shout: don't check HAVE_SHOUT | Max Kellermann | 2008-11-25 | 1 | -7/+0 |
| | | | | | If the shout plugin is disabled, shout_plugin.c isn't compiled at all, no need to check the macro definition. | ||||
* | ao: print error message when ao_open_live() fails | Max Kellermann | 2008-11-25 | 1 | -1/+3 |
| | | | | | When ao_open_live() failed, MPD would ignore the error code in "errno". Make it print a meaningful error message. | ||||
* | ao: support all libao error codes | Max Kellermann | 2008-11-25 | 1 | -9/+29 |
| | | | | | | The function audioOutputAo_error() did not implement all possible libao error codes. Support the rest of them, and fall back to strerror(). | ||||
* | ao: use GLib instead of utils.h/log.h | Max Kellermann | 2008-11-25 | 1 | -19/+21 |
| | |||||
* | pulse: removed reconnect interval | Max Kellermann | 2008-11-05 | 1 | -19/+2 |
| | | | | | The output thread automatically waits some time before retrying to open the device. Don't duplicate this check in the pulse plugin. | ||||
* | pulse: check if connection is open in pulse_cancel() | Max Kellermann | 2008-11-05 | 1 | -0/+3 |
| | | | | | The pulse plugin crashed with a segmentation fault when the pulse server was killed. | ||||
* | osx: fix gcc warnings | Max Kellermann | 2008-11-04 | 1 | -7/+8 |
| | | | | Fix prototypes and unused variables. |