Questions tagged [mci]

MCI (short for Media Control Interface) is a high-level API providing standard commands for playing multimedia devices and recording multimedia resource files.

71 questions
0
votes
1 answer

.wav Player : mmioOpen API

I am trying to make an audio player that plays .wav files. I wrote a function ReadWaveFile(CString szFilename) for reading the wave data of the file into the WAVEHDR structure. In this function BOOL CWavePlay::ReadWaveFile(CString szFilename) { …
ckram
  • 19
  • 1
  • 4
0
votes
0 answers

MCIERR_DEVICE_OPEN error with mciSendString() c++

I'm trying to make a simple audio player class for C++. I've been using mciSendString() to actually play the audio. The class constructor passes in a string for the file location (File), and then it checks to see if it can actually open the file.…
0
votes
1 answer

C++ not playing mp3 files through mciSendString

I am aiming to build an audio player that plays MP3 files. For that, I have used the mciSendString() function. All the MP3 files are in the same folder as the main source file. I have looked at the documentation and some syntax online, despite that…
Kh. Murad
  • 41
  • 7
0
votes
1 answer

How do I pause a song played using MCI ? (using threading or multiprocessing)

I am trying to make a simple audio player with the ability to play, stop, pause and resume songs. What I am trying to do Run the audio on a separate thread with the ability to then use MCI from the main thread to pause and resume it. What doesn't…
0
votes
1 answer

How to set Wav file volume in MCI (MCIWndSetVolum Error)

I am making a simple music playback program using the lame library and MCI. After decoding MP3 files into wav files, use MCIWndCreate and MCIWndPlay to play music. All functions are working fine, but there was a problem with setting the volume. I…
Jungwon
  • 1,038
  • 7
  • 20
0
votes
1 answer

Using mciSendString to play an mp3 file and not working (and also not giving any error)

Here is my code: #include #include #pragma comment(lib, "Winmm.lib") int main() { mciSendString("open \"*.mp3\" type mpegvideo alias mp3", NULL, 0, NULL); mciSendString("play mp3", NULL, 0, NULL); return…
Pythonieer
  • 17
  • 3
0
votes
1 answer

Stalling WMP with 4 or more streams

I developed an application in C that can display 4 videos, and 1 sound file in the background. The video uses the WMP object in the C++ class provided by Microsoft in the WMP SDK. The audio uses Windows' MCI (Media Control Interface) which is sent…
Paul Ogilvie
  • 25,048
  • 4
  • 23
  • 41
0
votes
2 answers

Cause of data corruption in C++ vector?

I'm trying to write a basic MP3 player to try and get into some Windows stuff for C++, and things were going well until now. I tried writing a queuing class to play more songs after the current one ended, every time a new song is added to the…
Nathan S
  • 58
  • 8
0
votes
3 answers

Issue when trying to play mp3 file via mciSendString (MCIERR_CANNOT_LOAD_DRIVER)

When trying to play a mp3 file using mciSendString, via the following commands: open "{FileName}" [type mpegvideo] alias {AliasName} //tried both with and without type mpegvideo and play {AliasName} I get the error MCIERR_CANNOT_LOAD_DRIVER :…
0
votes
1 answer

Correct way to set MCI audio parameters in C#

I'm trying to record wav files. My app needs to allow the user to choose between different sample rates and bit depths. No matter what syntax I try though, I always get files with the same bit rate. Can someone please tell me what I'm doing…
0
votes
0 answers

Background task for simple operations?

I need to play several sounds, and if one sound is already playing, the subsequent sounds will be queued. I'm using MCI API calls. Until now, I'm using this sound player as a COM control with InterOp. However, the COM control causes some COM…
tmighty
  • 10,734
  • 21
  • 104
  • 218
0
votes
0 answers

mcisendstring repeat function not working

Running the code below, the video doesn't repeat, just stops at the end. It used to work: dim moviewindow as picturebox dim filename as string= Chr(34) & "C:\test.mp4" & Chr(34) mciSendString("open " & filename & " type mpegvideo alias…
stigzler
  • 793
  • 2
  • 12
  • 29
0
votes
1 answer

mci status position/length failing

im trying to check whether a sound file has ended using the windows MCI API in vb.net but it keeps coming up with an invalid device name (263 - MCIERR_INVALID_DEVICE_NAME), is it because of my syntax or some other error? Public Sub…
0
votes
0 answers

android: Data message with port is not receiving

I'm using a port for sending Data message in my app. I have a problem with sending data message (sendDataMessage in android). my code works properly with MCI sim cards, I mean when the sender and receiver have MCI sim cards. If sender has a MCI and…
ai68
  • 1
  • 2
0
votes
1 answer

Delphi / MCI Exclusive Control of Microphone

So I'm recording audio with Delphi using MCISendString. The code works fine with one exception. I'm letting the user set the parameters, channels, bits, freq, and on Windows 7 this worked fine. Now on Windows 10 I'm getting…
uPrompt
  • 159
  • 1
  • 10