1 2 3 4 5 6 7 8 9 10 11 12
|
#include "oshyClientAudioPlayer.h"
#include "oshyClient.h"
#include <iostream>
void AudioPlayer::displayAudioControls(HWND hWnd) {
CreateWindow(L"Button", L"▶", WS_VISIBLE | WS_CHILD, 35, 5, 25, 25, hWnd, (HMENU)BUTTON_PLAY, NULL, NULL);
CreateWindow(L"Button", L"■", WS_VISIBLE | WS_CHILD, 5, 5, 25, 25, hWnd, NULL, NULL, NULL);
}
void AudioPlayer::playAudio(const char* audioLocation) {
PlaySound((LPCWSTR)audioLocation, NULL, SND_FILENAME);
}
| |