-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Command for Current Queue implemented + tests.
- Loading branch information
Showing
19 changed files
with
584 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
mpd.exe mpd.conf -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
log_file "mpd_log.txt" | ||
|
||
db_file "mpd.db" | ||
|
||
bind_to_address "any" | ||
|
||
music_directory "Music" | ||
|
||
playlist_directory "Playlists" | ||
|
||
port "6600" | ||
|
||
audio_output { | ||
type "null" | ||
name "Enabled output to be disabled" | ||
enabled "true" | ||
mixer_type "none" | ||
} | ||
audio_output { | ||
type "null" | ||
name "Disabled output to be enabled" | ||
enabled "false" | ||
mixer_type "none" | ||
} | ||
audio_output { | ||
type "null" | ||
name "Enabled output to be toggled" | ||
enabled "true" | ||
mixer_type "none" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
Apr 12 14:17 : client: [0] opened from 127.0.0.1:65192 | ||
Apr 12 14:17 : client: [0] expired | ||
Apr 12 14:17 : client: [0] closed | ||
Apr 12 14:17 : client: [1] opened from 127.0.0.1:65193 | ||
Apr 12 14:17 : client: [1] expired | ||
Apr 12 14:17 : client: [1] closed | ||
Apr 12 14:17 : client: [2] opened from 127.0.0.1:65194 | ||
Apr 12 14:17 : client: [2] expired | ||
Apr 12 14:17 : client: [2] closed | ||
Apr 12 14:17 : client: [3] opened from 127.0.0.1:65195 | ||
Apr 12 14:17 : client: [3] expired | ||
Apr 12 14:17 : client: [3] closed | ||
Apr 12 14:18 : client: [4] opened from 127.0.0.1:65196 | ||
Apr 12 14:18 : client: [4] expired | ||
Apr 12 14:18 : client: [4] closed | ||
Apr 12 14:18 : client: [5] opened from 127.0.0.1:65203 | ||
Apr 12 14:18 : client: [5] expired | ||
Apr 12 14:18 : client: [5] closed | ||
Apr 12 14:19 : client: [6] opened from 127.0.0.1:65204 | ||
Apr 12 14:19 : client: [6] process command "stats" | ||
Apr 12 14:19 : client: [6] command returned 0 | ||
Apr 12 14:19 : client: [6] expired | ||
Apr 12 14:19 : client: [6] closed | ||
Apr 12 14:20 : client: [7] opened from 127.0.0.1:65220 | ||
Apr 12 14:20 : client: [7] process command "stats" | ||
Apr 12 14:20 : client: [7] command returned 0 | ||
Apr 12 14:20 : client: [7] expired | ||
Apr 12 14:20 : client: [7] closed | ||
Apr 12 14:20 : client: [8] opened from 127.0.0.1:65221 | ||
Apr 12 14:20 : client: [8] process command "status" | ||
Apr 12 14:20 : client: [8] command returned 0 | ||
Apr 12 14:20 : client: [8] expired | ||
Apr 12 14:20 : client: [8] closed | ||
Apr 12 14:23 : client: [9] opened from 127.0.0.1:65226 | ||
Apr 12 14:23 : client: [9] process command "stats" | ||
Apr 12 14:23 : client: [9] command returned 0 | ||
Apr 12 14:23 : client: [9] expired | ||
Apr 12 14:23 : client: [9] closed | ||
Apr 12 14:23 : client: [10] opened from 127.0.0.1:65227 | ||
Apr 12 14:23 : client: [10] process command "stats" | ||
Apr 12 14:23 : client: [10] command returned 0 | ||
Apr 12 14:23 : client: [10] expired | ||
Apr 12 14:23 : client: [10] closed | ||
Apr 12 14:23 : client: [11] opened from 127.0.0.1:65228 | ||
Apr 12 14:23 : client: [11] process command "stats" | ||
Apr 12 14:23 : client: [11] command returned 0 | ||
Apr 12 14:23 : client: [11] expired | ||
Apr 12 14:23 : client: [11] closed | ||
Apr 12 14:23 : client: [12] opened from 127.0.0.1:65229 | ||
Apr 12 14:23 : client: [12] process command "status" | ||
Apr 12 14:23 : client: [12] command returned 0 | ||
Apr 12 14:23 : client: [12] expired | ||
Apr 12 14:23 : client: [12] closed | ||
Apr 12 14:23 : client: [13] opened from 127.0.0.1:65230 | ||
Apr 12 14:23 : client: [13] process command "stats" | ||
Apr 12 14:23 : client: [13] command returned 0 | ||
Apr 12 14:23 : client: [13] expired | ||
Apr 12 14:23 : client: [13] closed | ||
Apr 12 14:25 : client: [14] opened from 127.0.0.1:65236 | ||
Apr 12 14:25 : client: [14] process command "listplaylists" | ||
Apr 12 14:25 : client: [14] command returned 0 | ||
Apr 12 14:25 : client: [14] expired | ||
Apr 12 14:25 : client: [14] closed | ||
Apr 12 14:28 : client: [15] opened from 127.0.0.1:65383 | ||
Apr 12 14:28 : client: [15] process command "listplaylists" | ||
Apr 12 14:28 : client: [15] command returned 0 | ||
Apr 12 14:28 : client: [15] expired | ||
Apr 12 14:28 : client: [15] closed | ||
Apr 12 14:29 : client: [16] opened from 127.0.0.1:65385 | ||
Apr 12 14:29 : client: [16] process command "listplaylistinfo Playlist One" | ||
Apr 12 14:29 : client: [16] command returned -1 | ||
Apr 12 14:29 : client: [16] expired | ||
Apr 12 14:29 : client: [16] closed | ||
Apr 12 14:29 : client: [17] opened from 127.0.0.1:65386 | ||
Apr 12 14:29 : client: [17] process command "listplaylistinfo "Playlist One"" | ||
Apr 12 14:29 : database: get song: teaspoon-stirring-mug-of-coffee.mp3 | ||
Apr 12 14:29 : database: get song: whistle-kettle-boiling.mp3 | ||
Apr 12 14:29 : database: get song: wine-glass-double-chink-clink-cheers.mp3 | ||
Apr 12 14:29 : database: get song: Directory With Spaces/coin-spin-light.mp3 | ||
Apr 12 14:29 : database: get song: Directory With Spaces/finger-snap-click.mp3 | ||
Apr 12 14:29 : client: [17] command returned 0 | ||
Apr 12 14:29 : client: [17] expired | ||
Apr 12 14:29 : client: [17] closed | ||
Apr 12 14:32 : client: [18] opened from 127.0.0.1:65446 | ||
Apr 12 14:32 : client: [18] process command "statstastats" | ||
Apr 12 14:32 : client: [18] command returned -1 | ||
Apr 12 14:32 : client: [18] process command "stats" | ||
Apr 12 14:3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
using System; | ||
using MpcNET.Message; | ||
|
||
namespace MpcNET.Test | ||
{ | ||
internal class TestOutput | ||
internal static class TestOutput | ||
{ | ||
internal static void WriteLine(string value) | ||
{ | ||
Console.Out.WriteLine(value); | ||
} | ||
|
||
internal static void WriteLine<T>(IMpdMessage<T> message) | ||
{ | ||
Console.Out.WriteLine(message.ToString()); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using MpcNET.Message; | ||
|
||
namespace MpcNET.Test | ||
{ | ||
public static class MpdMessageExtension | ||
{ | ||
public static bool HasSuccessResponse<T>(this IMpdMessage<T> message) | ||
{ | ||
return message.Response.State.Connected && | ||
message.Response.State.Status == "OK" && | ||
!message.Response.State.Error && | ||
message.Response.State.ErrorMessage == string.Empty && | ||
message.Response.State.MpdError == string.Empty; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.